0% found this document useful (0 votes)
39 views1 page

Kafka Commands Windows Notes

This document provides a step-by-step guide for downloading and installing Apache Kafka, starting the Kafka environment, creating a topic, writing events to the topic, and reading those events. It includes specific commands for Windows users to execute in the command prompt. The instructions cover the essential setup and usage of Kafka for event storage and retrieval.

Uploaded by

Kirush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views1 page

Kafka Commands Windows Notes

This document provides a step-by-step guide for downloading and installing Apache Kafka, starting the Kafka environment, creating a topic, writing events to the topic, and reading those events. It includes specific commands for Windows users to execute in the command prompt. The instructions cover the essential setup and usage of Kafka for event storage and retrieval.

Uploaded by

Kirush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

STEP 1: DOWNLOAD AND INSTALL KAFKA

https://dlcdn.apache.org/kafka/3.2.0/kafka_2.13-3.2.0.tgz

STEP 2: START THE KAFKA ENVIRONMENT


# Start the ZooKeeper service
C:\Users\RAMESH\Downloads\kafka>.\bin\windows\zookeeper-server-start.bat .\config\
zookeeper.properties

# Start the Kafka broker service


C:\Users\RAMESH\Downloads\kafka>.\bin\windows\kafka-server-start.bat .\config\
server.properties

STEP 3: CREATE A TOPIC TO STORE YOUR EVENTS


C:\Users\RAMESH\Downloads\kafka>.\bin\windows\kafka-topics.bat --create --topic
topic_demo --bootstrap-server localhost:9092

STEP 4: WRITE SOME EVENTS INTO THE TOPIC


C:\Users\RAMESH\Downloads\kafka>.\bin\windows\kafka-console-producer.bat --topic
topic_demo --bootstrap-server localhost:9092
>hello world
>topic demo

STEP 5: READ THE EVENTS


C:\Users\RAMESH\Downloads\kafka>.\bin\windows\kafka-console-consumer.bat --topic
topic_demo --from-beginning --bootstrap-server localhost:9092
hello world
topic demo

You might also like