当前位置:网站首页>Canal reports Could not find first log file name in binary log index file
Canal reports Could not find first log file name in binary log index file
2022-08-10 05:48:00 【development old man】
Check /home/admin/canal-server/logs/example/example.log for the following errors:
2022-07-20 00:00:08.473 [destination = example , address = mall-mysql/192.168.38.131:3306 , EventParser] ERROR com.alibaba.otter.canal.common.alarm.LogAlarmHandler - destination:example[java.io.IOException: Received error packet: errno = 1236, sqlstate = HY000 errmsg = Could not find first log file name in binary log index fileat com.alibaba.otter.canal.parse.inbound.mysql.dbsync.DirectLogFetcher.fetch(DirectLogFetcher.java:102)at com.alibaba.otter.canal.parse.inbound.mysql.MysqlConnection.dump(MysqlConnection.java:238)at com.alibaba.otter.canal.parse.inbound.AbstractEventParser$1.run(AbstractEventParser.java:262)at java.lang.Thread.run(Thread.java:748)
Reason:
The binlog file set in the configuration file was not found
Solution:
Because the instance.properties configuration file in this example is packaged into the docker image, it can only be modified in the instance
Check the binlog log file name and position in the database first
Query in this example mall-mysql database:
mysql> show master status;
Output File: mysql-binlog.000233, Position: 652645
Enter the instance:
kubectl exec -ti mall-canal-84f6f7d7cc-xbghn bash -n nsNamexxx> vi /home/admin/canal-server/conf/example/instance.properties
Modify the position info section:
canal.instance.master.address=mall-mysql:3306canal.instance.master.journal.name=mysql-binlog.000233canal.instance.master.position=652645canal.instance.master.timestamp=canal.instance.master.gtid=
Restart the service:
xxx> cd /home/admin/canal-serverxxx> ./restart.sh
Check the log after restarting, the fault is eliminated
边栏推荐
猜你喜欢
随机推荐
连接 Nacos 报超时错误
使用Google Protobuf 在 Matlab 中工作
笔记1
网络安全作业
基于Qiskit——《量子计算编程实战》读书笔记(六)
文章复现:SRCNN
先人一步,不再错过,链读APP即将上线!
利用 crontab 拷贝大文件
Canal 报错 Could not find first log file name in binary log index file
pytorch框架学习(4)torchvision模块&训练一个简单的自己的CNN (一)
ZigBee 网络设备相关内容
文本元素
Mockito基本使用指南
Link reading good article: What is the difference between hot encrypted storage and cold encrypted storage?
Batch add watermark to pictures batch add background zoom batch merge tool picUnionV4.0
安装Robotics-toolbox-matlab, for 点云坐标系转换
WSTP初体验
The latest and most complete digital collection sales calendar-07.26
cesium 监听地图缩放或放大来控制地图上添加的内容是否展示
【YOLOv5训练错误】权重文件出错?