Example usage for org.apache.hadoop.mapred.jobcontrol Job killJob

List of usage examples for org.apache.hadoop.mapred.jobcontrol Job killJob

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred.jobcontrol Job killJob.

Prototype

public void killJob() throws IOException, InterruptedException 

Source Link

Usage

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