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

JobClient.getMapTaskReports on failed job results in NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.3
    • 2.0.2-alpha, 0.23.4
    • client
    • None

    Description

      When calling JobClient.getMapTaskReports for a job that has failed results in an NPE. For example:

      Exception in thread "main" java.lang.NullPointerException
      	at org.apache.hadoop.mapreduce.counters.AbstractCounters.<init>(AbstractCounters.java:107)
      	at org.apache.hadoop.mapred.Counters.<init>(Counters.java:71)
      	at org.apache.hadoop.mapred.Counters.downgrade(Counters.java:80)
      	at org.apache.hadoop.mapred.TaskReport.downgrade(TaskReport.java:81)
      	at org.apache.hadoop.mapred.TaskReport.downgradeArray(TaskReport.java:88)
      	at org.apache.hadoop.mapred.JobClient.getTaskReports(JobClient.java:691)
      	at org.apache.hadoop.mapred.JobClient.getMapTaskReports(JobClient.java:681)
      ...
      

      Attachments

        1. MAPREDUCE-4689.patch
          6 kB
          Jason Darrell Lowe

        Issue Links

          Activity

            People

              jlowe Jason Darrell Lowe
              jlowe Jason Darrell Lowe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: