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

在使用Hive on Spark执行包含集合操作的SQL时遇到错误,表现为ExecutionError,返回码为3。解决办法包括切换到MapReduce引擎执行(set hive.execution.engine=mr)或者开启MapReduce任务的推测执行(set mapred.map.tasks.speculative.execution=true和set mapred.reduce.tasks.speculative.execution=true)。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在hive on spark引擎中 执行带有集合的sql时出现此报错

[42000][3] Error while processing statement: FAILED: Execution Error, return code 3 from org.apache.hadoop.hive.ql.exec.spark.SparkTask. Spark job failed during runtime. Please check stacktrace for the root cause.

 

解决方法一:切换引擎使用mr

set hive.execution.engine=mr;

解决方法二:

set mapred.map.tasks.speculative.execution=true
set mapred.reduce.tasks.speculative.execution=true

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值