StarRocks / starrocks-connector-for-kafka

Apache License 2.0
7 stars 12 forks source link

starrocks-connector-for-kafka is not compatible with older versions of Kafka. #26

Open JamesWalkerrrr opened 4 months ago

JamesWalkerrrr commented 4 months ago

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.