When I use Kafka version 2.6.2 to start connect-standalone.sh, an error occurs:
[2024-06-26 13:50:25,578] ERROR Stopping due to error (org.apache.kafka.connect.cli.ConnectStandalone:130)
java.lang.NoSuchFieldError: DEFAULT
at org.apache.kafka.connect.runtime.WorkerConfig.baseConfigDef(WorkerConfig.java:284)
at org.apache.kafka.connect.runtime.standalone.StandaloneConfig.<clinit>(StandaloneConfig.java:34)
at org.apache.kafka.connect.cli.ConnectStandalone.main(ConnectStandalone.java:81)
I tried moving all the jars from the connector directory to Kafka's libs directory, and deleted duplicate jars of different versions while keeping Kafka's jars, but it still failed.
Then I switched to Kafka version 3.4.0, and the connector started successfully.
When I use Kafka version 2.6.2 to start connect-standalone.sh, an error occurs:
I tried moving all the jars from the connector directory to Kafka's libs directory, and deleted duplicate jars of different versions while keeping Kafka's jars, but it still failed.
Then I switched to Kafka version 3.4.0, and the connector started successfully.