In this video, we will understand how to download and install Apache Kafka in Windows machine. Once we install Kafka then we will see how to use Kafka using command line.
#installation #kafka #javaguides #windows
Complete playlist at [ Ссылка ]
STEP 1: DOWNLOAD AND INSTALL KAFKA
[ Ссылка ]
STEP 2: START THE KAFKA ENVIRONMENT
# Start the ZooKeeper service
.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
# Start the Kafka broker service
.\bin\windows\kafka-server-start.bat .\config\server.properties
STEP 3: CREATE A TOPIC TO STORE YOUR EVENTS
.\bin\windows\kafka-topics.bat --create --topic topic_demo --bootstrap-server localhost:9092
STEP 4: WRITE SOME EVENTS INTO THE TOPIC
.\bin\windows\kafka-console-producer.bat --topic topic_demo --bootstrap-server localhost:9092
STEP 5: READ THE EVENTS
.\bin\windows\kafka-console-consumer.bat --topic topic_demo --from-beginning --bootstrap-server localhost:9092
hello world
topic demo
![](https://i.ytimg.com/vi/aKDWWICgfA0/maxresdefault.jpg)