How to install Kafka on Windows?

前端 未结 11 1881
無奈伤痛
無奈伤痛 2020-12-02 09:27

I\'m trying to install Kafka message queue on Windows for testing purposes (not for production).

I found this article on how to install Apache Kafka

11条回答
  •  攒了一身酷
    2020-12-02 10:04

    These are the steps I followed to run kafka on Windows

    1. Install Zookeeper first (I downloaded v3.3.6) zookeeper-3.3.6.tar.gz
    2. 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
    3. Download Kafka binary version (I downloaded v0.10.0.1)kafka_2.10-0.10.0.1.tgz
    4. Extract Kafka, time to modify some configs
    5. Inside Kafka extraction you can find .\config\server.properties
    6. In .\config\server.properties replace log.dirs=c:/kafka/kafka-logs
    7. Note: Make sure to create those folders in relevant paths
    8. Happy news: Now Kafka ships with windows .bat scripts, You can find these files inside ./bin/windows folder
    9. Start powershell/cmd and run this command to start Kafka broker .\bin\windows\kafka-server-start.bat .\config\server.properties
    10. DONE!, Now you have a running Zookeeper instance and a Kafka broker.

提交回复
热议问题