1.下载:
wget http://mirrors.hust.edu.cn/apache/hadoop/common/hadoop-2.8.4/hadoop-2.8.4.tar.gz
2.解压:
tar -zxvf hadoop-2.8.4.tar.gz
3.设置环境变量:
vim /etc/profile
添加以下内容(/opt/soft/hadoop/hadoop-2.8.4为Hadoop安装地址):
export HADOOP_HOME=/opt/soft/hadoop/hadoop-2.8.4
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin
4.生效环境变量:
source /etc/profile
5.判断Hadoop是否安装成功:
hadoop version