Browse Source

Fix for HADOOP-45. Fatal task errors are now logged at the
JobTracker, facilitating debugging.


git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@387664 13f79535-47bb-0310-9956-ffa450edef68

Doug Cutting 19 years ago
parent
commit
f1477b88fc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/java/org/apache/hadoop/mapred/TaskInProgress.java

+ 1 - 0
src/java/org/apache/hadoop/mapred/TaskInProgress.java

@@ -241,6 +241,7 @@ class TaskInProgress {
         String taskid = status.getTaskId();
         String taskid = status.getTaskId();
         String diagInfo = status.getDiagnosticInfo();
         String diagInfo = status.getDiagnosticInfo();
         if (diagInfo != null && diagInfo.length() > 0) {
         if (diagInfo != null && diagInfo.length() > 0) {
+            LOG.info("Error from "+taskid+": "+diagInfo);
             Vector diagHistory = (Vector) taskDiagnosticData.get(taskid);
             Vector diagHistory = (Vector) taskDiagnosticData.get(taskid);
             if (diagHistory == null) {
             if (diagHistory == null) {
                 diagHistory = new Vector();
                 diagHistory = new Vector();