YARN-1271. Addendum patch to remove unused method in ContainerExecutor. Contributed by Sandy Ryza.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1529386 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vinod Kumar Vavilapalli 2013-10-05 05:14:05 +00:00
parent ea3c2d28f7
commit c91addb743
1 changed files with 0 additions and 14 deletions

View File

@ -189,20 +189,6 @@ public abstract class ContainerExecutor implements Configurable {
}
}
/** Return a command to execute the given command in OS shell.
* On Windows, the passed in groupId can be used to launch
* and associate the given groupId in a process group. On
* non-Windows, groupId is ignored. */
protected static String[] getRunCommand(String command,
String groupId) {
if (Shell.WINDOWS) {
return new String[] { Shell.WINUTILS, "task", "create", groupId,
"cmd /c " + command };
} else {
return new String[] { "bash", "-c", command };
}
}
/**
* Return a command to execute the given command in OS shell.
* On Windows, the passed in groupId can be used to launch