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

NPE on RMActiveServices#serviceStop when store is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1, 2.7.6
    • None
    • None
    • Reviewed

    Description

      Configure yarn.resourcemanager.container-tokens.master-key-rolling-interval-secs mismatching with yarn.nm.liveness-monitor.expiry-interval-ms

      On startup NPE is thrown on RMActiveServices#serviceStop

      2015-09-16 12:23:29,504 INFO org.apache.hadoop.service.AbstractService: Service RMActiveServices failed in state INITED; cause: java.lang.IllegalArgumentException: yarn.resourcemanager.container-tokens.master-key-rolling-interval-secs should be more than 3 X yarn.nm.liveness-monitor.expiry-interval-ms
      java.lang.IllegalArgumentException: yarn.resourcemanager.container-tokens.master-key-rolling-interval-secs should be more than 3 X yarn.nm.liveness-monitor.expiry-interval-ms
       at org.apache.hadoop.yarn.server.resourcemanager.security.RMContainerTokenSecretManager.<init>(RMContainerTokenSecretManager.java:82)
       at org.apache.hadoop.yarn.server.resourcemanager.RMSecretManagerService.createContainerTokenSecretManager(RMSecretManagerService.java:109)
       at org.apache.hadoop.yarn.server.resourcemanager.RMSecretManagerService.<init>(RMSecretManagerService.java:57)
       at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createRMSecretManagerService(ResourceManager.java:1111)
       at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceInit(ResourceManager.java:423)
       at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
       at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(ResourceManager.java:963)
       at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:256)
       at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
       at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1193)
      2015-09-16 12:23:29,507 ERROR org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Error closing store.
      java.lang.NullPointerException
       at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceStop(ResourceManager.java:608)
       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)
       at org.apache.hadoop.service.AbstractService.init(AbstractService.java:171)
       at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(ResourceManager.java:963)
       at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:256)
       at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
       at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1193
      

      Impact Area: RM failover with wrong configuration

      Attachments

        1. 0001-YARN-4167.patch
          1 kB
          Bibin Chundatt
        2. 0001-YARN-4167.patch
          1 kB
          Bibin Chundatt
        3. 0002-YARN-4167.patch
          1 kB
          Bibin Chundatt

        Issue Links

          Activity

            People

              bibinchundatt Bibin Chundatt
              bibinchundatt Bibin Chundatt
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: