Installation Kafka & implement Spring boot Kafka to produce data - consumer group and reply topic to another one
- Java 8
- Dev Tools
- Lombok
- Zookeper
- Kafka
- Gradle
- Download and extract Zookeper https://zookeeper.apache.org/releases.html
- Go to Zookeper directory, then open conf directory
- Rename file zoo_sample.cfg to zoo.cfg
- Create folder "dataz" inside Zookeeper directory
- Edit zoo.cfg and change dataDir to "Zookeper directory"/dataz
- Screenshot Edit zoo.cfg
- Run Zookeeper by open new command inside Zookeper directory and type by following command
.\bin\zkServer.sh
- Download and extract Kafka Binary https://kafka.apache.org/downloads
- Go to Kafka directory, then open config directory
- Create 3 Broker Properties by copy paste from file server.properties and rename it by following number server-1.properties, server-2.properties, server-3.properties
- Screenshot Edit server-1.Properties
- Screenshot Edit server-2.Properties
- Screenshot Edit server-3.Properties
- Run broker 1 by open cmd in Kafka directory and type
.\bin\windows\kafka-server-start.bat .\config\server-1.properties
- Screenshot Start Broker 1
- Run broker 2 by open cmd in Kafka directory and type
.\bin\windows\kafka-server-start.bat .\config\server-2.properties
- Screenshot Start Broker 2
- Run broker 3 by open cmd in Kafka directory and type
.\bin\windows\kafka-server-start.bat .\config\server-3.properties
- Screenshot Start Broker 3