Amazon EMR
Cloud service · AWS · Updated

Amazon EMR

In short

Amazon EMR is a managed AWS service for large-scale data processing with frameworks like Hadoop and Spark, offering petabyte-scale analytics on a scalable infrastructure at a lower cost than owning Hadoop clusters.

Cloud Services Hub →

7 key features of Amazon EMR

01
Big Data Framework Management

EMR simplifies launching, terminating, and managing big data frameworks like Apache Hadoop or Spark, handling setup, configuration, and optimization.

02
Diverse Data Processing

Supports various big data frameworks beyond Hadoop and Spark, like HBase, Presto, and Flink, with pre-configured or customizable settings.

03
Scalability and Resource Management

Automatically scales the underlying cluster, managing tasks like patching and monitoring, and offers auto-scaling to match workload demands.

04
Cost Efficiency

Provides a pay-as-you-go model, reducing costs compared to on-premises deployments, with options for Spot and Reserved Instances to further save expenses.

05
Data Accessibility

Facilitates easy access and processing of data from storage solutions like Amazon S3 and databases such as DynamoDB.

06
Security Features

Offers encryption, network isolation with Amazon VPC, and integrated identity management with AWS IAM to ensure data security and compliance.

07
Deployment Flexibility

Features like EMR on EKS for Kubernetes integration and EMR on Outposts for on-premises data processing, along with a Serverless mode, provide flexible deployment options.

Where Amazon EMR is used

  1. 01
    Data Transformation and Preprocessing

    EMR is often used to clean, transform, and prepare large datasets for analysis. Organizations use it to run ETL (extract, transform, load) jobs to organize data into structured formats, making it easier to analyze and obtain insights.

  2. 02
    Log Analysis

    EMR processes and analyzes log data from web and mobile apps using frameworks like Hive, Pig, and Spark, enabling deep insights into user behavior and system performance.

  3. 03
    Data Warehousing

    Companies build data warehouses on EMR, ingesting and structuring data from diverse sources for business intelligence and reporting.

  4. 04
    Machine Learning Workflows

    Utilizing Spark MLlib and Hadoop MapReduce, EMR supports data preprocessing, model training, and evaluation for machine learning.

  5. 05
    Genomic Research

    Life science organizations leverage EMR for genomic sequencing and analysis, handling large-scale datasets in research.

  6. 06
    Fraud Detection

    Financial institutions analyze transaction data on EMR to identify fraud and suspicious activities, leveraging its scalability for large-scale data analysis.

  7. 07
    IoT Analytics

    EMR processes sensor data from IoT devices, supporting predictive maintenance and smart city applications through data transformation and analysis.

  8. 08
    Website Analytics

    By processing website logs and activity data, EMR aids companies in understanding customer behavior and optimizing conversions.

How Amazon EMR is priced

Amazon EMR on Amazon EC2

You pay for the EMR service as well as the underlying EC2 instances and any attached EBS volumes. These charges are billed per second with a one-minute minimum. EC2 pricing options include On-Demand, one-year and three-year Reserved Instances, Capacity Savings Plans, and Spot Instances. Spot Instances are spare EC2 capacity available at up to a 90% discount compared to On-Demand prices.

Amazon EMR on Amazon EKS

If you are running EMR on Amazon EKS (Elastic Kubernetes Service), you pay for the EKS cluster resources and EMR charges. EMR pricing is based on the vCPU and memory resources requested for the pods running your jobs, measured from the start of the EMR application image download until the pod terminates and rounded up to the nearest second.

Amazon EMR on AWS Outposts

Provides an on-premises option. Pricing includes EMR service charges as well as EC2 instance and Outpost hardware costs.

Amazon EMR Serverless

You pay for aggregate worker vCPU, memory, and storage resources from the time workers are ready to run your workload until they stop, rounded up to the nearest second with a one-minute minimum. Workers configured to start at application startup are billed until the application stops or remains idle. With custom images, billing begins when EMR Serverless starts downloading the image.

Amazon EMR WAL

Amazon EMR WAL charges for usage as EMR-WAL-WALHours, writes as WriteRequestGiB, and reads as ReadRequestGiB.

Public IPv4 Address Charges

Standard public IPv4 address charges apply to IPv4 addresses used with EMR on EC2 clusters, EMR on EKS clusters, and EMR Serverless applications.

Services Amazon EMR works with

Amazon S3Amazon S3

Amazon EMR uses Amazon S3 for data storage and to store EMR logs and bootstrap actions.

Amazon EC2Amazon EC2

Amazon EMR provisions a cluster of Amazon EC2 instances to run big data frameworks and applications.

AWS GlueAWS Glue

Amazon EMR integrates with AWS Glue for data cataloging and schema management.

Amazon CloudWatchAmazon CloudWatch

Amazon EMR integrates with Amazon CloudWatch to monitor and log metrics and events from EMR clusters.

Amazon AthenaAmazon Athena

Amazon EMR clusters running Apache HBase can expose their tables to Athena through the Athena HBase connector. This lets users query HBase data with SQL and combine it with other federated data sources.

Amazon AuroraAmazon Aurora

Amazon EMR can use an Aurora MySQL-compatible database as an external Hive metastore. Keeping metadata outside the cluster allows successive EMR clusters to reuse the same table definitions.

Amazon CorrettoAmazon Corretto

Amazon EMR includes Amazon Corretto as a Java runtime for its big-data applications. The Corretto and Java versions available depend on the EMR release and application.

Amazon DataZone

Amazon EMR Spark jobs can publish lineage events to Amazon DataZone using OpenLineage integration. These events connect processing jobs with their input and output datasets in the data catalog.

Amazon DocumentDB (with MongoDB compatibility)Amazon DocumentDB (with MongoDB compatibility)

