This is the example repo for my blog post on Running a Kafka Producer/Consumer Example in Java
To run this example:
- Make sure you have Java, the JDK, and Maven installed
- Clone the repo
- Run
mvn clean compile assembly:single
- this should give you a JAR file in thetarget
folder - Run
java -jar target/java-kafka-example-1.0-SNAPSHOT-jar-with-dependencies.jar
to run the JAR file