Example usage for org.apache.hadoop.mapreduce ContextFactory cloneContext

List of usage examples for org.apache.hadoop.mapreduce ContextFactory cloneContext

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce ContextFactory cloneContext.

Prototype

@SuppressWarnings("unchecked")
public static JobContext cloneContext(JobContext original, Configuration conf)
        throws IOException, InterruptedException 

Source Link

Document

Clone a JobContext or TaskAttemptContext with a new configuration.

Usage

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

License:Apache License

static public JobContext cloneJobContext(JobContext original) throws IOException, InterruptedException {
    JobContext newContext = ContextFactory.cloneContext(original, new JobConf(original.getConfiguration()));
    return newContext;
}