Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-6213

NullPointerException caused by job history server addr not resolvable

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      When DNS failed for a time, all MapReduce jobs which completed during that time got failed. Log as below:

      2015-01-08 01:26:44,968 ERROR [Thread-856] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: Exception while unregistering 
      java.lang.NullPointerException
          at org.apache.hadoop.mapreduce.v2.util.MRWebAppUtil.getApplicationWebURLOnJHSWithoutScheme(MRWebAppUtil.java:135)
          at org.apache.hadoop.mapreduce.v2.util.MRWebAppUtil.getApplicationWebURLOnJHSWithScheme(MRWebAppUtil.java:150)
          at org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator.doUnregistration(RMCommunicator.java:212)
          at org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator.unregister(RMCommunicator.java:182)
          at org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator.serviceStop(RMCommunicator.java:255)
          at org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator.serviceStop(RMContainerAllocator.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.mapreduce.v2.app.MRAppMaster$ContainerAllocatorRouter.serviceStop(MRAppMaster.java:823)
          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.CompositeService.stop(CompositeService.java:157)
          at org.apache.hadoop.service.CompositeService.serviceStop(CompositeService.java:131)
          at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.serviceStop(MRAppMaster.java:1471)
          at org.apache.hadoop.service.AbstractService.stop(AbstractService.java:221)
          at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.stop(MRAppMaster.java:1085)
          at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.shutDownJob(MRAppMaster.java:554)
          at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$JobFinishEventHandler$1.run(MRAppMaster.java:605)
      

      Attachments

        1. MAPREDUCE-6213.patch
          1 kB
          Peng Zhang

        Activity

          People

            peng.zhang Peng Zhang
            peng.zhang Peng Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: