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

Improve exception message when mapreduce.jobhistory.webapp.address is in wrong format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.3
    • 2.9.0, 3.1.0
    • applicationmaster
    • None
    • Reviewed

    Description

      MapReduce jobs fails with below exception when mapreduce.jobhistory.webapp.address is in wrong format instead of host:port, example user has set to 19888

      java.util.NoSuchElementException 
      at com.google.common.base.AbstractIterator.next(AbstractIterator.java:75) 
      at org.apache.hadoop.mapreduce.v2.util.MRWebAppUtil.getApplicationWebURLOnJHSWithoutScheme(MRWebAppUtil.java:130) 
      at org.apache.hadoop.mapreduce.v2.util.MRWebAppUtil.getApplicationWebURLOnJHSWithScheme(MRWebAppUtil.java:156) 
      at org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator.doUnregistration(RMCommunicator.java:218) 
      at org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator.unregister(RMCommunicator.java:188) 
      at org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator.serviceStop(RMCommunicator.java:268) 
      at org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator.serviceStop(RMContainerAllocator.java:297) 
      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:888) 
      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:1667) 
      at org.apache.hadoop.service.AbstractService.stop(AbstractService.java:221) 
      at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.stop(MRAppMaster.java:1168) 
      at org.apache.hadoop.mapreduce.v2.app.MRAppMaster.shutDownJob(MRAppMaster.java:603) 
      at org.apache.hadoop.mapreduce.v2.app.MRAppMaster$JobFinishEventHandler$1.run(MRAppMaster.java:651)
      

      Attachments

        1. MAPREDUCE-6951.patch
          3 kB
          Prabhu Joseph
        2. MAPREDUCE-6951.2.patch
          3 kB
          Prabhu Joseph
        3. MAPREDUCE-6951.1.patch
          3 kB
          Prabhu Joseph

        Activity

          People

            prabhujoseph Prabhu Joseph
            prabhujoseph Prabhu Joseph
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: