【问题记录】hadoop3.1报错Container killed on request. Exit code is 143
1.问题描述,hadoop运行jar包报错143[2022-01-10 22:41:15.848]Container killed on request. Exit code is 143[2022-01-10 22:41:15.867]Container exited with a non-zero exit code 143.2.解决[fuhong@linux201 hadoop-3.1.3]
·
1.问题描述,hadoop运行jar包报错143
[2022-01-10 22:41:15.848]Container killed on request. Exit code is 143
[2022-01-10 22:41:15.867]Container exited with a non-zero exit code 143.
2.解决
[fuhong@linux201 hadoop-3.1.3]$ cd $HADOOP_HOME/etc/hadoop
[fuhong@linux201 hadoop]$ vim yarn-site.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<!-- 指定MR走shuffle -->
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
<!-- 指定ResourceManager的地址-->
<property>
<name>yarn.resourcemanager.hostname</name>
<value>linux202</value>
</property>
<!-- 环境变量的继承 -->
<property>
<name>yarn.nodemanager.env-whitelist</name>
<value>JAVA_HOME,HADOOP_COMMON_HOME,HADOOP_HDFS_HOME,HADOOP_CONF_DIR,CLASSPATH_PREPEND_DISTCACHE,HADOOP_YARN_HOME,HADOOP_MAPRED_HOME</value>
</property>
<property>
<description>Whether virtual memory limits will be enforced for
containers.</description>
<name>yarn.nodemanager.vmem-check-enabled</name>
<value>false</value>
</property>
</configuration>
主要是这段:
<property>
<description>Whether virtual memory limits will be enforced for
containers.</description>
<name>yarn.nodemanager.vmem-check-enabled</name>
<value>false</value>
</property>
重启yarn:
[fuhong@linux202 sbin]$ start-yarn.sh
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献1条内容
所有评论(0)