canal 1.1.4 mysql 5.7.26 zookeeper 3.4.14 kafka 2.12-2.4.0
单点. 发现zookeeper没有cursor, 没存位点信息啊
[zk: localhost:2181(CONNECTED) 10] ls /otter/canal [cluster, destinations] [zk: localhost:2181(CONNECTED) 11] ls /otter/canal/cluster [172.16.23.8:11111] [zk: localhost:2181(CONNECTED) 12] ls /otter/canal/destinations [fanboshi] [zk: localhost:2181(CONNECTED) 13] ls /otter/canal/destinations/fanboshi [running, cluster, 1001] [zk: localhost:2181(CONNECTED) 14] ls /otter/canal/destinations/fanboshi/running [] [zk: localhost:2181(CONNECTED) 15] get /otter/canal/destinations/fanboshi/running {"active":true,"address":"172.16.2xx.8:11111"} cZxid = 0x10000053b ctime = Mon Mar 09 18:30:00 CST 2020 mZxid = 0x10000053b mtime = Mon Mar 09 18:30:00 CST 2020 pZxid = 0x10000053b cversion = 0 dataVersion = 0 aclVersion = 0 ephemeralOwner = 0x100719607a90008 dataLength = 45 numChildren = 0 [zk: localhost:2181(CONNECTED) 16] ls /otter/canal/destinations/fanboshi/cluster [172.16.23.8:11111] [zk: localhost:2181(CONNECTED) 17] ls /otter/canal/destinations/fanboshi/1001
[]
instance.properties
$cat fanboshi/instance.properties #################################################
canal.instance.gtidon=true
canal.instance.master.address=ip:port canal.instance.master.journal.name= canal.instance.master.position= canal.instance.master.timestamp= canal.instance.master.gtid=c30c6a02-4e32-11ea-84ec-fa163edcd14e:1-2051921
canal.instance.rds.accesskey= canal.instance.rds.secretkey= canal.instance.rds.instanceId=
canal.instance.tsdb.enable=false canal.instance.tsdb.url=jdbc:mysql://ip:port/canal_tsdb_fanboshi canal.instance.tsdb.dbUsername=canal canal.instance.tsdb.dbPassword=canal
#canal.instance.standby.address = #canal.instance.standby.journal.name = #canal.instance.standby.position = #canal.instance.standby.timestamp = #canal.instance.standby.gtid=
canal.instance.dbUsername=canal_r canal.instance.dbPassword=superpassword canal.instance.connectionCharset = UTF-8
canal.instance.enableDruid=false #canal.instance.pwdPublicKey=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALK4BUxdDltRRE5/zXpVEVPUgunvscYFtEip3pmLlhrWpacX7y7GCMo2/JM6LeHmiiNdH1FWgGCpUfircSwlWKUCAwEAAQ==
canal.instance.filter.regex=fanboshi\..,sysbench\..
canal.instance.filter.black.regex=.\.\_.\ghc,.*\.\.\_gho,.\.\_.*\_del
#canal.instance.filter.field=test1.t_product:id/subject/keywords,test2.t_company:id/name/contact/ch
#canal.instance.filter.black.field=test1.t_product:subject/product_image,test2.t_company:id/name/contact/ch
canal.mq.topic=default_topic
#canal.mq.dynamicTopic=mytest1.user,mytest2\..,.\..* canal.mq.dynamicTopic=.\.. #canal.mq.partition=0
#canal.mq.partitionsNum=3 #canal.mq.partitionHash=test.table:id^name,.\.. #################################################
原提问者GitHub用户Fanduzi
主要是因为空事务发送时只发送了begin,没有配套带上begin/commit事件,导致在gtid模式下位点更新时一直看不到commit事件
原回答者GitHub用户agapple
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。