for(FileStatus fileStatus: fileSystem.listStatus(new Path(input + "/" + categoryString))) {
job.addInput(fileStatus.getPath(), new HadoopInputFormat(TextInputFormat.class),
new CategoryMapper(category, fileStatus.getPath().getName()));
}
// Add a named output for each category
job.addNamedOutput(categoryString, new TupleSolrOutputFormat(new File("src/test/resources/shakespeare-solr"),
conf), ITuple.class, NullWritable.class);
}
job.setOutput(new Path(output), new HadoopOutputFormat(NullOutputFormat.class), ITuple.class, NullWritable.class);
// The reducer will just emit the tuple to the corresponding Category output
job.setTupleReducer(new TupleReducer<ITuple, NullWritable>() {