美文网首页
hbase的mr任务报错:due to AM Container

hbase的mr任务报错:due to AM Container

作者: _火山_ | 来源:发表于2018-09-07 22:37 被阅读0次

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

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

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

 <property>
 <name>yarn.application.classpath</name>
 <value>/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>
 </property>

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

相关文章

网友评论

      本文标题:hbase的mr任务报错:due to AM Container

      本文链接:https://www.haomeiwen.com/subject/dbvhgftx.html