当前位置: 代码迷 >> 综合 >> Error during job, obtaining debugging information... FAILED: Execution Error, return code 2 from org
  详细解决方案

Error during job, obtaining debugging information... FAILED: Execution Error, return code 2 from org

热度:39   发布时间:2024-03-07 15:18:42.0

报错:
Error during job, obtaining debugging information...
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask

解决:
失败原因
经查发现发现/tmp/hadoop/.log提示java.lang.OutOfMemoryError: Java heap space,原因是namenode内存空间不够,jvm不够新job启动导致。

解决方法
将你的hive可以设置成本地模式来执行任务试试:

set hive.exec.mode.local.auto=true;

一劳永逸:

在hive-site.xml 文件添加配置

<property>  
  <name>hive.exec.mode.local.auto</name>  
  <value>true</value>  
</property> 

  相关解决方案