Skip to content

Instantly share code, notes, and snippets.

@flinox
Last active February 21, 2019 19:10
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 flinox/ca5ba9d592ccb38c0341fa75acd6c841 to your computer and use it in GitHub Desktop.
Save flinox/ca5ba9d592ccb38c0341fa75acd6c841 to your computer and use it in GitHub Desktop.
Kafka: Generate an avsc file of schema from confluent schema registry
curl http://KAFKA_BROKER:8081/subjects/TOPIC_NAME-value/versions/latest | jq -r '.schema|fromjson' > TOPIC_NAME-value.avsc
# another way
curl http://AFKA_BROKER:8081/subjects/TOPIC_NAME-value/versions/latest/schema > TOPIC_NAME-value.avsc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment