- Hadoop Beginner's Guide
- Garry Turkington
- 272字
- 2021-07-29 16:51:34
Time for action – downloading Hadoop
Carry out the following steps to download Hadoop:
- Go to the Hadoop download page at http://hadoop.apache.org/common/releases.html and retrieve the latest stable version of the 1.0.x branch; at the time of this writing, it was 1.0.4.
- You'll be asked to select a local mirror; after that you need to download the file with a name such as
hadoop-1.0.4
-bin.tar.gz
. - Copy this file to the directory where you want Hadoop to be installed (for example,
/usr/local
), using the following command:$ cp Hadoop-1.0.4.bin.tar.gz /usr/local
- Decompress the file by using the following command:
$ tar –xf hadoop-1.0.4-bin.tar.gz
- Add a convenient symlink to the Hadoop installation directory.
$ ln -s /usr/local/hadoop-1.0.4 /opt/hadoop
- Now you need to add the Hadoop binary directory to your path and set the
HADOOP_HOME
environment variable, just as we did earlier with Java.$ export HADOOP_HOME=/usr/local/Hadoop $ export PATH=$HADOOP_HOME/bin:$PATH
- Go into the
conf
directory within the Hadoop installation and edit theHadoop-env.sh
file. Search forJAVA_HOME
and uncomment the line, modifying the location to point to your JDK installation, as mentioned earlier.
What just happened?
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.
推薦閱讀
- Instant Raspberry Pi Gaming
- 最后一個人類
- 80x86/Pentium微型計算機原理及應(yīng)用
- 影視后期編輯與合成
- 計算機組網(wǎng)技術(shù)
- Mastering Exploratory Analysis with pandas
- Mastering Predictive Analytics with scikit:learn and TensorFlow
- 未來學(xué)徒:讀懂人工智能飛馳時代
- 漢字錄入技能訓(xùn)練
- 案例解說Delphi典型控制應(yīng)用
- PHP求職寶典
- 人工智能:重塑個人、商業(yè)與社會
- 洞察大數(shù)據(jù)價值:SAS編程與數(shù)據(jù)挖掘
- 單片機原理、接口及應(yīng)用系統(tǒng)設(shè)計
- OSGi原理與最佳實踐