【解决】exited with a non-zero exit code 1

 
安装好集群后运行hadoop-mapreduce-examples.jar 报错,比对cdh配置后,发现少了yarn.application.classpath,conf目录一定要配置,否则也会出现以上错误。
 
yarn-site.xml添加
  <property>
     <name>yarn.application.classpath</name>
     <value>
          /etc/hadoop/conf,
          /usr/lib/hadoop/*,
          /usr/lib/hadoop/lib/*,
          /usr/lib/hadoop-hdfs/*,
          /usr/lib/hadoop-hdfs/lib/*,
          /usr/lib/hadoop-mapreduce/*,
          /usr/lib/hadoop-mapreduce/lib/*,
          /usr/lib/hadoop-yarn/*,
          /usr/lib/hadoop-yarn/lib/*
     </value>
</property>





posted @ 2015-12-22 10:39  向着梦想奋斗  阅读(5772)  评论(1编辑  收藏  举报