Map<TopicPartition, Long> lastOffsets = Maps.newHashMap();
for (String topic : topics) {
for (int i = 0; i < num_partitions; i++) {
TopicAndPartition topicAndPartition = new TopicAndPartition(
topic, i);
SimpleConsumer consumer = mKafkaClient
.createConsumer(new TopicPartition(topic, i));
Map<TopicAndPartition, PartitionOffsetRequestInfo> requestInfo = new HashMap<TopicAndPartition, PartitionOffsetRequestInfo>();
requestInfo.put(topicAndPartition,
new PartitionOffsetRequestInfo(-1, 1));
kafka.javaapi.OffsetRequest request = new kafka.javaapi.OffsetRequest(