Example usage for org.apache.hadoop.mapred Counters Counters

List of usage examples for org.apache.hadoop.mapred Counters Counters

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred Counters Counters.

Prototype

public Counters(org.apache.hadoop.mapreduce.Counters newCounters) 

Source Link

Usage

From source file:org.apache.pig.backend.hadoop.executionengine.shims.HadoopShims.java

License:Apache License

public static Counters getCounters(Job job) throws IOException {
    try {/*from  w  ww .j  av  a  2 s .  co m*/
        return new Counters(job.getJob().getCounters());
    } catch (Exception ir) {
        throw new IOException(ir);
    }
}