问题
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
.
I add the plugins path
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"
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