-
Notifications
You must be signed in to change notification settings - Fork 119
Kafka on windows
Awantik Das edited this page Nov 30, 2017
·
1 revision
https://stackoverflow.com/questions/23115013/is-there-an-easy-way-to-install-kafka-on-windows
- Install Zookeeper first (I downloaded v3.3.6) zookeeper-3.3.6.tar.gz
- Extract Zookeeper and run this command in powershell/cmd \zookeeper-3.3.6\bin> .\zkServer.cmd Now this should up a Zookeeper instance on localhost:2181
- Download Kafka binary version (I downloaded v0.10.0.1)kafka_2.10-0.10.0.1.tgz
- Extract Kafka, time to modify some configs
- Inside Kafka extraction you can find .\config\server.properties
- In .\config\server.properties replace log.dirs=c:/kafka/kafka-logs
- Note: Make sure to create those folders in relevant paths
- Happy news: Now Kafka ships with windows .bat scripts, You can find these files inside ./bin/windows folder
- Start powershell/cmd and run this command to start Kafka broker .\bin\windows\kafka-server-start.bat .\config\server.properties
- DONE!, Now you have a running Zookeeper instance and a Kafka broker.