hive执行出现Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apa

Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask (state=08S01,code=2)
set hive.exec.dynamic.partition.mode=nonstrict;
set hive.exec.dynamic.partition=true;
查阅了相关资料,猜测是hive执行内存不足,添加如下参数即可

set hive.exec.dynamic.partition.mode=nonstrict;
set hive.exec.dynamic.partition=true;
set hive.exec.parallel=true;
set hive.support.concurrency=false;
set mapreduce.map.memory.mb=4128;

你可能感兴趣的:(Hive)