Skip to content

Commit a6ab1a2

Browse files
committed
YARN-1438. Ensure container diagnostics includes exception from container launch. Contributed by Steve Loughran.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1548336 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8fc79d3 commit a6ab1a2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

hadoop-yarn-project/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ Release 2.3.0 - UNRELEASED
294294
YARN-1407. RM Web UI and REST APIs should uniformly use
295295
YarnApplicationState (Sandy Ryza)
296296

297+
YARN-1438. Ensure container diagnostics includes exception from container
298+
launch. (stevel via acmurthy)
299+
297300
Release 2.2.0 - 2013-10-13
298301

299302
INCOMPATIBLE CHANGES

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/DefaultContainerExecutor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ public int launchContainer(Container container,
213213
LOG.warn("Exception from container-launch with container ID: "
214214
+ containerId + " and exit code: " + exitCode , e);
215215
logOutput(shExec.getOutput());
216-
String diagnostics = "Exception from container-launch: \n"
216+
String diagnostics = "Exception from container-launch: "
217+
+ e + "\n"
217218
+ StringUtils.stringifyException(e) + "\n" + shExec.getOutput();
218219
container.handle(new ContainerDiagnosticsUpdateEvent(containerId,
219220
diagnostics));

0 commit comments

Comments
 (0)