Apache-Kafka-Producer-Consumer-Example Requirement maven java 1.8 To build the jar file mvn clean package To run the program as producer java -cp kafka-example-1.0-SNAPSHOT-jar-with-dependencies.jar BasicProducer To run program as consumer java -cp kafka-example-1.0-SNAPSHOT-jar-with-dependencies.jar BasicConsumer