question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not find connector class

See original GitHub issue

When upgrading to cp-connect-base 4.0.0, I met an error happened before, which is ‘Can not find connector class’. However the error message shown my connector was in the available connector list

Failed to find any class that implements Connector and which name matches org.apache.kafka.connect.mongo.MongoSourceConnector, available connectors are: PluginDesc{klass=class org.apache.kafka.connect.file.FileStreamSinkConnector, name='org.apache.kafka.connect.file.FileStreamSinkConnector', version='1.0.0-cp1', encodedVersion=1.0.0-cp1, type=sink, typeName='sink', location='file:/usr/share/java/kafka/'}, PluginDesc{klass=class org.apache.kafka.connect.file.FileStreamSourceConnector, name='org.apache.kafka.connect.file.FileStreamSourceConnector', version='1.0.0-cp1', encodedVersion=1.0.0-cp1, type=source, typeName='source', location='file:/usr/share/java/kafka/'}, PluginDesc{klass=class org.apache.kafka.connect.mongo.MongoSinkConnector, name='org.apache.kafka.connect.mongo.MongoSinkConnector', version='1.0.0-cp1', encodedVersion=1.0.0-cp1, type=sink, typeName='sink', location='file:/usr/share/java/kafka-connect-mongo/'}, PluginDesc{klass=class org.apache.kafka.connect.mongo.MongoSourceConnector, name='org.apache.kafka.connect.mongo.MongoSourceConnector', version='1.0.0-cp1', encodedVersion=1.0.0-cp1, type=source, typeName='source', location='file:/usr/share/java/kafka-connect-mongo/'}, PluginDesc{klass=class org.apache.kafka.connect.tools.MockConnector, name='org.apache.kafka.connect.tools.MockConnector', version='1.0.0-cp1', encodedVersion=1.0.0-cp1, type=connector, typeName='connector', location='file:/usr/share/java/kafka/'}, PluginDesc{klass=class org.apache.kafka.connect.tools.MockSinkConnector, name='org.apache.kafka.connect.tools.MockSinkConnector', version='1.0.0-cp1', encodedVersion=1.0.0-cp1, type=sink, typeName='sink', location='file:/usr/share/java/kafka/'}, PluginDesc{klass=class org.apache.kafka.connect.tools.MockSourceConnector, name='org.apache.kafka.connect.tools.MockSourceConnector', version='1.0.0-cp1', encodedVersion=1.0.0-cp1, type=source, typeName='source', location='file:/usr/share/java/kafka/'}, PluginDesc{klass=class org.apache.kafka.connect.tools.SchemaSourceConnector, name='org.apache.kafka.connect.tools.SchemaSourceConnector', version='1.0.0-cp1', encodedVersion=1.0.0-cp1, type=source, typeName='source', location='file:/usr/share/java/kafka/'}, PluginDesc{klass=class org.apache.kafka.connect.tools.VerifiableSinkConnector, name='org.apache.kafka.connect.tools.VerifiableSinkConnector', version='1.0.0-cp1', encodedVersion=1.0.0-cp1, type=source, typeName='source', location='file:/usr/share/java/kafka/'}, PluginDesc{klass=class org.apache.kafka.connect.tools.VerifiableSourceConnector, name='org.apache.kafka.connect.tools.VerifiableSourceConnector', version='1.0.0-cp1', encodedVersion=1.0.0-cp1, type=source, typeName='source', location='file:/usr/share/java/kafka/'}

Can anyone give an explain?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

9reactions
woodleecommented, Dec 8, 2017

FWIW I hit the same issue on 4.0.0, and resolved it by only setting the env variable CONNECT_PLUGIN_PATH to /usr/share/java/ (as described by @SunYour). The alias wasn’t needed in my case, which was using the S3 sink plugin.

1reaction
sailxjxcommented, Dec 1, 2017

@SunYour you can discard the plugin.path option in 3.2.0 if you put your connector in path ‘/usr/share/java’. But you must explicit define the plugin.path in 4.0.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kafka Connect can't find connector - Stack Overflow
I ran jdbc connector yesterday manually on kafka in docker without confluent platform etc just to learn how those things works underneath.
Read more >
Failed to find any class that implements Connector and which ...
Hi. I faced strange issue with kafka-connect and connector: i implemented some custom connector class in java
Read more >
Unable to load couchbase source connector - Kafka Connector
I'm still having problems getting the couchbase source connector to run. I've turned on the DEBUG level but it isn't really helping me...
Read more >
Troubleshoot connector errors for Amazon MSK Connect
ConnectException: Failed to find any class that implements Connector and ... If the connector is unable to reach your Amazon MSK cluster, ...
Read more >
Connector not found | DataStax Apache Kafka Connector
properties / connect-standalone.properties. Verify that the connector jar exists and is readable.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found