props.put("auto.offset.reset", "smallest");
props.put("queuedchunks.max", "1000");
props.put("backoff.increment.ms", "1500");
props.put("consumer.timeout.ms", "120000");
consumerConfig = new ConsumerConfig(props);
consumer = kafka.consumer.Consumer.createJavaConsumerConnector(consumerConfig);
//Certain properties in done consumer are different.
props.remove("consumer.timeout.ms");
props.put("group.id", m_groupId + "-done");
//Use higher autocommit interval as we read only 1 row and then real consumer follows for long time.
props.put("auto.commit.interval.ms", "10000");
doneConsumerConfig = new ConsumerConfig(props);
doneConsumer = kafka.consumer.Consumer.createJavaConsumerConnector(doneConsumerConfig);
}