Les schémas AVRO peuvent-ils être enregistrés auprès du service de registre de schéma confluent?Enregistrement d'un schéma AVRO avec un registre confluent
Comme par readme sur github https://github.com/confluentinc/schema-registry
Chaque exemple utilise un schéma JSON avec un seul champ et le type sans nom.
J'essaye de stocker le schéma suivant au dépôt mais avec différentes variantes obtenant l'erreur différente.
curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" --data '{"schema": "{"type": "record","name": "myrecord","fields": [{"name": "serialization","type": "string"},{"name": "compression","type": "string"},{"name": "encoding","type": "string"},{"name": "data","type": "string"}]}"}'
Ou
curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" --data '{"schema": \"{\"type\": \"record\",\"name\": \"myrecord\",\"fields\": [{\"name\": \"data\",\"type\": \"string\"}]}\"}' http://localhost:8081/subjects/Kafka-key/versions
Oui. Absolument. Consultez cet exemple: https://github.com/confluentinc/examples/blob/3.1.x/kafka-streams/src/main/java/io/confluent/examples/streams/WikipediaFeedAvroLambdaExample.java –
"avec différents variantes obtenant une erreur différente ": il serait utile si vous avez effectivement inclus ces erreurs dans votre question. –