Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hado

Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hado_第1张图片

1.解决步骤:打开 /tmp/root/hive.log查看日志,没有发现什么有用的

2.开启mapereduce 的histroy;  $sbin/mr_jobhistory_daemon.sh start historyserver

3.从jobhistory/job/job_1526113286554_0004的

Diagnostics:
REDUCE capability required is more than the supported max container capability in the cluster. Killing the Job. reduceResourceRequest: maxContainerCapability:
Job received Kill while in RUNNING state.
4.配置问题, 在安装脚本从训练营的拖下来的配置文件中的yarn-site.xml中有如下配置



yarn.scheduler.maximum-allocation-mb

10000



这是说每个container最多申请的内存上限,会不会存在一个container申请过多资源的情况,只要没超过10Gyarn就不会管他,但是可能超过机器内存限制了,然后就被OOM killer杀死了

但是在mapred-site.xml中也有如下设置,



yarn.app.mapreduce.am.command-opts

-Djava.net.preferIPv4Stack=true -Xmx100m





mapreduce.map.java.opts

-Djava.net.preferIPv4Stack=true -Xmx100m





mapreduce.reduce.java.opts

-Djava.net.preferIPv4Stack=true -Xmx100m


你可能感兴趣的:(Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hado)