• Articles
  • Tutorials
  • Interview Questions

How to Install Apache Kafka on Windows 10 in 5 Easy Steps

Steps to install Apache Kafka on Windows

Download the link for Kafka source – https://archive.apache.org/dist/Kafka/0.8.0/Kafka-0.8.0-src.tgz and then:
tar xzf Kafka-0.8.0-src.tgz

  • Enter the directory and run the commands:
    sudo ./sbt update
    sudo ./sbt package
  • To start the Zookeeper server, run (in the directory)
    bin/zookeeper-server-start.sh config.zookeeper.properties
  • Now start the Kafka server, run (in the directory)
    bin/Kafka-server-start.sh config/server.properties
  • Create a Topic of publishing messages,
    bin/Kafka-create-Topic.sh –zookeeper localhost:2181 –replica 1 –partition .
  • 1–Topic test
    (Here we can mention the number of replica instances, partitions and the name of the Topic)
  • Publish-Subscribe some messages by,
    – Run the producer,
    bin/Kafka-console-producer.sh  –broker-list localhost:9092 –Topic test
    Now type down the message we want to send.
    – Later, run the consumer,
    bin/Kafka-console-consumer.sh –zookeeper localhost:2181 –Topic test–from-beginning

Learn Kafka

Ready to test your Kafka knowledge? Check out our expertly curated list of Kafka interview questions to help you prepare for your next job interview!

Course Schedule

Name Date Details
Big Data Course 20 Jul 2024(Sat-Sun) Weekend Batch
View Details
Big Data Course 27 Jul 2024(Sat-Sun) Weekend Batch
View Details
Big Data Course 03 Aug 2024(Sat-Sun) Weekend Batch
View Details

About the Author

Technical Reseach Analyst - Data Engineering

Abhijit is a Technical Research Analyst specializing in Deep Learning. He holds a degree in Computer Science with a focus on Data Science. Being proficient in Python, Scala, C++, Dart, and R, he is passionate about new-age technologies. Abhijit crafts insightful analyses and impactful content, bridging the gap between cutting-edge research and practical applications.