List of usage examples for org.apache.hadoop.mapreduce ContextFactory cloneContext
@SuppressWarnings("unchecked") public static JobContext cloneContext(JobContext original, Configuration conf) throws IOException, InterruptedException
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; }