In the schema registry cluster list, you can access the schema management screen by clicking the Manage Schemas button below the cluster for which you want to manage schemas.
Create schema
You can create a new schema by selecting New Schema from the Action menu at the top of the left panel of the schema management screen. (This is the Selected menu in 11.2.)
- Schema Name. A name that identifies the schema. Refer to Subject Name Strategy.
- Schema Type. Schema type. Supports AVRO, JSON, and PROTOBUF types.
- Compatibility level. Supports NONE, FULL, FORWARD, BACKWARD, FULL_TRANSITIVE, FORWARD_TRANSITIVE, BACKWARD_TRANSITIVE.
- schema. Enter the schema you wish to register according to its type.
When multiple Kafka clusters use one schema registry in common, errors may occur where schemas are mixed between clusters depending on the subject name strategy.
Schema Update
If the updated schema does not meet compatibility settings, errors may occur on update.
Select a schema from the list to update it. You can then change the currently selected schema to the modified state by clicking the edit button at the top right of the schema content display window on the right side of the screen. Edit the schema directly in the schema content display window.
Save the updated schema using the Schema Update button.
Schema version
You can search for the desired version of the schema in the Version list on the top left of the Schema content display.
Compatibility level
You can set the compatibility level of the currently selected schema on the Configuration tab. Select a level from the list and click Save.
Compatibility level | Allow changes | Compatibility check target | Update order |
BACKWARD | Delete fields, add optional fields | Final version | Consumer first |
BACKWARD_TRANSITIVE | Delete fields, add optional fields | All previous versions | Consumer first |
FORWARD | Add fields, delete optional fields | Final version | Producer first |
FORWARD_TRANSITIVE | Add fields, delete optional fields | All previous versions | Producer first |
FULL | Add option field, delete option field | Final version | No order |
FULL_TRANSITIVE | Add option field, delete option field | All previous versions | No order |
NONE | Allow all changes | Disable compatibility check | Depends on the changes |
Delete schema
You can delete the currently selected version of the schema from the Schema tab.
Additionally, all versions can be deleted from the Configuration tab.
Deleted schemas cannot be recovered and may affect associated producers and consumers.
Schema registry global compatibility settings
Changes to global settings can have serious effects on the entire schema registry.
You can set the global compatibility level of the schema registry by selecting Global Configuration from the Actions menu at the top of the left panel of the schema management screen. Schema individual compatibility settings take precedence, and if no individual settings exist, global settings are applied.