flink-cdc icon indicating copy to clipboard operation
flink-cdc copied to clipboard

org.apache.kafka.connect.errors.ConnectException: tried to access field com.mysql.cj.CharsetMapping.COLLATION_INDEX_TO_COLLATION_NAME from class io.debezium.connector.mysql.antlr.MySqlAntlrDdlParser

Open overcls opened this issue 5 years ago • 3 comments

21-08-10 10:22:14.690 ERROR 63716 --- [source-snapshot] i.d.connector.mysql.SnapshotReader : Failed due to error: Aborting snapshot due to error when last running 'UNLOCK TABLES': tried to access field com.mysql.cj.CharsetMapping.COLLATION_INDEX_TO_COLLATION_NAME from class io.debezium.connector.mysql.antlr.MySqlAntlrDdlParser

overcls avatar Aug 10 '21 02:08 overcls

Have you resolved the problem? I met the same one

huojiajin avatar Aug 25 '21 03:08 huojiajin

This is happening due to incompatibility of debezium maven dependecies with your DB (my-sql) version. For example I am using mysql-8.0 and debezium-connector-mysql 1.4.2. It was throwing same exception for me. Then I upgraded debezium-connector-mysql to 1.7.0.Final. It solved my problem. Try to use different version of debezium dependecies.

Shilpa-Sareen avatar Dec 23 '21 13:12 Shilpa-Sareen

Closing this issue because it was created before version 2.3.0 (2022-11-10). Please try the latest version of Flink CDC to see if the issue has been resolved. If the issue is still valid, kindly report it on Apache Jira under project Flink with component tag Flink CDC. Thank you!

PatrickRen avatar Feb 28 '24 15:02 PatrickRen