Installing Apache Kafka

Shweta Mandavgane
2 min readMar 22, 2024

--

What is Kafka?
Apache Kafka is an open-source distributed event streaming platform used for building real-time data pipelines and streaming applications. It utilizes non-destructive consumer semantics and is designed to handle large volumes of data and provides high-throughput, low-latency and fault-tolerant messaging.

How to Install Apache Kafka on windows

Step 1:
Download Apache Kafka from the website: https://kafka.apache.org/downloads

Step 2:
Unzip the downloaded kafka_2.12–3.7.0.tgz

Step 3:
Now copy this unzipped folder to C:\ and rename it to Kafka. This is important to avoid long name issues on terminal.

Step 4:
Goto C:\kafka\config and locate zookeeper.properties file.
Open this file, copy the path to kafka and paste the path to value of dataDir.

Step 5:
Goto C:\kafka\config and locate server.properties file.
Open this file, copy the path to kafka, append \kafka-logs to the path and paste the path to value of log.dirs.

Step 6:
Now, your configuration is ready.
Open your terminal and navigate to kafka folder on the prompt. Run the command
-> .\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties

Step 7:
Open a second terminal , navigate to kafka folder on the prompt and run the below command:
-> .\bin\windows\kafka-server-start.bat .\config\server.properties

Your Kafka instance is ready to be used.
To stop these instances, press CTRL+C on both the terminals.

In the next article, we will use this instance to develop a springboot application.

Happy Coding!

--

--

Shweta Mandavgane

Computer Science Masters | 10+ Yrs IT Exp | Angular, React, Java, Springboot, Groovy, AWS Expert | Tech Enthusiast