Browse Source

HADOOP-4963. Fixes a logging to do with getting the location of map output file. Contributed by Amareshwari Sriramadasu.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@732613 13f79535-47bb-0310-9956-ffa450edef68
Devaraj Das 16 years ago
parent
commit
8162caa53a
2 changed files with 8 additions and 0 deletions
  1. 3 0
      CHANGES.txt
  2. 5 0
      src/mapred/org/apache/hadoop/mapred/TaskTracker.java

+ 3 - 0
CHANGES.txt

@@ -26,6 +26,9 @@ Trunk (unreleased changes)
   OPTIMIZATIONS
 
   BUG FIXES
+    
+    HADOOP-4963. Fixes a logging to do with getting the location of
+    map output file. (Amareshwari Sriramadasu via ddas)
 
 Release 0.20.0 - Unreleased
 

+ 5 - 0
src/mapred/org/apache/hadoop/mapred/TaskTracker.java

@@ -1559,6 +1559,11 @@ public class TaskTracker
       if(tip == null)
          return -1;
       
+      if (!tip.getTask().isMapTask() || 
+          tip.getRunState() != TaskStatus.State.SUCCEEDED) {
+        return -1;
+      }
+      
       MapOutputFile mapOutputFile = new MapOutputFile();
       mapOutputFile.setJobId(taskId.getJobID());
       mapOutputFile.setConf(conf);