Examples of killJob()


Examples of com.netflix.genie.client.ExecutionServiceClient.killJob()

        LOG.info("Waiting for job to finish");
        job = client.waitForCompletion(jobID, 600000, 5000);
        LOG.info("Job status: " + job.getStatus());

        LOG.info("Killing jobs using jobID");
        final Job killedJob = client.killJob(jobID);
        LOG.info("Job status: " + killedJob.getStatus());

        LOG.info("Done");
    }
}
View Full Code Here

Examples of org.apache.ambari.view.pig.templeton.client.TempletonApi.killJob()

    Response response = doCreateJob("Test", "/tmp/script.pig", "-useHCatalog");
    Assert.assertEquals(201, response.getStatus());

    reset(api);
    api.killJob(eq("job_id_##"));
    replay(api);
    JSONObject obj = (JSONObject)response.getEntity();
    PigJob job = ((PigJob)obj.get("job"));
    response = jobService.killJob(job.getId());
    Assert.assertEquals(204, response.getStatus());
View Full Code Here

Examples of org.apache.hadoop.hive.shims.HadoopShims.WebHCatJTShim.killJob()

    try {
      tracker = ShimLoader.getHadoopShims().getWebHCatShim(appConf, ugi);
      JobID jobid = StatusDelegator.StringToJobID(id);
      if (jobid == null)
        throw new BadParam("Invalid jobid: " + id);
      tracker.killJob(jobid);
      state = new JobState(id, Main.getAppConfigInstance());
      String childid = state.getChildId();
      if (childid != null)
        tracker.killJob(StatusDelegator.StringToJobID(childid));
      return StatusDelegator.makeStatus(tracker, jobid, state);
View Full Code Here

Examples of org.apache.hadoop.hive.shims.HadoopShims.WebHCatJTShim.killJob()

        throw new BadParam("Invalid jobid: " + id);
      tracker.killJob(jobid);
      state = new JobState(id, Main.getAppConfigInstance());
      String childid = state.getChildId();
      if (childid != null)
        tracker.killJob(StatusDelegator.StringToJobID(childid));
      return StatusDelegator.makeStatus(tracker, jobid, state);
    } catch (IllegalStateException e) {
      throw new BadParam(e.getMessage());
    } finally {
      if (tracker != null)
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

          this.state = Job.SUCCESS;
        } else {
          this.state = Job.FAILED;
          this.message = "Job failed!";
          try {
            running.killJob();
          } catch (IOException e1) {

          }
          try {
            this.jc.close();
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

    } catch (IOException ioe) {
      this.state = Job.FAILED;
      this.message = StringUtils.stringifyException(ioe);
      try {
        if (running != null)
          running.killJob();
      } catch (IOException e1) {

      }
      try {
        this.jc.close();
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

            RunningJob job = jc.getJob(id);
            if (job == null)
                System.out.println("Job with id " + jobid + " is not active");
            else
            {   
                job.killJob();
                log.info("Kill " + id + " submitted.");
            }
        }
    }
       
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

        running = jc.getJob(jobId);
      }
      sucess = running.isSuccessful();
    } finally {
      if (!sucess && (running != null)) {
        running.killJob();
      }
      jc.close();
    }
    return sucess;
  }
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

        running = jc.getJob(jobId);
      }
      sucess = running.isSuccessful();
    } finally {
      if (!sucess && (running != null)) {
        running.killJob();
      }
      jc.close();
    }
    return sucess;
  }
View Full Code Here

Examples of org.apache.hadoop.mapred.RunningJob.killJob()

          this.state = Job.SUCCESS;
        } else {
          this.state = Job.FAILED;
          this.message = "Job failed!";
          try {
            running.killJob();
          } catch (IOException e1) {

          }
          try {
            this.jc.close();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.