Using plain java to create a simple producer and consumer
- Compile project by running the following command
mvn clean install assembly:singlethe bundle file is demo.jar in target folder
- Start kafka server
First, we need to start zookeeper
bin/zookeeper-server-start.sh config/zookeeper.propertiesthen start kafka server
bin/kafka-server-start.sh config/server.properties