关于引擎tez遇到的问题,十分痛心!!!

当执行bin/hive时,报错(主要):

Container killed on request. Exit code is 143
Container exited with a non-zero exit code 143
Failing this attempt. Failing the application.
    at org.apache.tez.client.TezClient.waitTillReady(TezClient.java:911)
    at org.apache.tez.client.TezClient.waitTillReady(TezClient.java:880)
    at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:205)
    at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:116)
    at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:532)
    ... 8 more

 翻阅许多文档都没啥用,好在功夫不负有心人,需要进入mapred-site.xml添加如下属性:

  1. mapreduce.framework.name

  2. yarn-tez

另外,还需要进入mapred-site.xml和yarn-site.xml配置

 

解决方法:

方案一:mapred-site.xml中设置map和reduce任务的内存配置如下:(value中实际配置的内存需要根据自己机器内存大小及应用情况进行修改)


  mapreduce.map.memory.mb
  1536


  mapreduce.map.java.opts
  -Xmx1024M


  mapreduce.reduce.memory.mb
  3072


  mapreduce.reduce.java.opts
  -Xmx2560M

方案二:或者是关掉虚拟内存检查。修改yarn-site.xml


  yarn.nodemanager.vmem-check-enabled
  false

你可能感兴趣的:(大数据)