Install and Use Kafka on Windows Operating System 10/11
Perquisites
- Java Runtime Environment
- if not present, download and install from https://www.oracle.com/java/technologies/downloads/#jdk24-windows
- check version of java after installation
- 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
- Open ‘zookeeper’ Properties file in G:\Software\kafka_2.13-3.9.0\config and update Zookeeper directory path as
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"