美文网首页
canal 1.1.3 问题column size is not

canal 1.1.3 问题column size is not

作者: 邵红晓 | 来源:发表于2022-06-14 10:59 被阅读0次

    CanalParseException: column size is not match for table
    原因:
    新增字段改变表结构导致如上问题,tsdb已经开启维护元数据
    在启用HA模式下,即使启用tsdb,也会出现上诉bug

    解决办法:
    关闭HA(on k8s,有监控程序进行数据补录,不会担心数据丢失),注释以下配置
    指定注册的zk地址
    canal.zkServers = xx:2181,xx:2181,xx:2181

    此配置会使用PeriodMixedMetaManager管理位点,会把ack位点注册到zk节点上,当failover时可从ack
    位点处重新消费
    canal.instance.global.spring.xml = classpath:spring/default-instance.xml
    改为 canal.instance.global.spring.xml = classpath:spring/file-instance.xml

    相关文章

      网友评论

          本文标题:canal 1.1.3 问题column size is not

          本文链接:https://www.haomeiwen.com/subject/joqzmrtx.html