Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-6727

Support alternative JDBC drivers in MySQL connector

XMLWordPrintable

      In order to make your issue reports as actionable as possible, please provide the following information, depending on the issue type.

      Bug report

      For bug reports, provide this information, please:

      What Debezium connector do you use and what version?

      docker image debezium-server 2.3.0.Final

      I would like to swap the jdbc driver used in the mysql connector and use the one provided by Amazon instead. This allows me to authenticate via IAM.

      However the following environment variable configuration does not work:

      • DEBEZIUM_SOURCE_CONNECTOR_CLASS=io.debezium.connector.mysql.MySqlConnector
      • DEBEZIUM_SOURCE_DATABASE_JDBC_DRIVER=software.aws.rds.jdbc.mysql.Driver
         
        I have also removed the current mysql driver from /debezium/lib and added the new Amazon driver instead for Aurora MySql.
         
        However when debezium starts it complains that it cannot find the standard mysql driver. It does not use the new one.
         
        debezium    | Caused by: java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver
        debezium    |   at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
        debezium    |   at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        debezium    |   at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
         

              Unassigned Unassigned
              gurpiarbassi Gurps Bassi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: