Created
October 27, 2011 22:56
-
-
Save endform/1321151 to your computer and use it in GitHub Desktop.
Single Step EMR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MY_BUCKET=my_bucket | |
S3_INPUT_PATH=s3n://$MY_BUCKET/data/logins_data | |
OUTPUT_PATH=s3n://$MY_BUCKET/output/summarized | |
PIG_SCRIPT=s3n://$MY_BUCKET/scripts/provider_counts.pig | |
ruby elastic-mapreduce --create --alive --num-instance 3 --enable-debugging s3n://$MY_BUCKET/logs | |
JOB_ID=X # found in the output of the last command. | |
ruby elastic-mapreduce --pig-script --args "$PIG_SCRIPT,-p,INPUT=$S3_INPUT_PATH,-p,OUTPUT=$OUTPUT_PATH" -j $JOB_ID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment