Reputation: 1627
Can some one tell me the difference between the jars 1 and 2. I am attempting to write kafka client to pull the data from the brokers using poll(long timeout) API on the KafkaConsumer from 1 but the implementation seems to be auto generated.(see below). Any thoughts on what is the right jar.
public Map<String, ConsumerRecords<K,V>> poll(long timeout) {
return null;
}
Upvotes: 1
Views: 7962
Reputation: 9623
Kafka has clients available in many programming languages. Only the Java clients are maintained as part of the main Kafka project. You can check more about clients.
You should use 1st jar to write Kafka consumer i.e
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>0.8.2.0</version>
</dependency>
Upvotes: 1