Skip to content

Instantly share code, notes, and snippets.

@matzew
Created October 17, 2017 12:58
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 matzew/89c6b68a0bb43087763bcb02ebc30ca5 to your computer and use it in GitHub Desktop.
Save matzew/89c6b68a0bb43087763bcb02ebc30ca5 to your computer and use it in GitHub Desktop.

One terminal:

➜  kafkacat git:(master) ./kafkacat -P -b 172.30.246.240:9092 -t input_demo
FUCK
yeah
this 
works

On the other (consumer), I got:

➜  kafkacat git:(master) ./kafkacat -C -b 172.30.246.240:9092 -t input_demo
% Reached end of topic input_demo [0] at offset 0
FUCK
yeah
% Reached end of topic input_demo [0] at offset 2
this 
% Reached end of topic input_demo [0] at offset 3
works
% Reached end of topic input_demo [0] at offset 4

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