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

NPE caused by JobHistoryEventHandler#serviceStop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • applicationmaster
    • None

    Description

      Call stack:

      org.apache.hadoop.service.AbstractService: Service JobHistoryEventHandler failed in state STOPPED; cause: java.lang.NullPointerException
       java.lang.NullPointerException
       at org.apache.hadoop.mapreduce.jobhistory.JobHistoryEventHandler.handleEvent(JobHistoryEventHandler.java:653)
       at org.apache.hadoop.mapreduce.jobhistory.JobHistoryEventHandler.serviceStop(JobHistoryEventHandler.java:443)
      

      I found it caused by:

       2019-05-29 15:02:41,681 INFO [eventHandlingThread] org.apache.hadoop.mapreduce.jobhistory.JobHistoryEventHandler: Failed to write the job configuration file
       java.io.IOException: Unable to close file because the last blockBP-649451382-xxx.xxx.xxx.xxx-1557215524698:blk_1378020038_304562904 does not have enough number of replicas.
       at org.apache.hadoop.mapreduce.jobhistory.JobHistoryEventHandler.setupEventWriter(JobHistoryEventHandler.java:561)
      

      Attachments

        Activity

          People

            jiwq Wanqiang Ji
            jiwq Wanqiang Ji
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: