Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-5874

RM -format-state-store and -remove-application-from-state-store commands fail with NPE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha2
    • Component/s: resourcemanager
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      16/11/12 13:29:29 INFO resourcemanager.ResourceManager: registered UNIX signal handlers for [TERM, HUP, INT]
      16/11/12 13:29:29 INFO recovery.RMStateStoreFactory: Using RMStateStore implementation - class org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore
      16/11/12 13:29:30 INFO event.AsyncDispatcher: Registering class org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStoreEventType for class org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore$ForwardingEventHandler
      16/11/12 13:29:30 INFO service.AbstractService: Service org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore failed in state INITED; cause: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore.constructZkRootNodeACL(ZKRMStateStore.java:200)
      	at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore.initInternal(ZKRMStateStore.java:236)
      	at org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore.serviceInit(RMStateStore.java:682)
      	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
      	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.deleteRMStateStore(ResourceManager.java:1447)
      	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1374)
      16/11/12 13:29:30 INFO event.AsyncDispatcher: AsyncDispatcher is draining to stop, ignoring any new events.
      16/11/12 13:29:30 FATAL resourcemanager.ResourceManager: Error starting ResourceManager
      java.lang.NullPointerException
      	at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore.constructZkRootNodeACL(ZKRMStateStore.java:200)
      	at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore.initInternal(ZKRMStateStore.java:236)
      	at org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore.serviceInit(RMStateStore.java:682)
      	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
      	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.deleteRMStateStore(ResourceManager.java:1447)
      	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1374)
      16/11/12 13:29:30 INFO resourcemanager.ResourceManager: SHUTDOWN_MSG: 
      
      16/11/12 16:58:58 INFO resourcemanager.ResourceManager: registered UNIX signal handlers for [TERM, HUP, INT]
      16/11/12 16:58:59 INFO recovery.RMStateStoreFactory: Using RMStateStore implementation - class org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore
      16/11/12 16:58:59 INFO event.AsyncDispatcher: Registering class org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStoreEventType for class org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore$ForwardingEventHandler
      16/11/12 16:58:59 INFO service.AbstractService: Service org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore failed in state INITED; cause: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore.constructZkRootNodeACL(ZKRMStateStore.java:200)
      	at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore.initInternal(ZKRMStateStore.java:236)
      	at org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore.serviceInit(RMStateStore.java:682)
      	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
      	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.removeApplication(ResourceManager.java:1462)
      	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1377)
      16/11/12 16:58:59 INFO event.AsyncDispatcher: AsyncDispatcher is draining to stop, ignoring any new events.
      16/11/12 16:58:59 FATAL resourcemanager.ResourceManager: Error starting ResourceManager
      java.lang.NullPointerException
      	at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore.constructZkRootNodeACL(ZKRMStateStore.java:200)
      	at org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore.initInternal(ZKRMStateStore.java:236)
      	at org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore.serviceInit(RMStateStore.java:682)
      	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
      	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.removeApplication(ResourceManager.java:1462)
      	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1377)
      16/11/12 16:58:59 INFO resourcemanager.ResourceManager: SHUTDOWN_MSG: 
      

        Attachments

        1. YARN-5874.01.patch
          1 kB
          Varun Saxena
        2. YARN-5874.02.patch
          15 kB
          Varun Saxena

          Issue Links

            Activity

              People

              • Assignee:
                varun_saxena Varun Saxena
                Reporter:
                varun_saxena Varun Saxena
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: