ResourceManager启动报错:Queue configuration missing child queue names for root【已解决】

ResourceManager启动报错:Queue configuration missing child queue names for root【已解决】_第1张图片

Queue configuration missing child queue names for root

  • 现象
  • 报错
  • 分析ResourceManager输出日志
  • 解决

现象

start-all.sh后缺少RM的进程

报错

查看启动日志输出文件

2023-05-23 19:28:19,863 INFO  [main] resourcemanager.RMNMInfo (RMNMInfo.java:<init>(63)) - Registered RMNMInfo MBean
2023-05-23 19:28:19,864 INFO  [main] security.YarnAuthorizationProvider (YarnAuthorizationProvider.java:getInstance(57)) - org.apache.hadoop.yarn.security.ConfiguredYarnAuthorizer is instiantiated.
2023-05-23 19:28:19,865 INFO  [main] util.HostsFileReader (HostsFileReader.java:refresh(131)) - Refreshing hosts (include/exclude) list
2023-05-23 19:28:19,866 INFO  [main] conf.Configuration (Configuration.java:getConfResourceAsInputStream(2424)) - capacity-scheduler.xml not found
2023-05-23 19:28:19,882 INFO  [main] service.AbstractService (AbstractService.java:noteFailure(272)) - Service org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler failed in state INITED; cause: java.lang.IllegalStateException: Queue configuration missing child queue names for root
java.lang.IllegalStateException: Queue configuration missing child queue names for root
	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.parseQueue(CapacityScheduler.java:589)
	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.initializeQueues(CapacityScheduler.java:474)
	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.initScheduler(CapacityScheduler.java:304)

分析ResourceManager输出日志

找到启动日志yarn--resourcemanager-.out

报错内容为:
core-site.xml not found
yarn-site.xml not found
capacity-scheduler.xml not found

解决

日志内容为配置文件找不到,这个错误是马虎人为造成的眼花看错了key修改错了配置文件,导致报错。
检查 etc/hadoop/yarn-env.sh
如果确认无误,则没错。 一般不需要修改
ResourceManager启动报错:Queue configuration missing child queue names for root【已解决】_第2张图片

你可能感兴趣的:(java,hadoop,开发语言)