- maven
- java 1.8
mvn clean package
java -jar kafka-producer-consumer-1.0-SNAPSHOT.jar producer broker:port
java -jar kafka-producer-consumer-1.0-SNAPSHOT.jar consumer broker:port
A java example program for Producer/Consumer in a Kafka cluster
Java
mvn clean package
java -jar kafka-producer-consumer-1.0-SNAPSHOT.jar producer broker:port
java -jar kafka-producer-consumer-1.0-SNAPSHOT.jar consumer broker:port