Kafka Connect JDBC接收器连接器问题

时间:2020-01-08 20:10:04

标签: apache-kafka apache-kafka-connect confluent-platform

运行JDBC接收器连接器时出现以下错误

[2020-01-08 15:05:39,271] ERROR Plugin class loader for connector: 'io.confluent.connect.jdbc.JdbcSinkConnector' was not found. Returning: org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader@6f2cfcc2 (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader:165)
[2020-01-08 15:05:39,272] INFO Finished creating connector test-sink (org.apache.kafka.connect.runtime.Worker:273)
[2020-01-08 15:05:39,273] ERROR Plugin class loader for connector: 'io.confluent.connect.jdbc.JdbcSinkConnector' was not found. Returning: org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader@6f2cfcc2 (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader:165)
[2020-01-08 15:05:39,273] INFO SinkConnectorConfig values:

我已经按照文档中的说明正确设置了插件路径。

1 个答案:

答案 0 :(得分:1)

我与您有相同的问题,并已解决。这里的重点是您不应该将连接器jar文件复制到kafka libs目录中。您应在运行以下命令期间设置CLASSPATH:

env CLASSPATH=./* connect-standalone.sh $KAFKA_HOME/config/connect-standalone.properties config/quickstart-couchbase-source.properties

或在worker .properties文件中设置plugin.path。

plugin.path=/path_to_the_plugin_jar_file

希望获得帮助。