最新搞同步的時候出現了各種問題。
1.could not find first log file name in binary ...
2. can not find start position for canal
3.
出現上述問題。一般是mysql bin-log被清除了或者binlog定位不準確
處理辦法
1.清除pipline的定位點 刪除position.
2.查看主數據庫的binlog信息
(1) 主數據庫 show master status;
(2) 從數據庫操作
1 slave stop;
2 CHANGE MASTER TO MASTER_HOST = '主數據庫ip', MASTER_USER = '用戶', MASTER_PASSWORD = '密碼', MASTER_LOG_FILE='mysql-bin.000058', MASTER_LOG_POS=43663710;
3.slave start;
4. 這個時候命令 show slave status \G 能看到Master_Log_File 正確了
5 查看從數據庫的binlog信息
show master status;
3 在Otter頁面的Canal管理裏面。勾選自定義設置的位點信息
這樣下來定位信息應該就沒有問題啦。
啓動channel測試下。正常運行