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:
parent
ea3c2d28f7
commit
c91addb743
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue