(1)首先进入hadoop的根目录 (2)配置HADOOP_HOME 查看bashrc文件 (3)配置HADOOP_CONF_DIR (4)配置PATH vi ~/.bashrc (删除上面的PATH,重新写入一个新的) exportPATH= JAVA_HOME/bin: HADOOP_HOME/sbin vi 进入环境变量配置文件,添加上面圈选部分,:wq保存退出(PATH路径好像要在最底下,不然PATH无法使用 HADOOP_...
/bin/bash# 设置 Hadoop 安装路径HADOOP_HOME=/usr/local/hadoop# 设置 Hadoop classpathexportHADOOP_CLASSPATH=$HADOOP_HOME/etc/hadoop:$HADOOP_HOME/share/hadoop/common/*:$HADOOP_HOME/share/hadoop/mapreduce/*:$HADOOP_HOME/share/hadoop/hdfs/*echo"Hadoop classpath is set to:$HADOOP_CLASSPATH" 1. ...