示例#1
0
文件: Job.java 项目: sorbert/pikachu
  /**
   * Submit the job to the cluster and return immediately.
   *
   * @throws IOException
   */
  public void submit() throws IOException, InterruptedException, ClassNotFoundException {
    ensureState(JobState.DEFINE);
    setUseNewAPI();

    // Connect to the JobTracker and submit the job
    connect();
    info = jobClient.submitJobInternal(conf);
    state = JobState.RUNNING;
  }