camel-mysql-source-kafka-connector source configuration
Connector Description: Query data from a MySQL Database. In your KameletBinding file, you must explicitly declare the SQL Server driver dependency in spec->integration->dependencies. - "mvn:mysql:mysql-connector-java:<version>"
When using camel-mysql-source-kafka-connector as source make sure to use the following Maven dependency to have support for the connector:
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-mysql-source-kafka-connector</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel Kafka connector version -->
</dependency>
To use this source connector in Kafka connect you’ll need to set the following connector.class
connector.class=org.apache.camel.kafkaconnector.mysqlsource.CamelMysqlsourceSourceConnector
The camel-mysql-source source connector supports 7 options, which are listed below.
Name | Description | Default | Priority |
---|---|---|---|
Required The server name for the data source. Example: localhost. |
HIGH |
||
The server port for the data source. |
"3306" |
MEDIUM |
|
Required The username to access a secured MySQL Database. |
HIGH |
||
Required The password to access a secured MySQL Database. |
HIGH |
||
Required The query to execute against the MySQL Database. Example: INSERT INTO accounts (username,city) VALUES (:#username,:#city). |
HIGH |
||
Required The name of the MySQL Database. |
HIGH |
||
A query to run on a tuple consumed. Example: DELETE FROM accounts where user_id = :#user_id. |
MEDIUM |
The camel-mysql-source source connector has no converters out of the box.
The camel-mysql-source source connector has no transforms out of the box.
The camel-mysql-source source connector has no aggregation strategies out of the box.