Carry out the following steps to download Hadoop:
hadoop-1.0.4
-bin.tar.gz
./usr/local
), using the following command:$ cp Hadoop-1.0.4.bin.tar.gz /usr/local
$ tar –xf hadoop-1.0.4-bin.tar.gz
$ ln -s /usr/local/hadoop-1.0.4 /opt/hadoop
HADOOP_HOME
environment variable, just as we did earlier with Java.$ export HADOOP_HOME=/usr/local/Hadoop $ export PATH=$HADOOP_HOME/bin:$PATH
conf
directory within the Hadoop installation and edit the Hadoop-env.sh
file. Search for JAVA_HOME
and uncomment the line, modifying the location to point to your JDK installation, as mentioned earlier.These steps ensure that Hadoop is installed and available from the command line. By setting the path and configuration variables, we can use the Hadoop command-line tool. The modification to the Hadoop configuration file is the only required change to the setup needed to integrate with your host settings.
As mentioned earlier, you should put the export commands in your shell startup file or a standalone-configuration script that you specify at the start of the session.
Don't worry about some of the details here; we'll cover Hadoop setup and use later.
3.137.178.9