How you will configure the Apache Kafka with Spring Boot application?
Used these version for creating the documents, Kafka - 2.4.0,
String Boot - 2.2.4 and tried on Ubuntu OS. For windows you need to
changes the extensation to .bat file
Here are the steps -
Step 1 - If not download the application then download the
application and extract the folder,
Step 2 - Kafka uses ZooKeeper so you need to first start a
on terminal command ==> bin/zookeeper-server-start.sh config/zookeeper.properties
if you are getting any issue while zookeeper start then check the
start file. Also by default zookeeper start at 2181 port, you change
that one as well.
Step 3 - Now start the Kafka server on separate terminal
on terminal command ==> bin/kafka-server-start.sh config/server.properties
Step 4 - If not already create the project then create the
application with web and kafka dependencies