浏览代码

MAPREDUCE-4012 Hadoop Job setup error leaves no useful info to users. (tgraves)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1308988 13f79535-47bb-0310-9956-ffa450edef68
Thomas Graves 13 年之前
父节点
当前提交
ab7c1b2b7c
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 3 0
      CHANGES.txt
  2. 2 1
      src/mapred/org/apache/hadoop/mapred/LinuxTaskController.java

+ 3 - 0
CHANGES.txt

@@ -196,6 +196,9 @@ Release 1.1.0 - unreleased
     MAPREDUCE-4095. TestJobInProgress#testLocality uses a bogus topology.
     (Colin Patrick McCabe via eli)
 
+    MAPREDUCE-4012. Hadoop Job setup error leaves no useful info to users 
+    (when LinuxTaskController is used) (tgraves)
+
 Release 1.0.3 - unreleased
 
   NEW FEATURES

+ 2 - 1
src/mapred/org/apache/hadoop/mapred/LinuxTaskController.java

@@ -190,7 +190,8 @@ class LinuxTaskController extends TaskController {
     } catch (ExitCodeException e) {
       int exitCode = shExec.getExitCode();
       logOutput(shExec.getOutput());
-      throw new IOException("Job initialization failed (" + exitCode + ")", e);
+      throw new IOException("Job initialization failed (" + exitCode + 
+          ") with output: " + shExec.getOutput(), e);
     }
   }