HADOOP YARN-应用程序已添加到调度程序中,尚未激活.集群资源为空时跳过AM分配 [英] HADOOP YARN - Application is added to the scheduler and is not yet activated. Skipping AM assignment as cluster resource is empty

查看:1143
本文介绍了HADOOP YARN-应用程序已添加到调度程序中,尚未激活.集群资源为空时跳过AM分配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一个项目评估YARN.我试图使简单的分布式外壳程序示例工作.我已经将应用程序提交到提交"阶段,但是它从未启动.这是此行报告的信息:

I am evaluating YARN for a project. I am trying to get the simple distributed shell example to work. I have gotten the application to the SUBMITTED phase, but it never starts. This is the information reported from this line:

ApplicationReport report = yarnClient.getApplicationReport(appId);

Application is added to the scheduler and is not yet activated. Skipping AM assignment as cluster resource is empty. Details : AM Partition = DEFAULT_PARTITION; AM Resource Request = memory:1024, vCores:1; Queue Resource Limit for AM = memory:0, vCores:0; User AM Resource Limit of the queue = memory:0, vCores:0; Queue AM Resource Usage = memory:128, vCores:1;

针对其他开发人员的解决方案似乎必须将yarn-site.xml文件中的yarn.scheduler.capacity.maximum-am-resource-percent从其默认值 .1 增加.我尝试了 .2 .5 的值,但这似乎无济于事.

The solutions for other developers seems to have to increase yarn.scheduler.capacity.maximum-am-resource-percent in the yarn-site.xml file from its default value of .1. I have tried values of .2 and .5 but it does not seem to help.

推荐答案

好像没有正确配置分配给Yarn的RAM.如果您尝试根据自己的安装从教程中进行推断/修改,则这可能是一个问题.我会强烈建议,您使用诸如

Looks like you did not configure the RAM allocated to Yarn in a proper way. This can be a pin in the ..... if you try to infer/adapt from tutorials according to your own installation. I would strongly recommend that you use tools such as this one:

wget http://public-repo-1.hortonworks.com/HDP/tools/2.6.0.3/hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz
tar zxvf hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz
rm hdp_manual_install_rpm_helper_files-2.6.0.3.8.tar.gz
mv hdp_manual_install_rpm_helper_files-2.6.0.3.8/ hdp_conf_files
python hdp_conf_files/scripts/yarn-utils.py -c 4 -m 8 -d 1 false

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