我在运行start-yarn.sh时遇到错误

时间:2016-10-03 07:51:49

标签: hadoop yarn hadoop2

我在运行start-yarn.sh

时遇到错误
start-yarn.sh   
starting yarn daemons   
starting resourcemanager, logging to /opt/hadoop/logs/yarn-root-resourcemanager-Web.out   
localhost: starting nodemanager, logging to /opt/hadoop/logs/yarn-root-nodemanager-Web.out      
localhost: Error: Could not find or load main class org.apache.hadoop.yarn.server.nodemanager.NodeManager

的.bashrc

环境变量

export JAVA_HOME=/opt/jdk1.8.0_101
export JRE_HOME=/opt/jdk1.8.0_101/jre
export PATH=$PATH:/opt/jdk1.8.0_101/bin:/opt/jdk1.8.0_101/jre/bin
export HADOOP_HOME=/opt/hadoop
export HADOOP_INSTALL=$HADOOP_HOME
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin

纱-site.xml中

<property>
    <name>yarn.nodemanager.aux-services</name>
    <value>mapreduce_shuffle</value>
</property>

0 个答案:

没有答案