How to install Kafka on Windows System

+3 votes
I am a new student learning Big Data Hadoop. I am following a blog series and there is a tutorial to use Kafka but they have not mentioned how to install Kafka on Windows. Can somebody guide me with Kafka installation on Windows?
Feb 25, 2019 in Apache Kafka by Malik
13,329 views
http://kafka.apache.org/downloads.html
checkitout and follow instructions
Thank you @ASHRAF for your response.

Register on Edureka Community, make this comment an answer and earn points and reputation.

1 answer to this question.

+3 votes

These are the steps to install Kafka on Windows:

Before you start installing Kafka, you need to install Zookeeper.

Next, you need to download Kafka. You can download it from this link:

http://kafka.apache.org/downloads.html

Once it is download, extract the files and copy the kafka folder in C drive.

Now, in the kafka folder, inside the config folder, you will find a file named server.properties. 

Open this file in a text editor and find and edit the line log.dirs=/tmp/kafka-logs” to “log.dir= C:\kafka_2.1.1-src\kafka-logs”

Note that this path might change depending on where you have stored Kafka and the version of Kafka you are using.

Now to start Kafka. Go to the folder where you have saved Kafka. Shift+Right click on the Kafka folder and open it using command prompt or powershell.

Finally, run the following command to start Kafka

$ .\bin\windows\kafka-server-start.bat .\config\server.properties

Hope this will help.

To know more about Kafka, get your Apache Kafka certification course today.

Thank You

answered Feb 25, 2019 by Ramya
Thanks. One remark: the double quotes around the log.dirs parameter caused a fatal error in starting kafka on Windows. Omitting the double quotes worked fine.
i did downloaded and did same but im getting error while starting kafka .Could you please let me know what needs to be done.

C:\kafka-2.4.1-src>.\bin\windows\kafka-server-start.bat .\config\server.properties
Classpath is empty. Please build the project first e.g. by running 'gradlew jarAll'
Add path where you downloaded kafka in your windows system.

I did the same as shown in this post. I have added a path which is in C:/ drive I have changed log.dirs from /tmp to C:/kafka.

I have downloaded kafka SRC package.

Still, I'm facing the issue is there any way that this should not occur.

Did you set environment variable for kafka in your windows system?

Go to system properties->Advanced->Environment variable->system variable->New->add your kafka home directory /Path.

Related Questions In Apache Kafka

0 votes
2 answers

How to installed confluent kafka in our system?

Easy Approach is work with Docker. ConfluentInc ...READ MORE

answered Jun 18, 2020 in Apache Kafka by Pawan
• 380 points
2,649 views
0 votes
1 answer
0 votes
1 answer

How to reset the offset of messages consumed from Kafka?

The reset option only prints the result ...READ MORE

answered Jul 10, 2018 in Apache Kafka by Shubham
• 13,490 points
13,685 views
0 votes
1 answer

How to commit message offsets in Kafka for reliable data pipeline?

You can use auto.commit.enable to allow Kafka ...READ MORE

answered Jul 10, 2018 in Apache Kafka by Shubham
• 13,490 points
3,315 views
0 votes
1 answer

How to purge Kafka Topic?

For your case what you can do ...READ MORE

answered Sep 4, 2018 in Apache Kafka by nitinrawat895
• 11,380 points
2,486 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
10,555 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
2,184 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
104,184 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,390 points
4,260 views
0 votes
1 answer

Installing Kafka on Ubuntu

I am not sure what you expect ...READ MORE

answered Feb 21, 2019 in Apache Kafka by Arun
1,917 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP