Can not find connector class
See original GitHub issueWhen 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:
- Created 6 years ago
- Comments:7
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.@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.