Hadoop linux安装hadoop
下载地址:https://archive.apache.org/dist/hadoop/common/hadoop-3.1.3/
步骤一:将hadoop文件解压安装到"/opt/module"文件夹内
tar -zxvf hadoop-3.1.3.tar.gz -C /opt/module/
步骤二:配置环境变量,在"/etc/profile.d"目录下,新建"my_env.sh"文件,将环境变量写入到该文件内
#HADOOP_HOME export HADOOP_HOME=/opt/module/hadoop-3.1.3 export PATH=$PATH:$HADOOP_HOME/bin export PATH=$PATH:$HADOOP_HOME/sbin
步骤三:更新环境变量
source /etc/profile
步骤四:检查是否安装成功
hadoop version