From 4f43ebdb9f9ad545740e3250b075fee349fa31cf Mon Sep 17 00:00:00 2001 From: Gour Saha Date: Wed, 30 Nov 2016 10:30:39 -0800 Subject: [PATCH] YARN-5943. Write native services container stderr file to log directory. Contributed by Billie Rinaldi --- .../apache/slider/providers/docker/DockerProviderService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/providers/docker/DockerProviderService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/providers/docker/DockerProviderService.java index cc319eec3b0..e4a7cdf7c28 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/providers/docker/DockerProviderService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/providers/docker/DockerProviderService.java @@ -193,7 +193,8 @@ public class DockerProviderService extends AbstractProviderService implements "/bin/bash")); operation.add("> " + ApplicationConstants.LOG_DIR_EXPANSION_VAR + "/" - + OUT_FILE + " 2>" + ERR_FILE); + + OUT_FILE + " 2>" + ApplicationConstants.LOG_DIR_EXPANSION_VAR + "/" + + ERR_FILE); launcher.addCommand(operation.build());