Skip to content

Instantly share code, notes, and snippets.

@snoremac
Created January 5, 2014 02:35
Show Gist options
  • Save snoremac/8263566 to your computer and use it in GitHub Desktop.
Save snoremac/8263566 to your computer and use it in GitHub Desktop.
Wait for an EMR cluster to transition to WAITING state.
time while [ "$waiting" != "0" ]; do
sleep 3
elastic-mapreduce --describe j-30Y4E7T52UPJT |grep "State.*WAITING" > /dev/null
waiting=$?
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment