FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask (state=08S01,code=2)
时间: 2023-08-28 12:08:33 浏览: 217
Hive错误之 Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask错误分析_xiaohu21的博客-CSDN博客.mht
5星 · 资源好评率100%
引用\[1\]: 这个错误信息表明在执行Hive的HQL语句时出现了错误,具体错误信息是"FAILED: Execution Error, return code 30041 from org.apache.hadoop.hive.ql.exec.spark.SparkTask. Failed to create Spark client for Spark session"。引用\[2\]中提到了类似的问题,报错的语句都是设置了"set hive.execution.engine=spark;"参数。原因是在yarn中有很多新增的任务,导致资源满了。引用\[3\]给出了解决方案,可以在Hive参数中添加一些配置来解决这个问题。具体的解决方案是在"hive-site.xml"的HiveServer2高级配置代码段中添加以下三个参数: hive.spark.client.connect.timeout=30000, hive.spark.client.server.connect.timeout=300000, hive.spark.client.future.timeout=1200。这些参数可以调整Spark客户端的连接和超时时间。
至于你提到的另一个错误"FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask (state=08S01,code=2)",这个错误信息表明在执行Hive的MapReduce任务时出现了错误。根据提供的引用内容,无法确定具体的原因和解决方案。如果你能提供更多的上下文信息或者错误日志,我可以帮助你更好地解决这个问题。
#### 引用[.reference_title]
- *1* [hive-spark: Error while processing statement: FAILED: Execution Error, return code 30041 from org.ap](https://blog.csdn.net/TzBugs/article/details/108322762)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Execution Error, return code 30041 from org.apache.hadoop.hive.ql.exec.spark.SparkTask.](https://blog.csdn.net/hcq_lxq/article/details/124136404)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文