tangshangwen created YARN-4539: ---------------------------------- Summary: CommonNodeLabelsManager throw NullPointerException when the fairScheduler init failed Key: YARN-4539 URL: https://issues.apache.org/jira/browse/YARN-4539 Project: Hadoop YARN Issue Type: Bug Affects Versions: 2.7.1 Reporter: tangshangwen Assignee: tangshangwen
When the scheduler initialization failed and RM stop compositeService cause the CommonNodeLabelsManager throw NullPointerException. {noformat} 2016-01-04 22:19:52,190 INFO org.apache.hadoop.service.AbstractService: Service org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler failed in state INITED; cause: java.io.IOException: Failed to initialize FairScheduler java.io.IOException: Failed to initialize FairScheduler at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler.initScheduler(FairScheduler.java:1377) at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler.serviceInit(FairScheduler.java:1394) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) .... 2016-01-04 22:19:52,193 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Stopping ResourceManager metrics system... 2016-01-04 22:19:52,194 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: ResourceManager metrics system stopped. 2016-01-04 22:19:52,194 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: ResourceManager metrics system shutdown complete. 2016-01-04 22:19:52,194 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: AsyncDispatcher is draining to stop, igonring any new events. 2016-01-04 22:19:52,194 INFO org.apache.hadoop.service.AbstractService: Service org.apache.hadoop.yarn.nodelabels.CommonNodeLabelsManager failed in state STOPPED; cause: java.lang.NullPointerException java.lang.NullPointerException {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)