1

We are planning to use the Confluent Schema Registry within our Kafka ecosystem. We use the schema registry image from Confluent and run it within our Kubernetes platform. The default compatibility level is set as BACKWARDS, however, we would want to set it as FORWARD_TRANSITIVE as soon as the schema registry starts.

I know this can be achieved by making a REST API call to update the global compatibility level, but is there any environment variable that can do this, without making the REST API call?

Thanks.

1
  • Your link is for hosted Schema Registry, not self installed Commented Oct 23, 2023 at 11:05

1 Answer 1

2

You'd set schema.compatibility.level config, yes

https://docs.confluent.io/platform/current/schema-registry/installation/config.html#schema-compatibility-level

This can be set in a Kubernetes manifest or as an env-var directly with SCHEMA_REGISTRY_SCHEMA_COMPATIBILITY_LEVEL

https://docs.confluent.io/platform/current/installation/docker/config-reference.html#sr-long-configuration

3
  • For corresponding parameter SCHEMA_COMPATIBILITY_LEVEL in Kubernetes currently seems having no effect, I opened a ticket at github.com/confluentinc/schema-registry/issues/3216 Commented Aug 11 at 0:31
  • @HongboMiao All environment variables must start with SCHEMA_REGISTRY_ to be used by the properties. That's written in the linked documentation Commented Aug 11 at 0:33
  • Thank you for the info, @OneCricketeer! I confirmed SCHEMA_REGISTRY_SCHEMA_COMPATIBILITY_LEVEL works. Commented Aug 11 at 0:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.