kafka mongodb sink connector not starting

做~自己de王妃 提交于 2019-12-11 07:26:13

问题


I've installed confluent_3.3.0 and started zookeper, schema-registry and kafka broker. I have also downloaded mongodb connector from this link.

Description: I'm running sink connector using the following command:

./bin/connect-standalone etc/kafka/connect-standalone.properties /home/username/mongo-connect-test/kafka-connect-mongodb/quickstart-couchbase-sink.properties

Problem: I'm getting the following error:

ERROR Stopping after connector error (org.apache.kafka.connect.cli.ConnectStandalone:91)
java.lang.IllegalAccessError: tried to access field org.apache.kafka.common.config.ConfigDef.NO_DEFAULT_VALUE from class org.radarcns.mongodb.MongoDbSinkConnector

Thanks for reading !


回答1:


This connector is using, at its latest version, an old version of the kafka-clients API. Specifically, it is depending on a constructor of the class org.apache.kafka.common.config.AbstractConfig that does not exist in Apache Kafka versions >= 0.11.0.0

Confluent Platform version 3.3.0 is using Apache Kafka 0.11.0.0

To fix this issue, the recommended approach would be to update the connector code to use the most recent versions of Apache Kafka APIs.



来源:https://stackoverflow.com/questions/47175455/kafka-mongodb-sink-connector-not-starting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!