Important

You are viewing documentation for an older version of Confluent Platform. For the latest, click here.

SetSchemaMetadata

The following provides usage information for the Apache Kafka® SMT org.apache.kafka.connect.transforms.SetSchemaMetadata.

Description

Set the schema name, version or both on the record’s key (org.apache.kafka.connect.transforms.SetSchemaMetadata$Key) or value (org.apache.kafka.connect.transforms.SetSchemaMetadata$Value) schema.

Example

This configuration snippet shows how to use SetSchemaMetadata to set a schema name and version.

"transforms": "SetSchemaMetadata",
"transforms.SetSchemaMetadata.type": "org.apache.kafka.connect.transforms.SetSchemaMetadata$Value",
"transforms.SetSchemaMetadata.schema.name": "avro"
"transforms.SetSchemaMetadata.schema.version": "1.8.2"

Properties

Name Description Type Default Valid Values Importance
schema.name Schema name to set. string null   high
schema.version Schema version to set. int null   high