Alexey Shokov
Alexey Shokov

Reputation: 5010

Configuring Debezium MySQL connector via env vars

The only way to configure a Debezium connector (MySQL in my case) is to send a config to a running Kafka Connect instance via HTTP.

My question is: is it possible to supply this configuration when starting the Connect instance? Via a properties file or (ideally) via env vars?..

Upvotes: 1

Views: 698

Answers (1)

Iskuskov Alexander
Iskuskov Alexander

Reputation: 4365

If you execute a connector worker in standalone mode, you can supply configuration via command line (see details here):

bin/connect-standalone worker.properties connector1.properties [connector2.properties connector3.properties ...]

For distributed mode, you can only use the REST API. But you can do some automation using tools like Ansible.

Upvotes: 2

Related Questions