Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active September 2, 2021 03:08
Show Gist options
  • Save garystafford/813f2749eeee7545e699eb64f4b04911 to your computer and use it in GitHub Desktop.
Save garystafford/813f2749eeee7545e699eb64f4b04911 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='kafka-seed-sales',ActionOnFailure=CONTINUE,
Args=[s3a://${SPARK_BUCKET}/spark/01_seed_sales_kafka.py]"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment