Skip to content

Instantly share code, notes, and snippets.

@hpgrahsl
Created October 12, 2018 20:13
Show Gist options
  • Save hpgrahsl/8c145bf12c3b98d8b5146632bddc6d6d to your computer and use it in GitHub Desktop.
Save hpgrahsl/8c145bf12c3b98d8b5146632bddc6d6d to your computer and use it in GitHub Desktop.
sending demo json data to the kafka topic
$ bin/kafka-console-producer --broker-list localhost:9092 --topic blogpost
{"title":"The Matrix","year":1999,"cast":["Keanu Reeves","Laurence Fishburne","Carrie-Anne Moss","Hugo Weaving","Joe Pantoliano"],"genres":["Science Fiction"]}
{"title":"Die Hard","year":1988,"cast":["Bruce Willis","Alan Rickman","Bonnie Bedelia","William Atherton","Paul Gleason","Reginald VelJohnson","Alexander Godunov"],"genres":["Action"]}
{"title":"Toy Story","year":1995,"cast":["Tim Allen","Tom Hanks","(voices)"],"genres":["Animated"]}
{"title":"Jurassic Park","year":1993,"cast":["Sam Neill","Laura Dern","Jeff Goldblum","Richard Attenborough"],"genres":["Adventure"]}
{"title":"The Lord of the Rings: The Fellowship of the Ring","year":2001,"cast":["Elijah Wood","Ian McKellen","Liv Tyler","Sean Astin","Viggo Mortensen","Orlando Bloom","Sean Bean","Hugo Weaving","Ian Holm"],"genres":["Fantasy"]}
@gtkchinna
Copy link

Nice

@abhishekchotaliya
Copy link

helpful 👍🏻

@roottraveller
Copy link

helpful 👍🏻

@averma111
Copy link

Lol

@pedroreiscoder
Copy link

You saved my life, thank you

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