Example usage for org.apache.hadoop.mapred JobClient setTaskOutputFilter

List of usage examples for org.apache.hadoop.mapred JobClient setTaskOutputFilter

Introduction

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

Prototype

public static void setTaskOutputFilter(JobConf job, TaskStatusFilter newValue) 

Source Link

Document

Modify the JobConf to set the task output filter.

Usage

From source file:org.lilyproject.hadooptestfw.fork.MiniMRCluster.java

License:Apache License

static JobConf configureJobConf(JobConf conf, String namenode, int jobTrackerPort, int jobTrackerInfoPort,
        UserGroupInformation ugi) {/*from   w ww .  j  av  a  2s.  c  o  m*/
    JobConf result = new JobConf(conf);
    FileSystem.setDefaultUri(result, namenode);
    result.set("mapred.job.tracker", "localhost:" + jobTrackerPort);
    result.set("mapred.job.tracker.http.address", "127.0.0.1:" + jobTrackerInfoPort);
    // for debugging have all task output sent to the test output
    JobClient.setTaskOutputFilter(result, JobClient.TaskStatusFilter.ALL);
    return result;
}