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
# Terminate the cluster we used in the previous example. | |
elastic-mapreduce --terminate -j j-30Y4E7T52UPJT |
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
time while [ "$waiting" != "0" ]; do | |
sleep 3 | |
elastic-mapreduce --describe j-30Y4E7T52UPJT |grep "State.*WAITING" > /dev/null | |
waiting=$? | |
done |
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
elastic-mapreduce --create --alive --instance-type m1.large |
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
# Launch a cluster and run the word count against a small portion of | |
# 1 crawl segment. | |
# | |
# The input data is read directly from S3. | |
# | |
# Here I've omitted the --alive argument, so the cluster will self-terminate | |
# once the job is complete. | |
elastic-mapreduce \ | |
--create \ |
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
#!/bin/bash -e | |
INSTANCE_TYPES="m1.small m1.medium m1.large m1.xlarge m2.xlarge m2.2xlarge m2.4xlarge c1.xlarge cc1.4xlarge cc2.8xlarge" | |
if [ "$#" -gt "0" ]; then | |
region=$1 | |
else | |
region=$AWS_REGION | |
fi |
NewerOlder