当前位置:网站首页>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
边栏推荐
- Link reading good article: What is the difference between hot encrypted storage and cold encrypted storage?
- 图片批量添加水印批量缩放图片到指定大小
- Pony语言学习(九)——泛型与模式匹配(终章)
- 网络安全5
- Chain Reading|The latest and most complete digital collection sales calendar-08.02
- 【论文笔记1】小样本分类
- 使用Tenserboard可视化深度学习训练过程
- R中设置图形参数--函数par()详解
- 先人一步,不再错过,链读APP即将上线!
- IDEA连接MySQL数据库并执行SQL查询操作
猜你喜欢
随机推荐
使用Google Protobuf 在 Matlab 中工作
pytorch框架学习(9)torchvision.transform
文章复现:SRCNN
Tkinter 入门之旅
kaggle小白必看:小白常见的2个错误解决方案
el-cascader级联选择器的子菜单双击两次才显示被选中的内容
cesium 添加点,移动点
ORACLE system table space SYSTEM is full and cannot expand table space problem solving process
在yolov5的网络结构中添加注意力机制模块
Qiskit 学习笔记2
Index Notes【】【】
【格式转换】将JPEG图片批量处理为jpg格式
ResNet的基础:残差块的原理
Linux database Oracle client installation, used for shell scripts to connect to the database with sqlplus
清览题库--C语言程序设计第五版编程题解析(1)
网络安全作业
view【】【】【】【】
Pony语言学习(九)——泛型与模式匹配(终章)
链读 | 最新最全的数字藏品发售日历-07.28
网络安全3