hive on Tez :TezSession has already shutdown

今天搭建hive on tez 报错误

Caused by: org.apache.tez.dag.api.SessionNotRunning: TezSession has already shutdow
n. Application application_1565763986535_0001 failed 2 times due to AM Container for appattempt_1565763986535_0001_000002 exited with exitCode: -103

经查找资料知道这种问题是从机上运行的Container试图使用过多的内存,而被NodeManager kill掉了。找到解决办法有两种:

方案一:或者是关掉虚拟内存检查。我们选这个,修改yarn-site.xml


	yarn.nodemanager.vmem-check-enabled
	false

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


  mapreduce.map.memory.mb
  1536


  mapreduce.map.java.opts
  -Xmx2048M


  mapreduce.reduce.memory.mb
  3072


  mapreduce.reduce.java.opts
  -Xmx2560M

你可能感兴趣的:(hive,TezSession,has,already,shutdown)