protected CommandExecutor buildCommandExecutor(String wrapperScriptPath, String containerIdStr, String user, Path pidFile, Resource resource, File wordDir, Map<String, String> environment) throws IOException { String[] command = getRunCommand(wrapperScriptPath, containerIdStr, user, pidFile, this.getConf(), resource); LOG.info("launchContainer: " + Arrays.toString(command)); return new ShellCommandExecutor( command, wordDir, environment, 0L, false); }
protected CommandExecutor buildCommandExecutor(String wrapperScriptPath, String containerIdStr, String user, Path pidFile, Resource resource, File wordDir, Map<String, String> environment) throws IOException { String[] command = getRunCommand(wrapperScriptPath, containerIdStr, user, pidFile, this.getConf(), resource); LOG.info("launchContainer: " + Arrays.toString(command)); return new ShellCommandExecutor( command, wordDir, environment, 0L, false); }
protected CommandExecutor buildCommandExecutor(String wrapperScriptPath, String containerIdStr, String user, Path pidFile, Resource resource, File wordDir, Map<String, String> environment) throws IOException { String[] command = getRunCommand(wrapperScriptPath, containerIdStr, user, pidFile, this.getConf(), resource); LOG.info("launchContainer: " + Arrays.toString(command)); return new ShellCommandExecutor( command, wordDir, environment, 0L, false); }
/** * Create a new {@link ShellCommandExecutor} using the parameters. * * @param wrapperScriptPath the path to the script to execute * @param containerIdStr the container ID * @param user the application owner's username * @param pidFile the path to the container's PID file * @param resource this parameter controls memory and CPU limits. * @param workDir If not-null, specifies the directory which should be set * as the current working directory for the command. If null, * the current working directory is not modified. * @param environment the container environment * @return the new {@link ShellCommandExecutor} * @see ShellCommandExecutor */ protected CommandExecutor buildCommandExecutor(String wrapperScriptPath, String containerIdStr, String user, Path pidFile, Resource resource, File workDir, Map<String, String> environment) { String[] command = getRunCommand(wrapperScriptPath, containerIdStr, user, pidFile, this.getConf(), resource); LOG.info("launchContainer: " + Arrays.toString(command)); return new ShellCommandExecutor( command, workDir, environment, 0L, false); }