Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mduhan/9f2d4d3b7951e12d370d761427a214dd to your computer and use it in GitHub Desktop.
Save mduhan/9f2d4d3b7951e12d370d761427a214dd to your computer and use it in GitHub Desktop.
start string producer with below command
kafka-console-producer.bat \ --broker-list broker-host:9091 --topic test --property "parse.key=true" --property "key.separator=:"
It will start producer and we can type message as below (key:value)
1:{ "PROGRAM_NAME": "NDTV", "ORIGINATOR": "JADE_FEVER", "channel": "CTV Drama+","weekday": "Monday", "DATE": "9/28/2018", "START_TIME": "17:30:00"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment