public ThriftJobInProgress run() throws JobNotFoundException {
return getJob(ctx, jobID);
}
});
if (job == null) {
throw new JobNotFoundException();
}
try {
final JobID jid = JTThriftUtils.fromThrift(jobID);
assumeUserContextAndExecute(ctx, new PrivilegedExceptionAction<Void>() {
public Void run() throws JobNotFoundException {
try {
jobTracker.killJob(jid);
} catch (java.io.IOException e) {
throw new JobNotFoundException();
}
return null;
}
});
} catch (Throwable t) {