You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jérémy Thulliez (JIRA)" <ji...@apache.org> on 2019/02/04 18:50:00 UTC

[jira] [Commented] (KAFKA-7883) Add schema.namespace support to SetSchemaMetadata SMT in Kafka Connect

    [ 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)