如何从源代码运行Apache Hadoop Yarn 'ResourceManager'和'NodeManager'?

kadbb459  于 2023-03-22  发布在  Hadoop
关注(0)|答案(1)|浏览(238)

我正在学习apache hadoop yarn,想从源代码运行它。我在启动'ResourceManager'时遇到错误,我猜它在启动时缺少参数。
听到是错误

org.apache.hadoop.service.ServiceStateException: org.apache.hadoop.yarn.exceptions.YarnException: Failed to initialize queues
    at org.apache.hadoop.service.ServiceStateException.convert(ServiceStateException.java:105)
    at org.apache.hadoop.service.AbstractService.init(AbstractService.java:173)
    at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:109)
    at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceInit(ResourceManager.java:888)
    at org.apache.hadoop.service.AbstractService.init(AbstractService.java:164)
    at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(ResourceManager.java:1300)
    at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:339)
    at org.apache.hadoop.service.AbstractService.init(AbstractService.java:164)
    at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1588)
Caused by: org.apache.hadoop.yarn.exceptions.YarnException: Failed to initialize queues
    at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.initializeQueues(CapacityScheduler.java:757)
    at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.initScheduler(CapacityScheduler.java:342)
    at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.serviceInit(CapacityScheduler.java:418)
    at org.apache.hadoop.service.AbstractService.init(AbstractService.java:164)
    ... 7 more
Caused by: java.lang.IllegalStateException: Queue configuration missing child queue names for root
    at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerQueueManager.parseQueue(CapacitySchedulerQueueManager.java:234)
    at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerQueueManager.initializeQueues(CapacitySchedulerQueueManager.java:162)
    at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.initializeQueues(CapacityScheduler.java:748)
    ... 10 more
wydwbb8l

wydwbb8l1#

这是说,Yarn资源管理器服务启动失败,因为容量调度程序没有正确设置。

Caused by: java.lang.IllegalStateException: Queue configuration missing child queue names for root

有一个名为root的队列,但缺少某些内容。
请阅读以下内容以获取更多信息:https://hadoop.apache.org/docs/r3.1.1/hadoop-yarn/hadoop-yarn-site/CapacityScheduler.html
如果您需要更多,capacity-scheduler.xml配置文件的内容是什么?

相关问题