Closed spruisken closed 2 years ago
So I managed to override individual connector configs by setting connector.client.config.override.policy=All
and adding consumer.override.auto.offset.reset=latest, ...
in the connector config. This worked and solved my problem. See https://docs.confluent.io/platform/current/connect/references/allconfigs.html#override-the-worker-configuration.
You sir, are a savior. I don't know how to thank you.
I have a docker-compose file with Zookeeper, Kafka, Schema Registry, and Kafka Connect v7.0.1 container images (see below). My attempt to overwrite the following Kafka Connect configuration defaults using env variables was unsuccessful:
max.request.size
(producer)max.partition.fetch.bytes
(consumer)auto.offset.reset
(consumer)I exec'd into the Kafka Connect container and was able to verify the above configs appeared in the connect properties file (with the
producer.
/consumer.
prefix and overriden values):However, when I look at the Kafka Connect container logs, I still see the default values:
Any help here would be appreciated. I'm currently out of ideas after reading through the docs and past related issues.
References:
docker-compose.yaml