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

Hive测试环境下报错

Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask (state=08S01,code=1)

解决方法01

# 打开hadoop中yarn-site.xml文件,添加
<property>
<name>yarn.nodemanager.vmem-check-enabledname>
<value>falsevalue>
property>

解决方法02

# mapred-site.xml中设置Map和Reduce任务的内存配置如下:(value中实际配置的内存需要根据自己机器内存大小及应用情况进行修改)
<property>
  <name>mapreduce.map.memory.mbname>
  <value>1536value>
property>
<property>
  <name>mapreduce.map.java.optsname>
  <value>-Xmx1024Mvalue>
property>
<property>
  <name>mapreduce.reduce.memory.mbname>
  <value>3072value>
property>
<property>
  <name>mapreduce.reduce.java.optsname>
  <value>-Xmx2560Mvalue>
property>

你可能感兴趣的:(Hive)