hbase的mr任务报错:due to AM Container for appattempt_1528776097457_0005_000002 exited with exitCode: 1

火山日常啰嗦
旨在记录错误,解决错误。

错误描述:
due to AM Container for appattempt_1528776097457_0005_000002 exited with exitCode: 1

解决办法:
1) 执行命令:hadoop classpath,得到如下结果:
2) 在yarn-site.xml文件中添加配置项

 
 yarn.application.classpath
 /opt/modules/hadoop/etc/hadoop:/opt/modules/hadoop/share/hadoop/common/lib/*:/opt/modules/hadoop/share/hadoop/common/*:/opt/modules/hadoop/share/hadoop/hdfs:/opt/modules/hadoop/share/hadoop/hdfs/lib/*:/opt/modules/hadoop/share/hadoop/hdfs/*:/opt/modules/hadoop/share/hadoop/yarn/lib/*:/opt/modules/hadoop/share/hadoop/yarn/*:/opt/modules/hadoop/share/hadoop/mapreduce/lib/*:/opt/modules/hadoop/share/hadoop/mapreduce/*:/opt/modules/hadoop/contrib/capacity-scheduler/*.jar:/opt/modules/hbase/lib/*:/opt/modules/hadoop/contrib/capacity-scheduler/*.jar:/opt/modules/hbase/lib/*:/opt/modules/hadoop/contrib/capacity-scheduler/*.jar:/opt/modules/hbase/lib/*
 

value值就是hadoop classpath执行的结果
保存,退出。
3) 将该配置文件同步到其他节点。
问题解决,亲测可行。

你可能感兴趣的:(hbase的mr任务报错:due to AM Container for appattempt_1528776097457_0005_000002 exited with exitCode: 1)