Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Quick Kafka

Lauch cluster

From https://github.com/jeqo/kafka-mirror-maker-ops

sudo docker-compose up -d

Create test topic

sudo make kafka-topics

Metadata list

sudo docker run -it --network=host edenhill/kafkacat:1.6.0 -b localhost:29092 -L

Produce messages

sudo docker run -it --network=host edenhill/kafkacat:1.6.0 -b localhost:29092 -P -t t1

Consume messages

sudo docker run -it --network=host edenhill/kafkacat:1.6.0 -b localhost:29092 -C -t t1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment