Type error on using Apache Kakfa's KafkaConsumer api <p>Im writing a simple Kafka Consumer class as follows</p> <pre><code>public class MySimpleKafkaConsumer { public static void main(String[] args) { Properties props = new Properties(); props.put("bootstrap.servers", "localhost:9092"); props.put("group.id", "mygroup"); props.put("key.deserializer", "org.apache.kafka.common.serialization.StringDeserializer"); props.put("value.deserializer", "org.apache.kafka.common.serialization.StringDeserializer"); KafkaConsumer&lt;String, String&gt; consumer = new KafkaConsumer&lt;String, String&gt;(props); consumer.subscribe(Arrays.asList("storm-test-topic")); </code></pre> <p>. .</p> <p>Although I get an error at the below line stating</p> <blockquote> <p>The method subscribe(String...) in the type KafkaConsumer is not applicable for the arguments (List)</p> </blockquote> <pre><code>consumer.subscribe(Arrays.asList("storm-test-topic")); </code></pre> <p>This seems correct as per the api docs. Here is the dependency version</p> <pre><code> &lt;groupId&gt;org.apache.kafka&lt;/groupId&gt; &lt;artifactId&gt;kafka-clients&lt;/artifactId&gt; &lt;version&gt;0.9.0.1&lt;/version&gt; </code></pre> <p>Am I missing something? Thanks</p>