Connector configuration is the named set of parameters that defines how a Kafka Connect connector connects to and processes an external system. Unlike worker configuration, which applies to every connector on a worker, connector configuration targets one connector and is submitted through the REST API. Kafka Connect distributes these configurations through its internal configuration topic. section 11.4
Create and change a file source connector
A connector definition names the connector and supplies connector-specific settings such as connector.class, tasks.max, file, and topic. POSTing this JSON to /connectors creates customers-source. If the source file changes, PUT the revised configuration to /connectors/customers-source/config, replacing /tmp/customers.txt with /tmp/new_customers.txt. section 11.5.2
Manage connector configuration and runtime behavior through the REST API:
- Create a connector with POST /connectors and a JSON object containing its name and connector-specific configuration. section 11.5.2
- Modify settings with PUT /connectors/<connector>/config, such as changing the source file. section 11.5.2
- Pause connectors during third-party maintenance, resume them afterward, and restart failed connectors or tasks after resolving persistent problems. section 11.5.2
bootstrap.servers=localhost:9092 group.id=connect config.storage.topic=connect-config offset.storage.topic=connect-offset status.storage.topic=connect-status key.converter=org.apache.kafka.connect.storage.StringConverter value.converter=org.apache.kafka.connect.storage.StringConverter plugin.path=<PATH-TO-YOUR-USER-DIRECTORY>/kafka/libs/
Use the worker configuration listing to see the surrounding Kafka Connect cluster settings, including bootstrap servers, storage topics, converters, and plugin path. section 11.4
