How to Install and Run Apache Kafka on Windows?
Last Updated : 28 Jun, 2022
Apache Kafka is an open-source application used for real-time streams for data in huge amount. Apache Kafka is a publish-subscribe messaging system. A messaging system lets you send messages between processes, applications, and servers. Broadly Speaking, Apache Kafka is software where topics can be defined and further processed.
Downloading and Installation
Apache Kafka can be downloaded from its official site
kafka.apache.org 
For the installation process, follow the steps given below:
Step 1: Go to the Downloads folder and select the downloaded Binary file.
Step 2: Extract the file and move the extracted folder to the directory where you wish to keep the files.
Step 3: Copy the path of the Kafka folder. Now go to
config inside kafka folder and open
zookeeper.properties file. Copy the path against the field
dataDir and add
/zookeeper-data to the path.

For example if the path is
c:/kafka Step 4: Now in the same folder
config open
server.properties and scroll down to
log.dirs and paste the path. To the path add
/kafka-logs Step 5: This completes the configuration of zookeeper and kafka server. Now open command prompt and change the directory to the kafka folder. First start zookeeper using the command given below:
.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
Step 6: Now open another command prompt and change the directory to the kafka folder. Run kafka server using the command:
.\bin\windows\kafka-server-start.bat .\config\server.properties

Now kafka is running and ready to stream data.
Similar Reads
How to Install Apache Maven on Windows? Apache Maven is an automation tool. The tool is written in Java. It was initially released on 13 July 2004. It is developed by the Apache software foundation. It is part of the Jakarta Project. It is working on two aspects: how software is built, and its dependencies. It was created by Jason van Zyl
3 min read
How to Install Apache Tomcat on Windows? Apache Tomcat which is short for âTomcatâ is a free, open-source Java Servlet, Java Expression Language, JavaServer Pages, and WebSocket implementation. Tomcat is an HTTP web server that basically runs Java code in a âpure Javaâ environment. Here, we will see how to install Tomcat 10 on Windows 10 f
3 min read
How to Install Apache JMeter on Windows? The Apache JMeter⢠application is open-source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions. It can be used to simulate a heavy load on a
2 min read
How to Install Apache OpenOffice on Windows? Apache OpenOffice is an open-source office suite. It provides free applications for spreadsheets, word processing, presentations, graphics, databases, etc. It was initially released on 1 May 2002 and developed by Sun Microsystems (1999â2009), Oracle Corporation (2010â2011). It is easy to use and ava
3 min read
How to Install Krita on Windows? Krita is a free and open-source raster graphics editor designed primarily for digital painting and 2D animation. It runs on Windows, macOS, Linux, Android, and Chrome OS. It is developed by Krita foundations. It is written in C++ using Qt. It is released on 21 June 2005. The size of the software is
3 min read