Skip to content

Instantly share code, notes, and snippets.

@Pablohn26
Created February 14, 2021 01:35
Show Gist options
  • Select an option

  • Save Pablohn26/5b04eed2555a0e653a23bb6a841120ad to your computer and use it in GitHub Desktop.

Select an option

Save Pablohn26/5b04eed2555a0e653a23bb6a841120ad to your computer and use it in GitHub Desktop.

Revisions

  1. Pablohn26 created this gist Feb 14, 2021.
    22 changes: 22 additions & 0 deletions quick-kafka.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@

    ## 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