开发者社区> 问答> 正文

canal + zookeeper 不能正确找到点位

zookeeper启动正常

canal配置`

canal.instance.global.spring.xml = classpath:spring/default-instance.xml example/instance.properties

canal.instance.master.address = 172.16.20.120:3306 canal.instance.master.journal.name = canal.instance.master.position = canal.instance.master.timestamp =

使用除classpath:spring/default-instance.xml以外都能正常捕捉数据库改动,一旦换成classpath:spring/default-instance.xml就不能正常获取

  • 2016-04-14 15:41:06.202 [Thread-4] INFO c.a.otter.canal.instance.spring.CanalInstanceWithSpring - stop CannalInstance for 1-example
  • 2016-04-14 15:41:06.204 [Thread-4] INFO c.a.otter.canal.instance.spring.CanalInstanceWithSpring - stop successful....
  • [root@Note_140_canal ~]# tailf -n 300 /usr/local/canal.deployer-1.0.21/logs/example/example.log
  • 2016-04-14 15:41:34.578 [main] INFO c.a.o.c.i.spring.support.PropertyPlaceholderConfigurer - Loading properties file from class path resource [canal.properties]
  • 2016-04-14 15:41:34.588 [main] INFO c.a.o.c.i.spring.support.PropertyPlaceholderConfigurer - Loading properties file from class path resource [example/instance.properties]
  • 2016-04-14 15:41:34.645 [main] WARN org.springframework.beans.TypeConverterDelegate - PropertyEditor [com.sun.beans.editors.EnumEditor] found through deprecated global PropertyEditorManager fallback - consider using a more isolated form of registration, e.g. on the BeanWrapper/BeanFactory!
  • 2016-04-14 15:41:34.759 [main] INFO c.a.otter.canal.instance.spring.CanalInstanceWithSpring - start CannalInstance for 1-example
  • 2016-04-14 15:41:34.788 [main] INFO c.a.otter.canal.instance.spring.CanalInstanceWithSpring - subscribe filter change to ...
  • 2016-04-14 15:41:34.789 [main] INFO c.a.otter.canal.instance.spring.CanalInstanceWithSpring - start successful....
  • 2016-04-14 15:41:34.832 [destination = example , address = /172.16.20.120:3306 , EventParser] WARN c.a.otter.canal.parse.inbound.mysql.MysqlEventParser - prepare to find start position by switch ::1460100169000
  • 2016-04-14 15:41:34.970 [destination = example , address = /172.16.20.120:3306 , EventParser] WARN c.a.otter.canal.parse.inbound.mysql.MysqlEventParser - Didn't find the corresponding binlog files from mysql-bin.000001 to mysql-bin.000004
  • 2016-04-14 15:41:34.979 [destination = example , address = /172.16.20.120:3306 , EventParser] ERROR c.a.otter.canal.parse.inbound.mysql.MysqlEventParser - dump address /172.16.20.120:3306 has an error, retrying. caused by
  • com.alibaba.otter.canal.parse.exception.CanalParseException: can't find start position for example
  • 2016-04-14 15:41:34.983 [destination = example , address = /172.16.20.120:3306 , EventParser] ERROR com.alibaba.otter.canal.common.alarm.LogAlarmHandler - destination:example[com.alibaba.otter.canal.parse.exception.CanalParseException: can't find start position for example
  • ]

原提问者GitHub用户songjian0270

展开
收起
绿子直子 2023-05-09 15:59:28 125 0
1 条回答
写回答
取消 提交回答
  • 现在已经解决了,压缩包传到linux被损坏了

    原回答者GitHub用户songjian0270

    2023-05-10 11:02:16
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
《MSE 微服务网关》 立即下载
微服务引擎 MSE 治理中心重磅发布 立即下载
阿里云微服务引擎 MSE 2.0 线上发布 立即下载