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 4398e54a78..e1a162e9cd 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 void launchContainer(ContainerRuntimeContext ctx) 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 void launchContainer(ContainerRuntimeContext ctx) 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());