Example usage for org.apache.hadoop.mapred.pipes Submitter jobSubmit

List of usage examples for org.apache.hadoop.mapred.pipes Submitter jobSubmit

Introduction

In this page you can find the example usage for org.apache.hadoop.mapred.pipes Submitter jobSubmit.

Prototype

public static RunningJob jobSubmit(JobConf conf) throws IOException 

Source Link

Document

Submit a job to the Map-Reduce framework.

Usage

From source file:org.apache.oozie.action.hadoop.PipesMain.java

License:Apache License

@Override
protected RunningJob submitJob(JobConf jobConf) throws Exception {

    //propagate delegation related props from launcher job to MR job
    if (getFilePathFromEnv("HADOOP_TOKEN_FILE_LOCATION") != null) {
        jobConf.set("mapreduce.job.credentials.binary", getFilePathFromEnv("HADOOP_TOKEN_FILE_LOCATION"));
    }/*from w  w w.  ja  va2 s . co  m*/

    return Submitter.jobSubmit(jobConf);
}