src/main/java/org/apache/mesos/hdfs/executor/AbstractNodeExecutor.java
/**
   * Starts a task's process so it goes into running state.
   **/
Starts a task's process so it goes into running state.
Starts a task ' s process so it goes into running state .
protected void startProcess(ExecutorDriver driver, Task task) {
    reloadConfig();
    if (task.process == null) {
      try {
        ProcessBuilder processBuilder = new ProcessBuilder("sh", "-c", task.cmd);
        task.process = processBuilder.start();
        redirectProcess(task.process);
      } catch (IOException e) {
        log.error(e);
        task.process.destroy();
        sendTaskFailed(driver, task);
      }
    } else {
      log.error("Tried to start process, but process already running");
    }
  }
protected void startProcess ( ExecutorDriver driver , Task task ) { reloadConfig ( ) ; if ( task . process == null ) { try { ProcessBuilder processBuilder = new ProcessBuilder ( "sh" , "-c" , task . cmd ) ; task . process = processBuilder . start ( ) ; redirectProcess ( task . process ) ; } catch ( IOException e ) { log . error ( e ) ; task . process . destroy ( ) ; sendTaskFailed ( driver , task ) ; } } else { log . error ( "Tried to start process, but process already running" ) ; } }
Starts a task's process so it goes into running state.
Starts a task ' s process so it goes into running state .