错误信息

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;

 <property><name>yarn.nodemanager.vmem-pmem-ratio</name><value>6.0</value></property>

方案二

关掉虚拟内存检查,修改yarn-site.xml。

<property><name>yarn.nodemanager.vmem-check-enabled</name><value>false</value>
</property>

方案三

修改mapred-site.xml中设置Map和Reduce任务的内存配置(value中的值根据实际实况灵活修改)

<property><name>mapreduce.map.memory.mb</name><value>1536</value>
</property>
<property><name>mapreduce.map.java.opts</name><value>-Xmx2048M</value>
</property>
<property><name>mapreduce.reduce.memory.mb</name><value>3072</value>
</property>
<property><name>mapreduce.reduce.java.opts</name><value>-Xmx2560M</value>
</property>

TezSession has already shutdown.Application XXX failed 2 times due to AM Container相关推荐

  1. hive on Tez :TezSession has already shutdown

    今天搭建hive on tez 报错误 Caused by: org.apache.tez.dag.api.SessionNotRunning: TezSession has already shut ...

  2. TezSession has already shutdown. No cluster diagnostics found.

    问题 ERROR [HiveServer2-Background-Pool: Thread-5702712]: tez.TezTask (:()) - Failed to execute tez gr ...

  3. Installation failed with message Invalid File:(Application Installatino Failed)

    导入一个demo 运行发现上图问题, Application Installation Failed 最后自己清理下工程就好了 参考方法: Click Build tab ---> Clean ...

  4. 成功解决 raise RuntimeError(“The JPMML-SkLearn conversion application has failed. The Java executable

    成功解决    raise RuntimeError("The JPMML-SkLearn conversion application has failed. The Java execu ...

  5. ERROR 2384 — [ main] o.s.boot.SpringApplication : Application run failed

    springboot数据库建表运行后报错: ERROR 2384 - [ main] o.s.boot.SpringApplication : Application run failed org.s ...

  6. Cygwin Application initialization failed: no display name and no $DISPLAY environment

    使用新版本的Cygwin,安装时出现很多问题.------------------留作参考---------------------- 首先从官网下载setup.exe后运行安装,选择需要的包. 在终 ...

  7. 【Java】application run failed Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and

    springboot 启动时报这个错:application run failed Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and ...

  8. fatal: unable to access ‘https://github.com/xxx/‘: Failed to connect to 127.0.0.1 port 7890: Connect

    git clone 项目的时候遇到报错: fatal: unable to access 'https://github.com/xxx/': Failed to connect to 127.0.0 ...

  9. Springboot启动报错[ main] o.s.boot.SpringApplication: Application run failed(佷有可能是版本问题)

    前言:本人小白一枚,最近在自学JAVA时遇到了一个小问题,在网上求解无果后,自己找到了原因,这里跟大家分享一下. 开发环境:Win10:IntelliJ IDEA 2021.3.2 版本信息:Java ...

最新文章

  1. Nodejs进阶:express+session实现简易身份认证
  2. c++ -- 构造函数与析构函数
  3. discuz二次开发笔记(一)------$_G全解析,discuz_g_PHP教程
  4. set 数据类型的应用场景
  5. 实时视频传输中的BBR拥塞控制
  6. 网络OS显神威 认识Linux远程桌面控制
  7. 模拟jquery链式访问
  8. 总结libevent安装方法
  9. On Error Resume Next是什么意思
  10. java中怎么打开标尺_PageOffice如何显示/隐藏Word文档中的标尺
  11. python实现按照给定范围随机生成小数,偶数,奇数,整数,正态分布,均匀分布数据以及图片
  12. Python--sort()函数的用法
  13. 计算机win764位相机驱动,万能驱动助理win7 64位
  14. SIFI和ORB在尺度缩放、旋转、仿射上的特征点不变实验代码,并比较SIFI和ORB提取特征点的速度
  15. linux控制风扇转速的命令,Linux下笔记本的风扇控制问题
  16. Android程序崩溃异常收集框架
  17. 【域名】查看MX记录是否生效
  18. 微信支付-扫码支付方式在ThinkPHP商城中的使用(第二部分)
  19. xRM 扩展性及产品组合
  20. 广义表的长度和深度计算

热门文章

  1. win7触摸板怎么关闭_win7笔记本怎么打开触摸板
  2. linux编译pcre生成动态链接库,Linux下编译安装PCRE库
  3. TCP/IP 标志位 SYN ACK RST UTG PSH FIN
  4. 吃豆人游戏-第12届蓝桥杯Scratch选拔赛真题精选
  5. ArchLinux中安装Virtualbox Guest Additions增强功能
  6. java字间距突然变大
  7. 机器人视觉分析算法_微链3D视觉机器人行为分析
  8. 什么叫冷备用状态_开关在运行、冷备用、热备用分别指开关在什么状态?
  9. 华为hg532e设置虚拟服务器,电信光猫怎么连接华为HG532e一体机并设置上网?
  10. win7系统做服务器配置,win7系统服务器环境配置