public void killJob(String jobId) throws IOException {
    JSONRequest<JobInfo> request =
        new JSONRequest<JobInfo>(service.path("jobs").path(jobId), JobInfo.class, doAs, doAs, context);

    try {
      request.delete();
    } catch (IOException e) {
      LOG.error("Ignoring 500 response from webhcat (see HIVE-5835)");
    }
  }
Kill templeton job
@param jobId templeton job identifier
@throws IOException
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/templeton/client/TempletonApi.java