Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active September 28, 2021 02:10
Show Gist options
  • Save garystafford/1b19189ea100c6e45e52aac9aa8ca074 to your computer and use it in GitHub Desktop.
Save garystafford/1b19189ea100c6e45e52aac9aa8ca074 to your computer and use it in GitHub Desktop.
export CLUSTER_ID="<your-cluster-id>"
export SPARK_BUCKET="<your-bucket-111222333444-us-east-1>"
aws emr add-steps \
--cluster-id ${CLUSTER_ID} \
--steps """Type=Spark,Name='create-schemas',ActionOnFailure=CONTINUE,
Args=[s3a://${SPARK_BUCKET}/spark/10_create_schemas.py]"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment