【yarn】Yarn 报错 Application submission is not finished, submitted application xxxxxxx

前言:

提交yarn任务时,始终无法将任务提交到yarn上,并一直在打印日志:

打印的日志如下:

21/10/06 02:43:24 INFO impl.YarnClientImpl: Application submission is not finished, submitted application application_1633458210016_0364 is still in SUBMITTED
21/10/06 02:43:26 INFO impl.YarnClientImpl: Application submission is not finished, submitted application application_1633458210016_0364 is still in SUBMITTED
21/10/06 02:43:28 INFO impl.YarnClientImpl: Application submission is not finished, submitted application application_1633458210016_0364 is still in SUBMITTED
21/10/06 02:43:30 INFO impl.YarnClientImpl: Application submission is not finished, submitted application application_1633458210016_0364 is still in SUBMITTED

问题原因:

造成该问题的原因可能有:

  1. yarn提交的任务过多,处理不过来。
  2. resource managerZooKeeper 写入太多数据并达到缓冲区限制。

我们可以通过查看yarn资源池使用情况来查看队列待定的容器数量,如果数量明显过多,将问题任务kill掉。
【yarn】Yarn 报错 Application submission is not finished, submitted application xxxxxxx_第1张图片

解决方法:

方法一:

将问题任务kill掉。

问题任务:
在这里插入图片描述

yarn application -kill application_id

此时可能会遇到任务无法kill掉的情况,需要将active resoucemanager 停止,然后重新kill 任务。

方法二:

增加 ZooKeeper 缓冲区限制。
【yarn】Yarn 报错 Application submission is not finished, submitted application xxxxxxx_第2张图片

此方法没有进行测试,有兴趣的同学可以测试一下。

你可能感兴趣的:(Hadoop,yarn,zookeeper)