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

【解决】exited with a non-zero exit code 1_第1张图片
 
安装好集群后运行hadoop-mapreduce-examples.jar 报错,比对cdh配置后,发现少了yarn.application.classpath,conf目录一定要配置,否则也会出现以上错误。
 
yarn-site.xml添加
 
     yarn.application.classpath
    
          /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/*
    



来自为知笔记(Wiz)



转载于:https://www.cnblogs.com/luguoyuanf/p/6272bc201c2c5774100cb8b6d8e23da4.html

你可能感兴趣的:(【解决】exited with a non-zero exit code 1)