Example usage for org.apache.hadoop.mapred ReduceTask getNumMaps

List of usage examples for org.apache.hadoop.mapred ReduceTask getNumMaps

Introduction

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

Prototype

public int getNumMaps() 

Source Link

Usage

From source file:com.mellanox.hadoop.mapred.MapOutputLocation.java

License:Apache License

public void init(ReduceTask reduceTask, TaskUmbilicalProtocol umbilical, JobConf conf, Reporter reporter)
        throws IOException {

    try {//from w  w  w . j  a  va  2 s  .c om
        LOG.info("init - Using UdaShuffleConsumerPlugin");
        this.reduceTask = reduceTask;
        this.reduceId = reduceTask.getTaskID();

        this.umbilical = umbilical;
        this.jobConf = conf;
        this.reporter = reporter;

        this.rdmaChannel = new UdaPluginRT<K, V>(this, reduceTask, jobConf, reporter, reduceTask.getNumMaps());
    } catch (Throwable t) {
        doFallbackInit(t);
    }
}