Skip to content

Schema Registry

Configure Schema Registry when you use schema converters, to avoid problems when you register updated schemas after you update a format file.

The schema converters are:

  • Avro: io.confluent.connect.avro.AvroConverter
  • JSON Schema: io.confluent.connect.json.JsonSchemaConverter

To avoid schema registration errors, set the schema compatibility level to NONE in one of the following ways.

Option 1: Confluent Control Center

  1. Open the Topics menu and select the topic to which the connector publishes messages.
  2. Select the Schema tab to see the registered schema.
  3. Open the ... menu and select Compatibility settings.

    Schema tab of a topic with the menu open and the Compatibility settings item highlighted

  4. Select None as the compatibility level and save the changes.

    Compatibility settings dialog with the None level selected

This change applies only to the edited topic. If other topics publish messages with a schema, repeat these steps for each of them, or use option 2 or 3 to change the default for all new topics.

Option 2: Confluent Platform properties file

  1. Open the Confluent installation folder and go to the /etc/schema-registry/ folder.
  2. Open the schema-registry.properties file for editing:

    nano schema-registry.properties
    
  3. Add the following property at the end of the file:

    schema.compatibility.level=none
    
  4. Save the changes. Restart Confluent Platform if needed to apply them.

New schemas use the compatibility level NONE by default.

Option 3: Docker Compose file

  1. Add the following property to the environment section of the schema-registry container:

    SCHEMA_REGISTRY_SCHEMA_COMPATIBILITY_LEVEL: none
    
  2. If needed, restart the Docker container to apply the change:

    docker-compose up -d
    

New schemas use the compatibility level NONE by default.