Skip to content

Instantly share code, notes, and snippets.

@ranjitiyer
Created February 22, 2019 19:25
Show Gist options
  • Save ranjitiyer/e38b6de9859fef358644b346fb385b78 to your computer and use it in GitHub Desktop.
Save ranjitiyer/e38b6de9859fef358644b346fb385b78 to your computer and use it in GitHub Desktop.
Submit EMR steps
# submit a step to run a command on a cluster
AWS_PROFILE=integ-preprod aws emr add-steps \
--cluster-id j-32M91WVU0V1OR \
--steps Name="Create table",ActionOnFailure=CONTINUE,Jar=command-runner.jar,Args=[beeline,-u,jdbc:hive2://ec2-52-91-119-206.compute-1.amazonaws.com:10000,-n,admin,-p,admin,-e,"create table d417f3333(id INT, value STRING);"] --region us-east-1 --endpoint https://emr-preprod-us-east-1.amazon.com --no-verify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment