akhq icon indicating copy to clipboard operation
akhq copied to clipboard

Support Apicurio as schema registry

Open aboucham opened this issue 2 years ago • 9 comments

That would be great if we have the support of Apicurio Registry as schema registry: https://www.apicur.io/registry/

aboucham avatar Mar 18 '22 10:03 aboucham

@tchiotludo @aboucham You can use Apicurio Schema Registry in Confluent Schema Registry API compatibility mode

Confluent Schema Registry API (Version 6) To provide compatibility with Confluent Serdes (and other clients), Apicurio Registry implements the API defined by the Confluent Schema Registry. Use this endpoint if your tooling is compatible with v6 of that API. This is only provided for compatibility purposes, the core Registry API should be used instead when possible. /apis/ccompat/v6

  schema-registry:
    url: " https://server-name/apis/ccompat/v6" # schema registry url (optional)
    type: "confluent" # schema registry type (optional). Supported types are "confluent" (default) or "tibco"
    # Basic Auth user / pass
    basic-auth-username: registry-client
    basic-auth-password: registry-client-secret

This works for me for now for this purpose but note the core Registry API should be used instead when possible.

sookeke avatar Jan 06 '23 21:01 sookeke

@sookeke, waiting a PR on that one, maybe you can add PR on the docs here (a page to create) ?

tchiotludo avatar Jan 07 '23 20:01 tchiotludo

@tchiotludo sure, I will add a pr and document this next week. Thanks

sookeke avatar Jan 08 '23 09:01 sookeke

We configured the same as the previous example, but encountered the error. No artifact with ID 'gid-0' in group 'null' was found.; error code: 40401

The message is writen by debezium with apicuri as converter, link: https://debezium.io/documentation/reference/2.3/configuration/avro.html#overview-of-deploying-a-debezium-connector-that-uses-avro-serialization

The first byte of message key/value is magic byte, [1, 9) is id of schema.

j2gg0s avatar Aug 02 '23 16:08 j2gg0s