I get error
HTTP/1.1 500 Internal Server Error {"error_code":500, "message": "Failed to find any class that implements connector and which name matches io.confluent.connect.s3.S3SinkConnector"}
really struggling , I copied “kafka-connect-s3-10.5.9.jar” into different locations and added that location to CLASSPATH , normal PATH as well , the code can’t see the class
can somebody help what I’m doing wrong
How did you get the connector? Download and unzip from the instructions here?
What does the worker log say when you run it? You should see output like this as it scans for plugins and registers connector classes (my plugin.path is /tmp/plugins):
...
[2024-05-23 13:55:14,152] INFO Scanning for plugin classes. This might take a moment ... (org.apache.kafka.connect.cli.AbstractConnectCli:127)
[2024-05-23 13:55:14,216] INFO Loading plugin from: /tmp/plugins/confluentinc-kafka-connect-s3-10.5.12 (org.apache.kafka.connect.runtime.isolation.PluginScanner:75)
[2024-05-23 13:55:14,505] INFO Registered loader: PluginClassLoader{pluginLocation=file:/tmp/plugins/confluentinc-kafka-connect-s3-10.5.12/} (org.apache.kafka.connect.runtime.isolation.PluginScanner:80)
...
[2024-05-23 13:55:22,167] INFO Added plugin 'io.confluent.connect.s3.S3SinkConnector' (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader:105)
...
[2024-05-23 13:55:22,179] INFO Added alias 'S3Sink' to plugin 'io.confluent.connect.s3.S3SinkConnector' (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader:109)
...
Here are the logs from my pod, as I work on AWS workspace, I can’t paste them here
loading plugin from : /usr/share/java/kafka/s3-connect (org.apache.kafka.connect.Runtime.isolation.PluginScanner:75)
Registered laoder: PluginClassLoader{pluginLocation=file:/usr/share/java/kafka/s3-connect}
WARN one or more plugins are missing ServiceLoader manifests may not be usable with pligin.discovery=service_load: [
file:/usr/share/java/kafka/avro/ io.confluent.connect.avro.AvroConverter converter undefined
file:/usr/share/java/kafka/s3-connect/ io.confluent.connect.s3.S3SinkConnector sink 10.5.9
file:/usr/share/java/kafka/s3-connect/ io.confluent.connect.storage.tools.SchemaSourceConnector source 3.6.0
.
.
.
down the lane
INFO Added plugin ‘io.confluent.connect.s3.S3SinkConnector’
.
.
.
INFO Added alias ‘S3SinkConnector’ to plugin ‘io.confluent.connect.s3.S3SinkConnector’
Then in log i can see reading s3.properties when creating connector
and gets Finished starting connectors and tasks
then i see
ERROR error forwarding REST request
org.apache.kafka.connect.runtime.test.errors.ConnectRestException: Failed to find any class that implements Connector and which name matches io.confluent.connect.s3.S3SinkConnector