Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-445

Null Pointer Exceptions in the mappers leading to lot of retries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2.0
    • 0.2.0
    • impl
    • None
    • Patch Available

    Description

      Even with successfully completed jobs, usually with a large data set, we see that there are NPE produced in the mappers which lead to task failure. However, this problem goes away on retries. The problem occurs at places where we access the reporter to report progress.

      From the analysis, this should happen with jobs that use combiner. The combiner is called whenever the mapper outputs a buffer full of data. So the combiner is called multiple times in between a map task. In the Combiner.close method we currently set the reporter to null as it was assumed that combiner is called only after the entire output of map is produced.

      The fix is to not set the reporter to null in the Combiner.close() method

      Attachments

        1. mq.patch
          1 kB
          Shravan Matthur Narayanamurthy

        Activity

          People

            shravanmn Shravan Matthur Narayanamurthy
            shravanmn Shravan Matthur Narayanamurthy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: