Hadoop 2.4.1设置工作正常,我想使用纱线框架,所以我更新了配置文件,如下所示:
纱-site.xml中
<property>
<name>yarn.nodemanager.local-dirs</name>
<value>/var/hadoop/yarn</value>
</property>
<property>
<name>yarn.resourcemanager.resource-tracker.address</name>
<value>master:8031</value>
</property>
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
<final>true</final>
</property>
mapred-site.xml中
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
yarn-env.sh
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export HADOOP_YARN_HOME=$HADOOP_HOME
export HADOOP_YARN_HOME=$HADOOP_HOME
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
export YARN_CONF_DIR=$HADOOP_HOME/etc/hadoop
NodeManager日志不像以前那样记录在默认位置,而是在单独的位置/logs
中,第一行显示
nice: /bin/yarn: No such file or directory
Hadoop试图做的是/ bin / yarn就是假设它存在但它不在那里。