protected void killJob(String user, String jobId)
  throws NotAuthorizedException, BadParam, IOException, InterruptedException {
    DeleteDelegator d = new DeleteDelegator(appConf);
    d.run(user, jobId);
  }
Enqueue the TempletonControllerJob directly calling doAs.
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/LauncherDelegator.java