Demo App for kafka with python
run new container interactively.
docker run -it --name kafka-python ahmedemad2051/kafka-with-python
In container start zookeeper service
service zookeeper start
In container start kafka server
kafka-server-start.sh /kafka/config/server.properties
Publish producer message to input topic [you can change it from the container]
docker exec kafka-python python3 kafka_with_python/producer.py
Run consumer to get messages from input topic then get words count and send the counts to output topic
docker exec -it kafka-python python3 kafka_with_python/consumer.py
To get messages from output topic run [inside kafka-python container]
kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic output
Content type
Image
Digest
Size
377.3 MB
Last updated
over 6 years ago
docker pull ahmedemad2051/kafka-with-python