protected String[] getRunCommand(String command, String groupId, String userName, Path pidFile, Configuration conf) { return getRunCommand(command, groupId, userName, pidFile, conf, null); }
protected String[] getRunCommand(String command, String groupId, String userName, Path pidFile, Configuration conf) { return getRunCommand(command, groupId, userName, pidFile, conf, null); }
protected String[] getRunCommand(String command, String groupId, String userName, Path pidFile, Configuration conf) { return getRunCommand(command, groupId, userName, pidFile, conf, null); }
/** * Return a command line to execute the given command in the OS shell. * On Windows, the {code}groupId{code} parameter can be used to launch * and associate the given GID with a process group. On * non-Windows hosts, the {code}groupId{code} parameter is ignored. * * @param command the command to execute * @param groupId the job owner's GID * @param userName the job owner's username * @param pidFile the path to the container's PID file * @param config the configuration * @return the command line to execute */ protected String[] getRunCommand(String command, String groupId, String userName, Path pidFile, Configuration config) { return getRunCommand(command, groupId, userName, pidFile, config, null); }