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);