Skip to content

Repository files navigation

kafka_python

Basic Kafka code in Python Jupyter Notebook

Start Zookeeper

bin\windows\zookeeper-server-start.sh config\zookeeper.properties

Start Kafka Broker

bin\windows\kafka-server-start.sh config/server.properties

Create topic

bin\windows\kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test

List topic

bin\windows\kafka-topics.sh --list --zookeeper localhost:2181

Start Producer

bin\windows\kafka-console-producer.sh --broker-list localhost:9092 --topic test

Send message How are you Binod Suman Academy

Receive message

bin\wndows\kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning How are you Binod Suman Academy

About

Basic Kafka code in Python Jupyter Notebook

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages