Flink on Yarn no starting application as amIfStarted exceeds amLimit

Deployment took more than 60 seconds. Pleaseck if the requested resources are available in the YARN cluster

在这里插入图片描述
查看 resource manager yarn 日志

no starting application as amIfStarted exceeds amLimit

在这里插入图片描述

yarn Scheduler webui
在这里插入图片描述
yarn 集群运行着3个任务,其 jobmanager 内存都是指定的 1 G
在这里插入图片描述
在这里插入图片描述

yarn.scheduler.capacity.maximum-am-resource-percent 控制 yarn 集群 AM 使用资源比例

root@yarn-resourcemanager-0:/etc/hadoop# cat capacity-scheduler.xml

<configuration>

    ...

  <property>
    <name>yarn.scheduler.capacity.maximum-am-resource-percent</name>
    <value>0.1</value>
    <description>
      Maximum percent of resources in the cluster which can be used to run
      application masters i.e. controls number of concurrent running
      applications.
    </description>
  </property>

  ...

</configuration>

3 > 24 * 0.1

因此被限制提交

### 更新 resouremanager | nodemanager capacity-scheduler.xml 
root@yarn-resourcemanager-0:/etc/hadoop# cat capacity-scheduler.xml | grep 0.1
    <value>0.1</value>
...
root@yarn-nodemanager-0:/# sed -i 's/0.1/0.5/g' /opt/hadoop-2.7.4/etc/hadoop/capacity-scheduler.xml
...

### 更新配置
root@yarn-resourcemanager-0:/# yarn rmadmin -refreshQueues
root@yarn-resourcemanager-0:/#

在这里插入图片描述
在这里插入图片描述

转自:https://blog.csdn.net/weixin_29208327/article/details/113537459
参考:https://stackoverflow.com/questions/33465300/why-does-yarn-job-not-transition-to-running-state
https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/CapacityScheduler.html
https://blog.csdn.net/weixin_43878293/article/details/98526311

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值