サービス · Analytics · CLF-C02 の発展
Amazon EMR
Managed Spark and Hadoop clusters. Use Spot task nodes, S3 storage and short-lived clusters to save money.
このレッスンはまだ翻訳されていないため、英語で表示しています。
クラウドプラクティショナーで学んだこと
- EMR runs Apache Spark, Hadoop and Hive on managed clusters, or serverless.
- Data usually lives in S3, so clusters can be short-lived.
- Spot Instances can lower the cost.
Transient EMR on EC2
- Nightly batch job, then stop
Long-running EMR on EC2
- Interactive work, HBase
EMR on EKS
- You already run Kubernetes
EMR Serverless
- No cluster to manage
| Option | Pick it when |
|---|---|
| Transient EMR on EC2 | Nightly batch job, then stop |
| Long-running EMR on EC2 | Interactive work, HBase |
| EMR on EKS | You already run Kubernetes |
| EMR Serverless | No cluster to manage |
概要
An EMR cluster has three kinds of node. The primary node coordinates the cluster. Core nodes run tasks and store data in HDFS, so losing one can lose data. Task nodes only run tasks and store nothing, which makes them ideal for Spot Instances, because losing one costs only time. EMRFS lets the cluster read and write S3 as if it were a file system, so data survives when the cluster ends.
概要
A transient cluster starts for a job, runs it and ends, so you pay only while it works. A long-running cluster stays up for interactive use or always-on services such as HBase. EMR on EKS runs Spark jobs on an existing Kubernetes cluster. EMR Serverless needs no cluster at all. Choose EMR over Glue when you need other frameworks (Hive, HBase, Presto, Flink), custom libraries, fine tuning, or an existing Hadoop workload.
覚えること
- Primary node: coordinates. Core nodes: run tasks and hold HDFS data. Task nodes: compute only.
- Use Spot Instances for task nodes. Keep core and primary nodes On-Demand.
- EMRFS stores data in S3, so clusters can be transient.
- Transient cluster for batch jobs. Long-running cluster for interactive use.
覚えること
- EMR on EKS and EMR Serverless remove the cluster to manage.
試験では
- “Lowest cost for a big Spark job” points to EMR with Spot task nodes.
- “Migrate an on-premises Hadoop cluster” points to EMR.
- “Serverless Spark with no cluster” points to EMR Serverless, or AWS Glue.
- “Run Spark jobs on an existing Kubernetes cluster” points to EMR on EKS.
混同しやすいもの
AWS GlueServerless ETL and the Data Catalog: crawl data, transform it, and write it as Parquet.
Amazon RedshiftA columnar data warehouse for repeated, complex SQL and BI. Choose nodes, Serverless, Spectrum and keys.
Amazon AthenaServerless SQL on S3. You pay for data scanned, so use partitions, Parquet and compression.