Skip to content

Instantly share code, notes, and snippets.

@Pablohn26
Created February 14, 2021 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pablohn26/5b04eed2555a0e653a23bb6a841120ad to your computer and use it in GitHub Desktop.
Save Pablohn26/5b04eed2555a0e653a23bb6a841120ad to your computer and use it in GitHub Desktop.
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