}
}
@Parameters
public static Collection<Object[]> configs() {
JobConf conf = HdpBootstrap.hadoopConfig();
conf.setInputFormat(SplittableTextInputFormat.class);
conf.setOutputFormat(EsOutputFormat.class);
conf.setReducerClass(IdentityReducer.class);
HadoopCfgUtils.setGenericOptions(conf);
conf.setNumMapTasks(2);
conf.setInt("actual.splits", 2);
conf.setNumReduceTasks(0);
JobConf standard = new JobConf(conf);
standard.setMapperClass(TabMapper.class);
standard.setMapOutputValueClass(LinkedMapWritable.class);
standard.set(ConfigurationOptions.ES_INPUT_JSON, "false");
FileInputFormat.setInputPaths(standard, new Path(TestUtils.sampleArtistsDat(conf)));
JobConf json = new JobConf(conf);
json.setMapperClass(IdentityMapper.class);
json.setMapOutputValueClass(Text.class);
json.set(ConfigurationOptions.ES_INPUT_JSON, "true");
FileInputFormat.setInputPaths(json, new Path(TestUtils.sampleArtistsJson(conf)));
return Arrays.asList(new Object[][] {
{ standard, "" },
{ json, "json-" }