Install Kafka in Windows 10 by Chocolately

Ha Doan
2 min readNov 17, 2019

--

Steps to install Kafka in Windows 10

  1. Install chocolately https://chocolatey.org/install
  2. Install Java runtime (JRE) from chocolatey https://chocolatey.org/packages/server-jre
  3. Set JAVA_HOME System Variable to JRE Folder after installation

4. Install Zookeeper from Chocolatey https://chocolatey.org/packages/apache-zookeeper, it will be installed in folder C:\Tools\zookeeper-3.4.9

5. Go to C:\Tools\zookeeper-3.4.9\conf, rename “zoo_sample.cfg” to “zoo.cfg”

6. Find and edit zoo.cfg as following

7. Add in System Variables ZOOKEEPER_HOME = C:\Tools\zookeeper-3.4.9
Edit System Variable named “Path” and append %ZOOKEEPER_HOME%\bin

8. Open the command prompt and type zkserver.

9. Download and Extract Apache Kafka from here, my folder is C:\Tools\kafka_2.12–2.3.1

10. Go to config folder in Apache Kafka and edit “server.properties” using any text editor.

11. Find log.dirs and repelace after “=/tmp/kafka-logs” to=C:\Tools\kafka_2.12–2.3.1\logs” (change your version number).

12. Open PowerShell, go to C:\Tools\kafka_2.12–2.3.1 folder and start Kafka server .\bin\windows\kafka-server-start.bat .\config\server.properties

Kafka will run on port 9092

13. Start to test Kafka!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response