Created
December 13, 2018 11:31
-
-
Save conorfennell/fba07e5918449bf46878875927fb36eb to your computer and use it in GitHub Desktop.
console producer kafka create key value records
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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