Skip to content

Instantly share code, notes, and snippets.

@conorfennell
Created December 13, 2018 11:31
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 conorfennell/fba07e5918449bf46878875927fb36eb to your computer and use it in GitHub Desktop.
Save conorfennell/fba07e5918449bf46878875927fb36eb to your computer and use it in GitHub Desktop.
console producer kafka create key value records
kafka-console-producer --topic conor-topic --broker-list kafka-0:9092 --property "parse.key=true" --property "key.separator=:"
1:{"product_id":"1","type":"jam"}
2:{"product_id":"2","type":"joe"}
3:{"product_id":"3","type":"hey"}
4:{"product_id":"4","type":"ram"}
5:{"product_id":"5","type":"goo"}
6:{"product_id":"6","type":"dam"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment