Create AWS EMR Cluster Using AWS CLI and Submit job

Опубликовано: 14 Февраль 2026
на канале: Techno Devs with Saurabh
2,154
39

Configuring EMR
Creating Cluster using CLI

You can refer below GitHub link
https://github.com/saurabhgarg013/cre...

In this Video , create and run an EMR cluster using AWS CLI.
I have covered below topics.

Create an IAM user
Configure and install AWS CLI
Create an EMR cluster using AWS CLI
Create Pyspark code or Job
Submit job using AWS CLI
Submit job using Primary node
Check output in s3 bucket

I have also created videos related to AWS EMR.

Create AWS EMR cluster using AWS management console and submit job
   • AWS EMR Cluster Create using AWS Console |...  

AWS EMR theory
   • AWS EMR Tutorial | Amazon EMR Architecture  

DIFF AWS GLUE VS EMR
   • DIFF AWS GLUE VS EMR| AWS EMR VS AWS Glue  

Command for creating cluster using AWS CLI
You can also refer doc for commands
https://github.com/saurabhgarg013/cre...

aws emr create-cluster --name MyEMRCluster --use-default-roles --release-label emr-6.11.0 --instance-count 3 --instance-type m5.xlarge --applications Name=Spark Name=Hadoop --ec2-attributes SubnetIds=subnet-03xxxx64,KeyName=monu --log-uri s3://myemrproject/logs/

Execute job using awl cli step
aws emr add-steps --cluster-id j-GAVB3ZN07CUB --steps Type=Spark,Name="MySparkJob",ActionOnFailure=CONTINUE,Args=[--deploy-mode,cluster,--master,yarn,--conf,spark.yarn.submit.waitAppCompletion=true,s3://myemrproject/scripts/mypysparkscript_1.py]