[ https://issues.apache.org/jira/browse/YARN-4539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15084602#comment-15084602 ]
Rohith Sharma K S commented on YARN-4539: ----------------------------------------- Hi [~tangshangwen], when closing the issue as a duplicate, mark the issue resolution as Duplicate. Resolution "Fixed" will be used if there is patch committed by this JIRA. > 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 > Attachments: YARN-4539.1.patch > > > 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 > java.lang.NullPointerException > at > org.apache.hadoop.yarn.nodelabels.CommonNodeLabelsManager.stopDispatcher(CommonNodeLabelsManager.java:251) > at > org.apache.hadoop.yarn.nodelabels.CommonNodeLabelsManager.serviceStop(CommonNodeLabelsManager.java:257) > at > org.apache.hadoop.service.AbstractService.stop(AbstractService.java:221) > at > org.apache.hadoop.service.ServiceOperations.stop(ServiceOperations.java:52) > at > org.apache.hadoop.service.ServiceOperations.stopQuietly(ServiceOperations.java:80) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)