Amazon EMR Spark jobs can read and write Amazon DocumentDB collections through the MongoDB Spark Connector. This supports distributed transformations of document data without implementing individual database API calls in each job.

Amazon DynamoDBAmazon DynamoDB

Amazon EMR includes a DynamoDB connector for accessing DynamoDB tables from Hadoop and Hive workloads. Jobs can analyze table contents, export them to S3, or load processed results back into DynamoDB.

What is Amazon EMR

2 min read

Amazon EMR (Elastic MapReduce) is a cloud service provided by Amazon Web Services (AWS) that simplifies the processing and analysis of large volumes of data. It integrates with various open-source frameworks, notably Apache Hadoop and Apache Spark, but also supports others like Apache Hive and Presto, enabling a wide range of data processing tasks, from batch processing to real-time analytics.

At its core, EMR facilitates the setup, management, and scaling of data processing clusters in the cloud. Users can quickly provision as many or as few resources as needed, scaling the computing capacity to meet the demands of their data processing jobs. This flexibility helps optimize costs, as users only pay for the resources they consume.

EMR service quotas can overlap: some apply to specific APIs, while account-level quotas also constrain the aggregate API request rate and bucket replenishment rate. Increasing a specific quota may therefore leave requests subject to account-level throttling.

EMR applications can run on EMR clusters with Amazon EC2 instances, on AWS Outposts, on Amazon EKS, or with EMR Serverless.

EMR clusters can be persistent or transient. Persistent clusters run until you shut them down and suit interactive analysis and data warehousing; transient clusters automatically shut down after processing a job flow and suit periodic processing tasks.

EMR is fault tolerant for node failures and continues job execution if a node goes down. It provisions a new node when a core node fails, but does not replace nodes if all nodes in the cluster are lost. It also integrates seamlessly with other AWS services, such as Amazon S3 for storage, Amazon RDS and Amazon DynamoDB for database services, and Amazon CloudWatch for monitoring and logging, making it a versatile choice for comprehensive data analytics pipelines.

For Apache HBase applications on EMR on EC2, Amazon EMR WAL provides a durable managed storage layer for write-ahead logs that outlives the cluster.

Security in EMR is robust, offering features like encryption in transit and at rest, network isolation using Amazon VPC, and integrated identity management with AWS IAM. This ensures that data is not only processed efficiently but also kept secure from unauthorized access.

Overall, Amazon EMR provides a comprehensive, scalable, and cost-effective solution for processing vast amounts of data, making it a popular choice for organizations looking to leverage big data analytics without the overhead of managing traditional on-premises data centers.

Concepts related to Amazon EMR

Amazon EMR exam questions

Real practice exam questions on Amazon EMR, with the correct answer and its explanation. Answer them with every option in the exam simulator.

CLF-C02

A research company processes large datasets each night using existing Apache Hadoop MapReduce and Apache Spark applications on an on-premises cluster. The company wants to move this processing to AWS, retain these frameworks without rewriting the applications for a different processing engine, and reduce the effort required to provision and manage the cluster. Which AWS service is the best fit?

Show answerCORRECT ANSWER

Amazon EMR

Amazon EMR provides managed big data processing environments that support frameworks including Apache Hadoop and Apache Spark. It can run the company's existing applications while simplifying cluster provisioning, management, and scaling.

MLA-C02

An advertising company receives ad impressions and clicks in two separate streaming sources. Each impression contains an impression_id, impression_time, and campaign attributes. Each click contains the corresponding impression_id and a click_time. Both timestamps represent when the activity occurred.

An ML engineer must enrich clicks with campaign attributes only when the click occurred between the impression_time and 30 minutes after the impression_time. Either stream can arrive out of order. The company wants to use its existing Spark Structured Streaming code, configure a 10-minute event-time watermark delay for each stream, and automatically remove join state that can no longer produce eligible matches as both streams advance.

Which solution meets these requirements?

Show answerCORRECT ANSWER

Run the application on Amazon EMR. Apply 10-minute watermarks to impression_time and click_time before an inner join. Join on impression_id and require click_time to be at least impression_time and no later than impression_time plus 30 minutes.

Spark Structured Streaming on Amazon EMR supports stream-stream joins with event-time watermarks and time-range conditions. Watermarks on both inputs, combined with this bounded timestamp relationship, let Spark determine when retained records can no longer produce eligible matches and clean up state on both sides as event time advances.

SAP-C03

A manufacturer is designing a nightly analytics pipeline that uses Amazon EMR on EC2 to transform 4 TB of equipment measurements. The transformed results must be loaded into tables in an existing provisioned Amazon Redshift cluster in a private VPC. The EMR jobs can produce either Parquet or CSV output.

The company's standard deployment places EMR clusters in a separate analytics VPC in the same AWS Region. However, the company permits workload-specific EMR clusters in the Redshift VPC. Security policy requires intermediate results to remain in the EMR cluster's HDFS until they are loaded into Redshift; staging the results in Amazon S3 or another service is prohibited. The solution must load the output in parallel without a custom data-transfer application.

Which design meets these requirements?

Show answerCORRECT ANSWER

Deploy the EMR cluster in the Redshift VPC. Write the transformed results as multiple CSV files in HDFS, and run Redshift COPY using the EMR cluster as the source after configuring the required permissions and network access.

Redshift COPY can load text files in parallel directly from EMR HDFS, including CSV files. Placing EMR in the Redshift VPC also satisfies the same-VPC and same-Region requirements. No intermediate staging service or custom transfer application is necessary.

Practice Amazon EMR in a full exam

Questions on Amazon EMR in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn Amazon EMR in lessons

14 short lessons on Amazon EMR in 6 certification courses.

and 8 more lessons

Open the lessons

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.