From 44825f096068dfc17fe4dcfb7db3d775b08fa7a0 Mon Sep 17 00:00:00 2001 From: Wangda Tan Date: Fri, 15 Dec 2017 15:40:56 -0800 Subject: [PATCH] YARN-7629. TestContainerLaunch# fails after YARN-7381. (Jason Lowe via wangda) Change-Id: Ia6a3f05c9a7e797d8190123d304ecc4e2b018e33 --- .../containermanager/launcher/TestContainerLaunch.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/TestContainerLaunch.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/TestContainerLaunch.java index 1ee6eb6544..5923f8ef05 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/TestContainerLaunch.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/TestContainerLaunch.java @@ -1795,7 +1795,9 @@ public void testValidEnvVariableSubstitution() throws IOException { "testVar", "version${foo}" ); List commands = new ArrayList(); DefaultContainerExecutor executor = new DefaultContainerExecutor(); - executor.setConf(new Configuration()); + Configuration execConf = new Configuration(); + execConf.setBoolean(YarnConfiguration.NM_LOG_CONTAINER_DEBUG_INFO, false); + executor.setConf(execConf); executor.writeLaunchEnv(fos, env, resources, commands, new Path(localLogDir.getAbsolutePath()), user); fos.flush();