YARN-7629. TestContainerLaunch# fails after YARN-7381. (Jason Lowe via wangda)

Change-Id: Ia6a3f05c9a7e797d8190123d304ecc4e2b018e33
This commit is contained in:
Wangda Tan 2017-12-15 15:40:56 -08:00
parent 631b5c2db7
commit 44825f0960

View File

@ -1795,7 +1795,9 @@ public void testValidEnvVariableSubstitution() throws IOException {
"testVar", "version${foo}" );
List<String> commands = new ArrayList<String>();
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();