This post can be followed to install / setup the kafka in both windows and mac machine.
Table of Contents
Download kafka from this link
Are you seeing different version? No worries, just proceed with the recommended version as per the above image/link.
Extract Twice:
First: kafka_2.12-2.5.0.tgz to kafka_2.12-2.5.0.tar using 7zip / any other tool.
Second: kafka_2.12-2.5.0.tar to actual folder content
Is this looking similar to this ?
Let’s verify the installation
start zookeeper
Command to start the zookeeper
zookeeper-server-start.bat ..\..\config\zookeeper.properties
Verify zookeeper status
Start Kafka broker
Open another instance of cmd prompt then start kafka broker with this command.
kafka-server-start.bat ..\..\config\server.properties
Verify kafka status
Default kafka port: 9092
Default port 9092 and if you want to change to different ports then follow the steps.
How to change the default port in Kafka
Add the below highlighted line with your desired port
Now if you start the kafka broker again,
You have successfully installed / setup the kafka successfully in windows. Same setup can be applicable for Mac system also. Only difference is the path of the command needs to be run.