Install and Use Kafka on Windows Operating System 10/11

Perquisites

 

  • Download Kafka for windows  just search
    • https://kafka.apache.org/downloads
    • Download tgz file: 2.13
    • Download and Extract folder in a directory
    • Delete .tar and tgz files from root of extracted folder
    • Create Data directory inside extracted directory say “kafka_2.13-3.9.0"
    • Create 2 sub directories under Data Directory
      • Kafka
      • Zookeeper
    • Update path in respective files
      • Open ‘zookeeper’ Properties file  in G:\Software\kafka_2.13-3.9.0\config and update Zookeeper directory path as
        • Check Slash format
      • Open “server” ’ Properties file  in G:\Software\kafka_2.13-3.9.0\config and update Kafka directory path as
        • Check Slash format

 

Start respective Services
Go to folder G:\Software\kafka_2.13-3.9.0\bin\windows, Open CMD at this path

  • Start zookeeper services by running following command
    • zookeeper-server-start.bat “G:/Software/kafka_2.13-3.9.0/config/zookeeper.properties”
    • kafka-server-start.bat "G:/Software/kafka_2.13-3.9.0/config/server.properties"

 

 


Related Question