[zk: localhost:2181(CONNECTED) 17] get /otter/canal/destinations/example2/1001/cursor {"@type":"com.alibaba.otter.canal.protocol.position.LogPosition","identity":{"slaveId":-1,"sourceAddress":{"address":"10.124.18.235","port":3306}},"postion":{"gtid":"","included":false,"journalName":"mysql-bin.000026","position":560566916,"serverId":2353306,"timestamp":1558771237000}} cZxid = 0x13000f2ecd ctime = Wed May 22 14:56:36 CST 2019 mZxid = 0x1300165d44 mtime = Sat May 25 16:00:38 CST 2019 pZxid = 0x13000f2ecd cversion = 0 dataVersion = 49146 aclVersion = 0 ephemeralOwner = 0x0 dataLength = 285 numChildren = 0 [zk: localhost:2181(CONNECTED) 18]
原提问者GitHub用户Bruce2jiang
zk里面本来就是存放1个位点信息的,它是canal解析完放到ZK的位点信息,你说的2个位点是mysql执行完语句产生的起始和结束位点信息,但这个位点信息需要你在二次开发,从CanalEntry中取出来
原回答者GitHub用户54nidong
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。