How to create EMR cluster using AWS CLI

0 votes
Can someone help me with the command to create a EMR cluster using AWS CLI? Any help is appreciated.
Feb 27, 2019 in AWS by Reshma Bhattacharya
1,963 views

1 answer to this question.

0 votes

The command to create EMR cluster using AWS CLI is as follows:-

aws emr create-cluster --name "Demo Cluster" --ami-version 5.2 --applications Name=Hive Name=Pig --use-default-roles --ec2-attributes KeyName=YourKey --instance-groups InstanceGroupType=MASTER,InstanceCount=1,InstanceType=m4.large InstanceGroupType=CORE,InstanceCount=2,InstanceType=m4.large --steps Type=PIG,Name="Pig Program",ActionOnFailure=CONTINUE,Args=[-f,s3://mybucket,-p,INPUT=s3://mybucket,-p,OUTPUT=s3://mybucket,$INPUT=s3://mybucket,$OUTPUT=s3://mybucket]

This will create a 2 node cluster 1 master and 1 slave.

Hope this helps.

answered Feb 27, 2019 by Priyaj
• 58,020 points

Related Questions In AWS

0 votes
1 answer

How to create an ECS cluster using AWS CLI?

Hi@akhtar, You can create a new Amazon ECS cluster. ...READ MORE

answered Nov 8, 2020 in AWS by MD
• 95,460 points
901 views
0 votes
1 answer

How to create a S3 bucket using AWS CLI?

You can use the following command:- C:\Users\priyj_kumar>aws s3api ...READ MORE

answered Feb 15, 2019 in AWS by Priyaj
• 58,020 points
6,127 views
0 votes
1 answer

How to create a VPC using AWS CLI?

To create an Amazon VPC using AWS ...READ MORE

answered Feb 21, 2019 in AWS by Priyaj
• 58,020 points
1,138 views
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer

How to create a redshift cluster using AWS CLI?

You can create your cluster using AWS ...READ MORE

answered Feb 25, 2019 in AWS by Priyaj
• 58,020 points
1,235 views
0 votes
1 answer

How to create a EMR Cluster using Java AWS SDK?

The Java code for creating an AWS ...READ MORE

answered Feb 27, 2019 in AWS by Priyaj
• 58,020 points
1,590 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP