Skip to content

Commit

Permalink
Remove parent's env vars from child processes. Contributed by Vinayak…
Browse files Browse the repository at this point in the history
…umar B.
  • Loading branch information
naga-apache committed Oct 25, 2017
1 parent 3b45c27 commit bfa736b
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -229,7 +229,7 @@ public void startLocalizer(Path nmPrivateContainerTokensPath,
buildMainArgs(command, user, appId, locId, nmAddr, localDirs);
String[] commandArray = command.toArray(new String[command.size()]);
ShellCommandExecutor shExec = new ShellCommandExecutor(commandArray,
null, null, 0L, true);
null, null, 0L, false);
if (LOG.isDebugEnabled()) {
LOG.debug("initApplication: " + Arrays.toString(commandArray));
}
Expand Down Expand Up @@ -291,7 +291,8 @@ public int launchContainer(Container container,
resourcesOptions));
String[] commandArray = command.toArray(new String[command.size()]);
shExec = new ShellCommandExecutor(commandArray, null, // NM's cwd
container.getLaunchContext().getEnvironment()); // sanitized env
container.getLaunchContext().getEnvironment(), 0L,
false); // sanitized env
if (LOG.isDebugEnabled()) {
LOG.debug("launchContainer: " + Arrays.toString(commandArray));
}
Expand Down

0 comments on commit bfa736b

Please sign in to comment.