Deep Dive on Amazon Elastic MapReduce Service Platform with Amazon EC2 Instance
Tags: amazonemr, s3bucket, iamrole, ec2instance
Published: 2024-06-02 10:10:49

“ I have checked the documents of AWS to get into deep dive on amazon elastic mapreduce service platform with amazon ec2 instance. In terms of cost, need to pay for emr service, amount of storage  and data transferred in and out of service for s3 bucket, amazon ec2 instance.”

Amazon Elastic MapReduce is a managed cluster platform that simplifies running big data frameworks, such as Apache Hadoop and Apache Spark, on AWS to process and analyze vast amounts of data. Using these frameworks and related open-source projects, you can process data for analytics purposes and business intelligence workloads. Amazon EMR also lets you transform and move large amounts of data into and out of other AWS data stores and databases, such as Amazon Simple Storage Service and Amazon Dynamodb. 

In this post, you will experience how to deep dive on amazon elastic mapreduce service platform with amazon ec2 instance. Here I have created an amazon emr service cluster with iam roles, key pair and s3 bucket.

#Architecture Overview
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i7k68huqipamv3w9f9ga.png)
The architecture diagram shows the overall deployment architecture with data flow, amazon emr service, s3 bucket, iam service role, ec2 instances.

#Solution overview
The blog post consists of the following phases:

1. Create of Amazon EMR Service Cluster with Required Configurations

2. Output of Emr Cluster as Submit of Spark Application as a Step Option

##Phase 1: Create of Amazon EMR Service Cluster with Required Configurations
1. Create a key pair, iam roles and s3 bucket with required data. Open the console of Amazon emr service, create a cluster with amazon emr running on amazon ec2 option. Specify the cluster name as Emr Cluster and choose the required parameters as choice of application, instance type, ebs volume, networking, cluster logs s3 location, key pair, emr service role, ec2 instance profile for emr role.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/71oz8sdols95q08kqdxd.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o9qvjntd8e2yz2c54q5b.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/22ruiri6aycu6jbt78fs.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o8nrqxwdnqmeyt9536zn.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p9pcr0xe9h1nq4dyxtvx.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vhhsn3gbnwhyi3wzach2.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e3w62nvuwpag1rmxte4t.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fdwefaaydxptfmj5cheg.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wwe06dmq4pfazfkveyqv.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a1wlplj9fhoexomxvjpp.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nyboul8qgz7mtvfil17a.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ejdgleze7tgkqc7l2gud.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9008sbi5j1w704zvajls.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d59v6cyyqeki9vpplut5.png)

##Phase 2: Output of Emr Cluster as Submit of Spark Application as a Step Option

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kd012l4yazia421rih31.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a2ob3rtgslpjwampxmb4.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qesnsb9g3h9yksla553y.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f4ugq5os2qjlofewewho.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/91ludp6r3tyaua0s61gw.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pmpks7fqr5aen7haw47j.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/398hk8odjwjgt4ualexy.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a1wmezfwy2wmlqul3pnf.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1vk6eufx1aiopdvy0jtf.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2xwksro8a8m32jwby9b7.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fj8y14in1m698jkiqt93.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oucpv3qi5zr4xql5jb6b.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hr48d2fy4lg93idn9imn.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s3pdyeb8psdm4h0qn4zf.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8ijek7jqibmb0pthpf4z.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/puq2ludi49y83vn976qo.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ub3yofxphnrdxijj1wjl.png)

#Clean-up
Delete of Amazon EMR Cluster, IAM Roles, S3 Bucket, Key Pair.

#Pricing
I review the pricing and estimated cost of this example.

Cost of Amazon Elastic MapReduce service = $0.048 per hour for EMR m5.xlarge = $(0.048x1.086) = $0.05

Cost of Amazon Elastic Compute Cloud = $0.192 per On Demand Linux m5.xlarge Instance Hour = $(0.192x1.334) = $0.26

Cost of Amazon Simple Storage Service = $0.0

Total Cost = $0.31

#Summary
In this post, I showed “how to deep dive on amazon elastic mapreduce service platform with amazon ec2 instance”.

For more details on Amazon EMR Service, Checkout Get started Amazon EMR Service, open the [Amazon EMR Service console](https://us-west-2.console.aws.amazon.com/emr/home?region=us-west-2#/home). To learn more, read the [Amazon EMR Service documentation](https://docs.aws.amazon.com/emr/?icmpid=docs_homepage_analytics).

Thanks for reading!

Connect with me: [Linkedin](https://www.linkedin.com/in/gargee-bhatnagar-6b7223114)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/38sdi4nsp89fnui8h7dk.png)