Closed bugmenoway closed 1 year ago
@bugmenoway Thanks for your reporting.
请问这个异常应该如何解决?是否可以通过修改配置文件或依赖实现适配
We use the class org.apache.flink.streaming.connectors.kafka.FlinkKafkaProducer
to write to kafka. From the exception stack, I guess that there may be class conflicts in multiple jars in your classpath, and the callback
field does not exist in the wrong FlinkKafkaProducer
class. You can check whether there are multiple org.apache.flink.streaming.connectors.kafka.FlinkKafkaProducer
classes in the classpath, and if so, keep only the correct one.
哪里可以看到更详细的paimon相关文档?尤其是关于其基本使用方法,详细配置的部分
All information about paimon can be found at here. At the same time, It can also be communicated through email and Dingding group (10880001919)
remove flink-connector-kafka-1.17.1.jar
remove flink-connector-kafka-1.17.1.jar
我也发现了解决方法,日志显示FlinkKafkaProducer调用的是org.apache.kafka内的方法,说明优先级 flink-connector-kafka-1.17.1.jar 更高了。 org.apache.paimon.flink.kafka.KafkaSinkFunction 内需要org.apache.flink.kafka.shaded.org.apache.kafka.clients.producer.Callback 和 org.apache.kafka.clients.producer.Callback 不同就报错了。 移除flink-connector-kafka-1.17.1.jar 成功解决。 多谢!!
Search before asking
Paimon version
Compute Engine
Minimal reproduce step
USE CATALOG my_catalog;
INSERT INTO TABLE word_12 VALUES('ca12412');
INSERT INTO TABLE word_11 SELECT * FROM word_12;
What doesn't meet your expectations?
以上操作中只有 opt4 成功了。 对于log.system=kafka表的操作,只有ddl可以成功,其他相关的读写都会提示如下错误:
Anything else?
RESET 'execution.checkpointing.interval'; SET 'execution.runtime-mode' = 'batch';
,对于paimon表读写操作及insert from select操作都可以正常实现。但是操作log.system=kafka的表仍报上文的错误辛苦大佬解惑!!! ^_^
Are you willing to submit a PR?