Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4689

JobClient.getMapTaskReports on failed job results in NPE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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)
      ...
      

        Issue Links

          Activity

          Jason Lowe created issue -
          Jason Lowe made changes -
          Field Original Value New Value
          Attachment MAPREDUCE-4689.patch [ 12547047 ]
          Jason Lowe made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Target Version/s 0.23.4, 2.0.3-alpha [ 12323264, 12323275 ]
          Assignee Jason Lowe [ jlowe ]
          Jason Lowe made changes -
          Link This issue relates to MAPREDUCE-4693 [ MAPREDUCE-4693 ]
          Robert Joseph Evans made changes -
          Resolution Fixed [ 1 ]
          Fix Version/s 0.23.4 [ 12323264 ]
          Fix Version/s 2.0.3-alpha [ 12323275 ]
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Fix Version/s 3.0.0 [ 12320355 ]
          Arun C Murthy made changes -
          Fix Version/s 2.0.2-alpha [ 12322471 ]
          Fix Version/s 2.0.3-alpha [ 12323275 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Allen Wittenauer made changes -
          Fix Version/s 3.0.0 [ 12320355 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development