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

JobClient.getMapTaskReports on failed job results in NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.3
    • Fix Version/s: 2.0.2-alpha, 0.23.4
    • Component/s: client
    • Labels:
      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

          Issue Links

            Activity

              People

              • Assignee:
                jlowe Jason Lowe
                Reporter:
                jlowe Jason Lowe
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: