栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

TezSession has already shutdown.Application XXX failed 2 times due to AM Container

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

TezSession has already shutdown.Application XXX failed 2 times due to AM Container

错误信息

org.apache.tez.dag.api.SessionNotRunning: TezSession has already shutdown. Application application_1648284477641_0003 failed 2 times due to AM Container for appattempt_1648284477641_0003_000002 exited with exitCode: 1

报错原因

hadoop集群上从机上运行的Container试图使用过多的内存,被NodeManager kill掉了。

[摘录] The NodeManager is killing your container. It sounds like you are trying to use hadoop streaming which is running as a child process of the map-reduce task. The NodeManager monitors the entire process tree of the task and if it eats up more memory than the maximum set in mapreduce.map.memory.mb or mapreduce.reduce.memory.mb respectively, we would expect the Nodemanager to kill the task, otherwise your task is stealing memory belonging to other containers, which you don’t want.

解决方案 方案一

修改 yarn的 hadoop-2.7.2/etc/hadoop/yarn-site.xml,指定内存为6个G;

	
        yarn.nodemanager.vmem-pmem-ratio
        6.0
    
方案二

关掉虚拟内存检查,修改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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/781733.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号