根据jdk、hadoop实际路径做修改
1、环境配置
配置/etc/profile中添加export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/
export HADOOP_HOME=/usr/local/hadoop
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin:/usr/local/hadoop/lib/native
export CLASSPATH=$CLASSPATH:$($HADOOP_HOME/bin/hadoop classpath)
export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/
export HADOOP_HOME=/usr/local/hadoop
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin:/usr/local/hadoop/lib/native
export CLASSPATH=$CLASSPATH:$($HADOOP_HOME/bin/hadoop classpath)
for i in /usr/local/hadoop/share/hadoop/tools/lib/*;
do CLASSPATH=$i:"$CLASSPATH";
done
for i in /usr/local/hadoop/share/hadoop/common/lib/*;
do CLASSPATH=$i:"$CLASSPATH";
done
for i in /usr/local/hadoop/share/hadoop/hdfs/lib/*;
do CLASSPATH=$i:"$CLASSPATH";
done
for i in /usr/local/hadoop/share/hadoop/hdfs/*;
do CLASSPATH=$i:"$CLASSPATH";
done
for i in /usr/local/hadoop/share/hadoop/common/*;
do CLASSPATH=$i:"$CLASSPATH";
done
export CLASSPATH=$CLASSPATH
配置文件~/.bashrc中添加
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/hadoop/lib/native:/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/arm/server