linux执行hive -e报错FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask
时间: 2023-09-27 07:08:04 浏览: 137
这个错误是在运行Hive时出现的,报错信息为"FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask"。这通常是由于内存不足导致的问题。根据引用中的解决方案,可以尝试以下两种方法来解决这个问题。
第一种方法是关闭虚拟内存检查。你可以修改yarn-site.xml文件,将yarn.nodemanager.vmem-check-enabled的值设置为false。具体操作如下:
```bash
cd /opt/module/hadoop-3.1.3/etc/hadoop
vim yarn-site.xml
<property>
<name>yarn.nodemanager.vmem-check-enabled</name>
<value>false</value>
</property>
```
第二种方法是在mapred-site.xml中设置Map和Reduce任务的内存配置。你可以根据自己的机器内存大小和应用情况修改以下配置:
```bash
<property>
<name>mapreduce.map.memory.mb</name>
<value>1536</value>
</property>
<property>
<name>mapreduce.map.java.opts</name>
<value>-Xmx1024M</value>
</property>
<property>
<name>mapreduce.reduce.memory.mb</name>
<value>3072</value>
</property>
<property>
<name>mapreduce.reduce.java.opts</name>
<value>-Xmx2560M</value>
</property>
```
通过尝试这两种方法,你应该能够解决"FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask"的问题。希望对你有帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [已解决:FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask](https://blog.csdn.net/qq_43408367/article/details/128601584)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask](https://blog.csdn.net/weixin_44870066/article/details/123902421)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文