Skip to content

Instantly share code, notes, and snippets.

@andrewstevenson
Created September 11, 2016 15:26
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 andrewstevenson/47d1510deffc870e73f02675f788f606 to your computer and use it in GitHub Desktop.
Save andrewstevenson/47d1510deffc870e73f02675f788f606 to your computer and use it in GitHub Desktop.
./bin/kafka-avro-console-producer \
--broker-list localhost:9092 --topic nasty \
--property value.schema='{type:record,name:example.nasty,fields:[{name:elements,type:{type:array,items:{type:record,name:example.nasty.element,fields:[{name:value,type:string},{name:children,type:{type:array,items:example.nasty.element}}]}}}]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment