且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Confluent JDBC Source连接器的问题

更新时间:2023-11-18 16:37:46

消息No suitable driver found for表示找不到正确的jdbc驱动程序.

Message No suitable driver found for means, that proper jdbc driver cannot be found.

根据解决上述错误的文章,您需要在share/java/kafka-connect-jdbc

According to article to fix above error you need to place appropriate jdbc driver in share/java/kafka-connect-jdbc

要使用JDBC连接器,您需要为源数据库提供相关的JDBC驱动程序.该连接器随附了PostgreSQL和sqlite的驱动程序-对于所有其他连接器,请下载相应的JAR并将其放置在share/java/kafka-connect-jdbc中.您可以在此处找到有关MySQL,Oracle,SQL Server,DB2和Teradata的相关下载.

To use the JDBC connector, you’ll need to make available the relevant JDBC driver for your source database. The connector ships with drivers for PostgreSQL and sqlite—for all others download the appropriate JAR and place it in share/java/kafka-connect-jdbc. You can find the relevant downloads here for MySQL, Oracle, SQL Server, DB2, and Teradata.

复制jar之后,您需要重新启动Kafka Connect

After copying jars, you need to restart Kafka Connect