1.与安装jdk同理拷贝压缩包,解压到/opt/module/
详情见:https://blog.csdn.net/daxuddaai/article/details/109150650
2.配置环境
[hx@spark06 ~]$ vim /etc/profile
添加下面的内容
##HADOOP_HOME
export HADOOP_HOME=/opt/module/hadoop-3.1.4
export PATH=$PATH:$HADOOP_HOME/bin
export PATH=$PATH:$HADOOP_HOME/sbin
3查看
[hx@spark06 ~]$ hadoop version
注意不是 -version