New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] update flink version to 1.16.2and CDC version to 2.3.0:NoSuchMethodError #2340
Comments
i try to downgrade the version of flinkcdc,it works on flink 1.13.6 and cdc 2.0.2,but i need to use flink 1.16 |
The same issue for me:
Reproduces on CDC 2.3.0 and 2.4.0 versions. As I understand, the reason because as result we have two dependencies in runtime classpath : with the same class io.debezium.connector.mysql.MySqlConnection$MySqlConnectionConfiguration but first one with only one constructor. Issue exists since this changes were merged: So the question is, why was this class renamed in this commit 5415bcf and how fix this issue without shading class from debezium-connector-mysql dependency? Unfortunately I couldn't just exclude transitive dependency debezium-connector-mysql because it's a lot of classes which are not exists in flink-connector-mysql-cdc so trying to exclude them we'll receive another one exception - NoClassDefFoundError |
两个方法:
第二个方法亲测有效,第一个没试。 |
我已经收到你的邮件啦~~~~
|
你好可以详细说说吗 |
我已经收到你的邮件啦~~~~
|
在新版本里面,cdc的jar包和cdc-sql的jar包是两个jar包,如果需要sql-client去运行cdc程序,需要在lib里面加入cdc-sql的jar包 |
我已经收到你的邮件啦~~~~
|
Search before asking
Flink version
1.16.2
Flink CDC version
2.3.0
Database and its version
mysql 8
Minimal reproduce step
start flink-sql client
try to build a cdc database connect and table
run select * from the table
What did you expect to see?
run cdc success
What did you see instead?
first is a Series of ClassNotFoundException,then i put the missing jar into ./lib
finally ,it tells:
Caused by: java.lang.NoSuchMethodError: io.debezium.connector.mysql.MySqlConnection$MySqlConnectionConfiguration.(Lio/debezium/config/Configuration;Ljava/util/Properties;)V
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: