What is the difference between the two dependencies listed below? Do I really need the first to make an application for consumers or producers?
<dependencies>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.9.2</artifactId>
<version>0.8.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>0.8.2.1</version>
</dependency>
</dependencies>
My producer works great with the first, but the consumer needs the second.
I thought that the kafka-clients artifact would work for both the manufacturer and the consumer. But it looks like "kafka.consumer.Consumer" comes from another dependency. Why is there a difference?
Also, why is the first artifact called kafka_2.9.2? So why is the version identifier in the name?
nikel source
share