canal实验

1、正常启动canal、kafka、kafka consumer

2、新增记录1,kafka可以消费到1,instance.propertis 配置为

canal.instance.master.journal.name=

canal.instance.master.position=

binlog位置如下,

2019-01-30 15:42:47.495 - clientId:1001 cursor:[mysql-bin.000001,12317,1548834166000,1,] address[47.104.245.115/47.104.245.115:3306]2019-01-30 17:38:29.202 - clientId:1001 cursor:[mysql-bin.000001,13315,1548840007000,1,] address[/47.104.245.115:3306]


3、停掉canal,新增记录2

4、启动canal,2可以消费到

推荐阅读更多精彩内容