Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@gtkchinna gtkchinna commented Jan 11, 2020

Nice

@abhishekchotaliya

This comment has been minimized.

Copy link

@abhishekchotaliya abhishekchotaliya commented Feb 7, 2020

helpful 👍🏻

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