use of org.apache.hadoop.hive.shims.HadoopShims.WebHCatJTShim in project hive by apache.
the class LaunchMapper method killLauncherChildJobs.
/**
* Kills child jobs of this launcher that have been tagged with this job's ID.
*/
private void killLauncherChildJobs(Configuration conf, String jobId) throws IOException {
// Extract the launcher job submit/start time and use that to scope down
// the search interval when we look for child jobs
long startTime = getTempletonLaunchTime(conf);
UserGroupInformation ugi = UserGroupInformation.getCurrentUser();
WebHCatJTShim tracker = ShimLoader.getHadoopShims().getWebHCatShim(conf, ugi);
try {
tracker.killJobs(jobId, startTime);
} finally {
tracker.close();
}
}
Aggregations