I am following Hadoop in Action to get started with hadoop with ec2. I'm running on ubuntu and have downloaded and installed the latest version of Hadoop. I am hitting a road block at this command:
hadoop-ec2 launch-cluster mycluster 2
The book says "The Hadoop EC2 tools are in the directory
src/contrib/ec2/bin under your Hadoop installation. Recall that our
ec2-init.sh script has already added that directory to your system
PATH. Within that directory is hadoop-ec2, which is a meta-command for
executing other commands. To launch a Hadoop Cluster on ec2 use:
hadoop-ec2 launch-cluster < cluster-name> < number-of-slaves>"
The response I get is: hadoop-ec2: command not found
I noticed that the variable $HADOOP_HOME
is not set.
It looks like this book is out-dated.
- can someone direct me to a tutorial that was created in the last couple of months on how to set up hadoop with ec2?
- After some quick googling, it seems that
HADOOP_HOME
is deprecated. Is this true?
- I am able to without problems execute
ec2-describe-images
. and get all the available images that I can use. Why doesn't hadoop-ec2
command work?
Thank you for your guidance.
Copyright Notice:Content Author:「Alex Gordon」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/16284028/getting-started-with-the-latest-version-of-hadoop-and-ec2