hadoop执行job报错提示root is not a leaf queue
大意就是没有配置节点队列
测试服务器



最近在学习hadoop,搭建集群时发现很多问题,比如yarn的RM高可用集群,很多坑,比如下面这个: root is not a leaf queue
执行job报错:root is not a leaf queue

这个错误找了全网的答案,尝试了没有一个正确。
查询了很多文档,最终还是选择重新搭建一次,发现是配置少了。
解决方案:
修改yarn-site.xml配置,添加一下配置:
<!-- 选择调度器,默认容量 -->
<property>
<description>The class to use as the resource scheduler.</description>
<name>yarn.resourcemanager.scheduler.class</name>
<value>org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler</value>
</property>
在学习Hadoop并搭建集群时遇到YARNRM高可用集群的问题,特别是错误rootisnotaleafqueue。该错误意味着缺少配置节点队列。经过搜索和尝试多种解决方案未果后,决定重新配置,发现需要在yarn-site.xml中添加CapacityScheduler的配置来指定资源调度器。修复这个问题的关键是添加关于CapacityScheduler的配置项。
6441

被折叠的 条评论
为什么被折叠?



