Last active
February 21, 2019 19:10
-
-
Save flinox/ca5ba9d592ccb38c0341fa75acd6c841 to your computer and use it in GitHub Desktop.
Kafka: Generate an avsc file of schema from confluent schema registry
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
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