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

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1308976 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Graves 2012-04-03 15:27:46 +00:00
parent 8c8dbba8a6
commit 00eb28d927
2 changed files with 5 additions and 1 deletions

View File

@ -223,6 +223,9 @@ Release 0.23.3 - UNRELEASED
MAPREDUCE-3983. TestTTResourceReporting can fail, and should just be MAPREDUCE-3983. TestTTResourceReporting can fail, and should just be
deleted (Ravi Prakash via bobby) deleted (Ravi Prakash via bobby)
MAPREDUCE-4012 Hadoop Job setup error leaves no useful info to users
(when LinuxTaskController is used). (tgraves)
Release 0.23.2 - UNRELEASED Release 0.23.2 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -172,7 +172,8 @@ public void startLocalizer(Path nmPrivateContainerTokensPath,
int exitCode = shExec.getExitCode(); int exitCode = shExec.getExitCode();
LOG.warn("Exit code from container is : " + exitCode); LOG.warn("Exit code from container is : " + exitCode);
logOutput(shExec.getOutput()); logOutput(shExec.getOutput());
throw new IOException("App initialization failed (" + exitCode + ")", e); throw new IOException("App initialization failed (" + exitCode +
") with output: " + shExec.getOutput(), e);
} }
} }