AWS · Analytics
Amazon EMR
Managed big-data frameworks such as Apache Spark, Hive, Presto and HBase, on EC2 clusters, on EKS, or serverless.
What it is and what problem it solves
Amazon EMR runs open-source big-data frameworks (Apache Spark, Hive, Presto/Trino, HBase, Flink, Hudi and others) for processing large datasets. It has three ways to run:
- EMR on EC2: clusters of instances you configure, with primary, core and task nodes.
- EMR on EKS: run Spark jobs on an existing EKS cluster.
- EMR Serverless: submit jobs without managing clusters; capacity scales automatically.
Data usually lives in S3 (through EMRFS), so clusters can be temporary.
When to use it
- Large-scale batch processing, ETL and machine learning with Spark or Hadoop tools.
- Migrating on-premises Hadoop clusters.
- Workloads that need specific open-source frameworks or versions.
When to avoid it
- Simple serverless ETL: Glue.
- SQL on S3 with no infrastructure: Athena.
- A managed data warehouse: Redshift.
Scaling model and bottlenecks
EMR on EC2 scales with managed scaling; task nodes can run on Spot instances. EMR Serverless scales workers per job automatically.
Cost model
What you pay for
EMR on EC2: a per-second EMR fee per instance on top of EC2 and EBS prices. EMR on EKS: a per vCPU-hour and GB-hour uplift plus EKS and compute. EMR Serverless: vCPU, memory and storage per hour while jobs run.
Where it is cost-efficient
Transient clusters that start, process and shut down, with task nodes on Spot.
Where costs grow
Long-running clusters sitting idle, and core nodes on On-Demand that could be Spot task nodes.
Cost controls and common surprises
Use transient clusters or EMR Serverless, Spot for task nodes, managed scaling, and store data in S3 rather than HDFS.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
Clusters in your VPC, security configurations for encryption at rest and in transit, Kerberos, IAM roles for EMR and for EC2 instances, Lake Formation integration.
What you configure
Keep clusters in private subnets, encrypt data, use least-privilege roles, and apply Lake Formation permissions.
Logging and monitoring
Logs to S3, CloudWatch, CloudTrail.
Related security services
Lake Formation, KMS, IAM, S3.
Shared responsibility
AWS provisions and manages the framework installation. You manage jobs, data and access.
Common service combinations
S3 data lake, Glue Data Catalog as the metastore, Step Functions orchestration, Spot instances.
Business application examples
- A nightly Spark job processes 10 TB of logs on a transient cluster with Spot task nodes.
Exam cues and common confusions
- Hadoop/Spark big data, managed: EMR. Serverless ETL: Glue. SQL on S3: Athena.
- Cheapest EMR: Spot for task nodes, transient clusters.
Related
Courses and lessons
- Analytics services: EMR, Redshift, OpenSearch and Amazon Quick · AWS Solutions Architect – Associate (SAA-C03) · Members
Services, comparisons and patterns
- AWS Glue · Service
- Amazon Athena · Service
- Amazon Redshift · Service
- Amazon S3 · Service
- AWS Lake Formation · Service
- Athena vs Redshift vs EMR · Comparison
Sources
Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.