Replies: 3 comments 3 replies
|
This looks like a Flink classpath problem, not a Fluss table problem. The missing class is The Kafka SQL connector docs are explicit that the Kafka connector is not part of the Flink binary distribution. So for your # inside / mounted into each Flink container
ls /opt/flink/lib | grep -i kafkaThen restart the Flink cluster / SQL client so the jar is actually on the classpath, recreate the Kafka table, and run the So the split should be:
If adding the Kafka connector jar fixes the ClassNotFoundException, please mark the answer so the classpath issue is easy to find. |
|
Great, that confirms the missing-class failure was still at the Flink connector classpath/registration layer. For the immediate SQL-client session, If that classpath diagnosis solved the issue, please mark the answer as accepted so the thread is easier to find. |
|
As commented above, the workaround is working for me, so I am closing this issue. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi team,
I was doing local PoC for kafka -> flink -> fluss.
I was getting error "java.lang.ClassNotFoundException as : org.apache.flink.connector.kafka.source.KafkaSource" after executing select statement on fresh created table i.e. kafka_customers for kafka events.
You can see the error and Docker files attached.
Error logs:
"Flink SQL>
Flink SQL> select * from kafka_customers;
[ERROR] Could not execute SQL statement. Reason:
java.lang.ClassNotFoundException: org.apache.flink.connector.kafka.source.KafkaSource"
PFA docker compose file
docker-compose.yml
Dockerfile text:
FROM apache/fluss-quickstart-flink:1.20-0.9.1-incubating
ADD https://repo1.maven.org/maven2/org/apache/flink/flink-sql-connector-kafka/3.4.0-1.20/flink-sql-connector-kafka-3.4.0-1.20.jar /opt/flink/lib/
ADD https://repo1.maven.org/maven2/org/apache/flink/flink-connector-kafka/3.4.0-1.20/flink-connector-kafka-3.4.0-1.20.jar /opt/flink/lib/
ADD https://repo1.maven.org/maven2/org/apache/flink/flink-connector-base/1.20.0/flink-connector-base-1.20.0.jar /opt/flink/lib/
ADD https://repo1.maven.org/maven2/org/apache/kafka/kafka-clients/3.4.0/kafka-clients-3.4.0.jar /opt/flink/lib/
All reactions