//conf.set("kafka.watermark.reset", "earliest");
conf.set("input.format", "json");
JobContext dummyJobContext = new Job(conf);
KafkaInputFormat realInputFormat = new KafkaInputFormat();
List<InputSplit> splits = realInputFormat.getSplits(dummyJobContext);
Collection<Callable<String>> tasks = new ArrayList<Callable<String>>();
for(InputSplit split: splits)
{
tasks.add(new MockMapTask(split, conf));