Skip to content

Schema registry ​

WARNING

The support of the schema registry is highly experimental. Contributions and feedback are welcome.

TypesSupport
Json schemaExperimental
AvroExperimental
ProtobufLooking for contributions

You can configure the tool to use a schema registry. Open the configuration file and add a schema_registry entry to your cluster:

shell
EDITOR=nano yozf configure
json
{
    "clusters": {
        "localhost": {
            "url_template": "http://localhost:9000/ui/kafka-localhost-server/topic/{topic}/data?single=true&partition={partition}&offset={offset}",
            "schema_registry": {
              "url": "http://localhost:8081"
            },
            "kafka": {
              "bootstrap.servers": "localhost:9092",
              "security.protocol": "plaintext",
              "broker.address.family": "v4"
            }
        }
    }
}

Authentication ​

If the schema registry is protected by an authentication, you can specify the Authorization header for the schema registry client:

json
{
    "schema_registry": {
        "url": "https://acme-schema-registry:8081",
        "headers": {
            "Authorization": "Basic am9obkBleGFtcGxlLmNvbTphYmMxMjM="
        }
    }
}

MAIF logo
OSS by MAIF, released under Apache License, Version 2.0