已解决:FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask

文章目录

问题描述

  1. 今天在跑hive sql的时候,报错;FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask【从hive log找到的错误提示】,蛮无语的,也看不出啥原因导致的。。。
  2. 在网上查了蛮久的,找到一个解决方案

解决方案

参考方案

  1. 参考错误原因:
Cause:
The above issue occurs when there are multiple jobs triggered and Hive removes a session directory for some application failure while Tez Application Master is still using it. The Tez Application Master staging directory is part of Hive Scratch directory which is controlled by the Hive Session.
Solution:
To resolve this issue, block the closing of sessions until tez AM shuts down


【中文描述就是这个样子:】
当触发了多个作业,并且当Tez application Master仍在使用时,Hive删除了某个应用程序故障的会话目录时,就会出现上述问题。
Tez application Master暂存目录是Hive Scratch目录的一部分,该目录由Hive session控制。

解决方案:要解决此问题,请阻止会话关闭,直到tez AM关闭
  1. 在执行sql前设置:set tez.client.asynchronous-stop=false,然后就正常执行了。。。

【未完待续-…先正常能跑,有时间了再深入研究下】

猜你喜欢

转载自blog.csdn.net/qq_43408367/article/details/128601584
今日推荐