[
https://issues.apache.org/jira/browse/KAFKA-7883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16760107#comment-16760107
]
Jérémy Thulliez commented on KAFKA-7883:
----------------------------------------
Actually, there is a native way to do it :
"transforms" : "AddNamespace",
"transforms.AddNamespace.type" :
"org.apache.kafka.connect.transforms.SetSchemaMetadata$Value",
"transforms.AddNamespace.schema.name" : "my.namespace.NameOfTheSchema"
"my.namespace" will become the namespace
"NameOfTheSchema" the name
> Add schema.namespace support to SetSchemaMetadata SMT in Kafka Connect
> ----------------------------------------------------------------------
>
> Key: KAFKA-7883
> URL: https://issues.apache.org/jira/browse/KAFKA-7883
> Project: Kafka
> Issue Type: New Feature
> Components: KafkaConnect
> Affects Versions: 2.1.0
> Reporter: Jérémy Thulliez
> Priority: Minor
> Labels: features
>
> When using a connector with AvroConverter & SchemaRegistry, users should be
> able to specify the namespace in the SMT.
> Currently, only "schema.version" and "schema.name" can be specified.
> This is needed because if not specified, generated classes (from avro schema)
> are in the default package and not accessible.
> Currently, the workaround is to add a Transformation implementation to the
> connect classpath.
> It should be native.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)