confluentinc / kafka-connect-storage-cloud

Kafka Connect suite of connectors for Cloud storage (Amazon S3)
Other
13 stars 330 forks source link

Override the worker connector configuration #272

Open ispirals opened 5 years ago

ispirals commented 5 years ago

Hi guys,

im trying to override the subject naming strategy defined in the global kafka connect configuration, but i dont know if its possible ...

I know that i can override the options "key.converter" and "value.converter", but i want to override the options defined in the next envvars:

CONNECT_KEY_CONVERTER_KEY_SUBJECT_NAME_STRATEGY CONNECT_VALUE_CONVERTER_VALUE_SUBJECT_NAME_STRATEGY

Its because in some topics we are using a TopicRecordNameStrategy for the keys and in other ones we want to use the TopicNameStrategy, its possible ? o i need another instance of kafka-connect?

Thank you in advance,

regards!

OneCricketeer commented 4 years ago

CONNECT_KEY_CONVERTER_KEY_SUBJECT_NAME_STRATEGY maps to key.converter.key.subject.name.strategy ...

These are able to be set at the Connector-level configuration. Are you having particular issues with it?

In any case, this issue is more appropriate for the Schema Registry project, where the Avro converters with those properties are implemented.

Ref https://github.com/confluentinc/schema-registry/issues/1114