#5601·canal

使用Canal1.1.8与11.8.3-MariaDB-0+deb13u1 from Debian-log 实例日志解析Binlog 会失败,出现错误

作者: WorhTT创建于 2026年7月23日更新于 2026年7月23日

The error is as follows: 2026-07-23 17:11:36.223 [destination = examplejnh, address = /10.40.0.26:3306, EventParser] ERROR c.a.o.c.p.inbound.MySQL.rds.RdsBinlogEventParserProxy - dump address /10.40.0.26:3306 has an error, retrying. caused by java.lang.IllegalArgumentException: Invalid charset id: 2048 at com.taobao.tddl.dbsync.binlog.CharsetConversion.getEntry(CharsetConversion.java:43) at com.taobao.tddl.dbsync.binlog.CharsetConversion.getNioCharset(CharsetConversion.java:396) at com.taobao.tddl.dbsync.binlog.event.QueryLogEvent.<init>(QueryLogEvent.java:519) at com.taobao.tddl.dbsync.binlog.event.QueryLogEvent.<init>(QueryLogEvent.java:447) at com.taobao.tddl.dbsync.binlog.LogDecoder.decode(LogDecoder.java:197) at com.taobao.tddl.dbsync.binlog.LogDecoder.decode(LogDecoder.java:82) at com.alibaba.otter.canal.parse.inbound.MySQL.MysqlConnection.seek(MysqlConnection.java:170) at com.alibaba.otter.canal.parse.inbound.MySQL.MysqlEventParser.findAsPerTimestampInSpecificLogFile(MysqlEventParser.java:785) at com.alibaba.otter.canal.parse.inbound.MySQL.MysqlEventParser.findEndPositionWithMasterIdAndTimestamp(MysqlEventParser.java:382) at com.alibaba.otter.canal.parse.inbound.MySQL.MysqlEventParser.findStartPositionInternal(MysqlEventParser.java:438) at com.alibaba.otter.canal.parse.inbound.MySQL.MysqlEventParser.findStartPosition(MysqlEventParser.java:356) at com.alibaba.otter.canal.parse.inbound.AbstractEventParser$1.run(AbstractEventParser.java:186) at java.lang.Thread.run(Thread.java:748) 2026-07-23 17:11:36.223 [destination = examplejnh, address = /10.40.0.26:3306, EventParser] ERROR com.alibaba.otter.canal.common.alarm.LogAlarmHandler - destination:examplejnh[java.lang.IllegalArgumentException: Invalid charset id: 2048 at com.taobao.tddl.dbsync.binlog.CharsetConversion.getEntry(CharsetConversion.java:43) at com.taobao.tddl.dbsync.binlog.CharsetConversion.getNioCharset(CharsetConversion.java:396) at com.taobao.tddl.dbsync.binlog.event.QueryLogEvent.<init>(QueryLogEvent.java:519) at com.taobao.tddl.dbsync.binlog.event.QueryLogEvent.<init>(QueryLogEvent.java:447) at com.taobao.tddl.dbsync.binlog.LogDecoder.decode(LogDecoder.java:197) at com.taobao.tddl.dbsync.binlog.LogDecoder.decode(LogDecoder.java:82) at com.alibaba.otter.canal.parse.inbound.MySQL.MysqlConnection.seek(MysqlConnection.java:170) at com.alibaba.otter.canal.parse.inbound.MySQL.MysqlEventParser.findAsPerTimestampInSpecificLogFile(MysqlEventParser.java:785) at com.alibaba.otter.canal.parse.inbound.MySQL.MysqlEventParser.findEndPositionWithMasterIdAndTimestamp(MysqlEventParser.java:382) at com.alibaba.otter.canal.parse.inbound.MySQL.MysqlEventParser.findStartPositionInternal(MysqlEventParser.java:438) at com.alibaba.otter.canal.parse.inbound.MySQL.MysqlEventParser.findStartPosition(MysqlEventParser.java:356) at com.alibaba.otter.canal.parse.inbound.AbstractEventParser$1.run(AbstractEventParser.java:186) at java.lang.Thread.run(Thread.java:748)