[英]Getting FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask exception while access Hive views
[英]Hive : FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
失败:执行错误,将记录插入到Hive表中时,从org.apache.hadoop.hive.ql.exec.mr.MapRedTask错误返回代码2。
select * from tablename
可以正常工作。
我是否需要在hive-site.xml中添加任何属性?
看来您正在尝试插入分区表。 在插入之前设置下面的属性。
SET hive.exec.dynamic.partition = true;
SET hive.exec.dynamic.partition.mode = nonstrict;
set hive.exec.max.dynamic.partitions=10000;
set hive.exec.max.dynamic.partitions.pernode=1000;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.