錯誤信息:
Container exited with a non-zero exit code 1. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
錯誤: 找不到或無法加載主類 org.apache.hadoop.mapreduce.v2.app.MRAppMaster
解決方法:
在主機中運行:hadoop classpath
記下返回的結果
vi $HADOOP_HOME/etc/hadoop/yarn-site.xml
添加一個配置
yarn.application.classpath hadoop classpath返回信息重啓yarn
原文鏈接:https://blog.csdn.net/hongxiao2016/article/details/88919176