Ошибка при регистрации схемы при записи в хранилище Kafka [50001] (с примером документации) - PullRequest
0 голосов
/ 23 апреля 2020

Я получаю вышеуказанную ошибку при попытке зарегистрировать схему в соответствующей документации (через конечную точку REST):

curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" --data '{"schema": "{\"type\":\"record\",\"name\":\"Payment\",\"namespace\":\"io.confluent.examples.clients.basicavro\",\"fields\":[{\"name\":\"id\",\"type\":\"string\"},{\"name\":\"amount\",\"type\":\"double\"}]}"}' http://localhost:8081/subjects/test-value/versions

Пример можно найти здесь: https://docs.confluent.io/5.4.0/schema-registry/schema_registry_tutorial.html

В разделе Автоматическая регистрация схемы

Реестр схемы был установлен с помощью диаграмм helm и имеет версию 5.4.0

Любая помощь с благодарностью

ЖУРНАЛЫ

Caused by: io.confluent.kafka.schemaregistry.exceptions.SchemaRegistryStoreException: Error while registering the schema due to generating an ID that is already in use

...