kafka connector mysql_Kafka Connect failed to add MySqlConnector

问题

I need someone's help.

I follow a tutorial Streaming Data from MySQL into Kafka with Kafka Connect and Debezium but I have the trouble connecting MySql to Kafka server using Debezium MySQL Connector.

Here is my setup and other information.

OS : Windows 10.

Kafka Connect : Confluent 5.0.

MySQL Connector : 0.8.1 Final.

I keep files

1Sw3Z.png.

I add the plugins path

VzRJN.png

nVDSM.png

When I tried connecting to Kafka Connect, It returned me an error.

"Failed to find any class that implements Connector and which name matches io.debezium.connector.mysql.MySqlConnector"

5RfrT.png

mLYIK.png

Am I missing something? Anyone can help?

回答1:

Make sure that you've placed the .jar connector file under plugins.path which is defined in kafka-connect properties and usually maps to /usr/share/java.

After adding the connector under the correct directory you need to either load the connector or restart kafka-connect so that it is automatically loaded in start-up.

回答2:

your plugin path is wrong (confluent-5.0.0\share\java)

either it should start with / (which means root of current drive) or you should give complete path.

This is the reason connector jar is not present in classpath

来源:https://stackoverflow.com/questions/51835825/kafka-connect-failed-to-add-mysqlconnector

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值