run-hadoop-cluster 340 B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. # Launch an EC2 cluster of Hadoop instances, start Hadoop, and connect to the master.
  3. # Import variables
  4. bin=`dirname "$0"`
  5. bin=`cd "$bin"; pwd`
  6. if ! "$bin"/launch-hadoop-cluster ; then
  7. exit $?
  8. fi
  9. echo "Press return to continue."
  10. read dummy
  11. echo "Waiting before trying to connect..."
  12. sleep 30
  13. "$bin"/start-hadoop