List of usage examples for org.apache.hadoop.mapred.jobcontrol Job killJob
public void killJob() throws IOException, InterruptedException
From source file:org.apache.pig.backend.hadoop.executionengine.shims.HadoopShims.java
License:Apache License
public static void killJob(Job job) throws IOException { org.apache.hadoop.mapreduce.Job mrJob = job.getJob(); try {//from w w w . j a v a 2s . c om if (mrJob != null) { mrJob.killJob(); } } catch (Exception ir) { throw new IOException(ir); } }