hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sj...@apache.org
Subject [25/50] hadoop git commit: YARN-5299. Log Docker run command when container fails. Contributed by Varun Vasudev.
Date Sat, 16 Jul 2016 03:21:46 GMT
YARN-5299. Log Docker run command when container fails. Contributed by Varun Vasudev.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/dbe97aa7
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/dbe97aa7
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/dbe97aa7

Branch: refs/heads/YARN-5355
Commit: dbe97aa768e2987209811c407969fea47641418c
Parents: 2bbc3ea
Author: Rohith Sharma K S <rohithsharmaks@apache.org>
Authored: Thu Jul 14 11:48:10 2016 +0530
Committer: Rohith Sharma K S <rohithsharmaks@apache.org>
Committed: Thu Jul 14 11:48:10 2016 +0530

----------------------------------------------------------------------
 .../linux/runtime/DockerLinuxContainerRuntime.java              | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/dbe97aa7/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/runtime/DockerLinuxContainerRuntime.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/runtime/DockerLinuxContainerRuntime.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/runtime/DockerLinuxContainerRuntime.java
index 4398e54..e1a162e 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/runtime/DockerLinuxContainerRuntime.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/runtime/DockerLinuxContainerRuntime.java
@@ -416,6 +416,10 @@ public class DockerLinuxContainerRuntime implements LinuxContainerRuntime
{
     if (tcCommandFile != null) {
       launchOp.appendArgs(tcCommandFile);
     }
+    if (LOG.isDebugEnabled()) {
+      LOG.debug("Launching container with cmd: " + runCommand
+          .getCommandWithArguments());
+    }
 
     try {
       privilegedOperationExecutor.executePrivilegedOperation(null,
@@ -423,6 +427,7 @@ public class DockerLinuxContainerRuntime implements LinuxContainerRuntime
{
           false, false);
     } catch (PrivilegedOperationException e) {
       LOG.warn("Launch container failed. Exception: ", e);
+      LOG.info("Docker command used: " + runCommand.getCommandWithArguments());
 
       throw new ContainerExecutionException("Launch container failed", e
           .getExitCode(), e.getOutput(), e.getErrorOutput());


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message