apache / doris-flink-connector

Flink Connector for Apache Doris
https://doris.apache.org/
Apache License 2.0
326 stars 225 forks source link

[Bug] 新版本的 flink-cdc-connectors 的 groupId 被从 com.ververica 修改为 org.apache.flink,某些 Job 代码的静态块或导入,可能报:java.lang.NoClassDefFoundError: Could not initialize class com.ververica.cdc.xxx #358

Open PeatBoy opened 7 months ago

PeatBoy commented 7 months ago

Search before asking

Version

依赖包 Flink-CDC-Connectors 3.0-SNAPSHOT 及以后

What's Wrong?

由于本次 Flink-CDC-Connectors commit groupId 被从 com.ververica 修改为 org.apache.flink,这会导致部分代码可能出现异常(java.lang.NoClassDefFoundError: Could not initialize class com.ververica.cdc.xxx)

What You Expected?

建议 doris-flink-connector 注意修改依赖

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

Code of Conduct

dataedgehungary commented 7 months ago

same

PeatBoy commented 7 months ago

same

降低版本

tchivs commented 4 months ago

直接改源码把包升级就行了,我fork了一个运行良好

lingithublearn commented 2 months ago

我用的 1.6.0版本的doris-connector + 3.1.1版本的flink-sql-connector-mysql-cdc,会有这个问题,仔细看pom,发现要降低版本,要用com.ververica 的 2.4.2。 但是降低版本后mysql-cdc 会有比较依赖冲突