Setting up the Debezium Db2 Source connector
Learn about the CDP specific setup steps required before you can deploy the Debezium Db2 Source connector.
In CDP, before deploying an instance of the Debezium Db2 Source connector, you must download and deploy the Db2 JDBC driver on all Kafka Connect hosts. Otherwise, you will not be able to deploy the connector. The following list of steps walks you through this process.
For more information regarding how the Debezium DB2 connector works as well as its configuration and properties, see Debezium connector for Db2 in the Debezium documentation.
- Download the Db2 JDBC driver. The JDBC driver can be downloaded from Maven Central. Cloudera recommends that you use version 184.108.40.206.
- Copy and rename the driver to the location specified in the JDBC Driver
Jars Path For Debezium Kafka property. The default location is
/var/lib/kafka_connect_jdbc.The JDBC driver must be renamed to
db2-connector-java.jar. For example:
cp ./jcc-[***VERSION***].jar var/lib/kafka_connect_jdbc/db2-connector-java.jar
- Set correct file permissions. For example:
chmod 644 /var/lib/kafka_connect_jdbc/db2-connector-java.jar
- In Cloudera Manager, restart all Kafka Connect service roles.