Java Code Examples for org.apache.hadoop.mapred.JobConf#setUseNewMapper()
The following examples show how to use
org.apache.hadoop.mapred.JobConf#setUseNewMapper() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestMRHelpers.java From incubator-tez with Apache License 2.0 | 5 votes |
private InputSplitInfo generateNewSplits(Path inputSplitsDir) throws Exception { JobConf jobConf = new JobConf(); jobConf.setUseNewMapper(true); jobConf.setClass(MRJobConfig.INPUT_FORMAT_CLASS_ATTR, TextInputFormat.class, InputFormat.class); jobConf.set(TextInputFormat.INPUT_DIR, testFilePath.toString()); return MRHelpers.generateInputSplits(jobConf, inputSplitsDir); }
Example 2
Source File: TestMRHelpers.java From incubator-tez with Apache License 2.0 | 5 votes |
private InputSplitInfo generateOldSplits(Path inputSplitsDir) throws Exception { JobConf jobConf = new JobConf(); jobConf.setUseNewMapper(false); jobConf.setInputFormat(org.apache.hadoop.mapred.TextInputFormat.class); jobConf.set(TextInputFormat.INPUT_DIR, testFilePath.toString()); return MRHelpers.generateInputSplits(jobConf, inputSplitsDir); }
Example 3
Source File: TestMRInputHelpers.java From tez with Apache License 2.0 | 5 votes |
private DataSourceDescriptor generateDataSourceDescriptorMapReduce(Path inputSplitsDir) throws Exception { JobConf jobConf = new JobConf(dfsCluster.getFileSystem().getConf()); jobConf.setUseNewMapper(true); jobConf.setClass(org.apache.hadoop.mapreduce.MRJobConfig.INPUT_FORMAT_CLASS_ATTR, TextInputFormat.class, InputFormat.class); jobConf.set(TextInputFormat.INPUT_DIR, testFilePath.toString()); return MRInputHelpers.configureMRInputWithLegacySplitGeneration(jobConf, inputSplitsDir, true); }
Example 4
Source File: TestMRInputHelpers.java From tez with Apache License 2.0 | 5 votes |
private DataSourceDescriptor generateDataSourceDescriptorMapRed(Path inputSplitsDir) throws Exception { JobConf jobConf = new JobConf(dfsCluster.getFileSystem().getConf()); jobConf.setUseNewMapper(false); jobConf.setInputFormat(org.apache.hadoop.mapred.TextInputFormat.class); jobConf.set(TextInputFormat.INPUT_DIR, testFilePath.toString()); return MRInputHelpers.configureMRInputWithLegacySplitGeneration(jobConf, inputSplitsDir, true); }