YarnClientSchedulerBackend: Yarn application has already exited with state FAILED

Posted PiZriN

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了YarnClientSchedulerBackend: Yarn application has already exited with state FAILED相关的知识,希望对你有一定的参考价值。

在启动spark-shell --master yarn 中我们会发现spark-shell启动时报错

YarnClientSchedulerBackend: Yarn application has already exited with state FAILED

这时我们访问yarn进程看历史记录看看启动时报错异常:ERRORorg.apache.hadoop.hdfs.server.namenode.NameNode: RECEIVED SIGNAL 15: SIGTERM(如图),一般访问的端口号是http://主机名加上8088(默认)

解决办法

当jdk版本是1.8时常常会出现这个问题,直接修改hadoop中yarn-site.xml的配置并分发到各各集群,重新启动集群即可。
 <property>
    <name>yarn.nodemanager.vmem-pmem-ratio</name>
    <value>10</value>
</property>
<property>
    <name>yarn.nodemanager.vmem-check-enabled</name>
    <value>false</value>
</property>

以上是关于YarnClientSchedulerBackend: Yarn application has already exited with state FAILED的主要内容,如果未能解决你的问题,请参考以下文章