Example usage for org.apache.hadoop.mapred JobConf getMaxMapAttempts

List of usage examples for org.apache.hadoop.mapred JobConf getMaxMapAttempts

Introduction

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

Prototype

public int getMaxMapAttempts() 

Source Link

Document

Get the configured number of maximum attempts that will be made to run a map task, as specified by the mapreduce.map.maxattempts property.

Usage

From source file:org.terrier.utility.io.TestHadoopPlugin.java

License:Mozilla Public License

protected void checkTwoJC(JobConf jc1, JobConf jc2) {
    jc1.set(RANDOM_PROPERTY, "notnull");
    jc1.setMaxMapAttempts(3014);// w w w. j  av a 2 s .c om

    assertNull(jc2.get(RANDOM_PROPERTY, null));
    assertNotSame(3014, jc2.getMaxMapAttempts());
}