public void killJob(PigJob object) throws IOException {
    LOG.debug("Killing job...");

    if (object.getJobId() != null) {
      try {
        UserLocalObjects.getTempletonApi(context).killJob(object.getJobId());
      } catch (IOException e) {
        LOG.debug("Job kill FAILED");
        throw e;
      }
      LOG.debug("Job kill OK");
    } else {
      LOG.debug("Job was not submitted, ignoring kill request...");
    }
  }
Kill Templeton Job
@param object job object
@throws IOException network error
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/resources/jobs/JobResourceManager.java