Below code depicts an example of multi-threaded high level api consumer: package learning.kafka; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import kafka.consumer.Consumer; import kafka.consumer.ConsumerConfig; import kafka.consumer.ConsumerIterator; import kafka.consumer.KafkaStream; import kafka.javaapi.consumer.ConsumerConnector; import kafka.message.MessageAndMetadata; public class MultiThreadHLConsumer { private ExecutorService executorService ; private final ConsumerConnector consumer ; private final String topic ; public MultiThreadHLConsumer(String topicName ) { ...