以下為您介紹即時同步資料至AnalyticDB for MySQL 3.0操作失敗的常見問題和解決方案。
資料來源網路聯通性測試失敗怎麼辦?
錯誤現象:添加資料來源時,網路連通性測試失敗。
處理方法:檢查網路連通性,詳情請參見網路連通方案。
即時任務,運行報錯:com.alibaba.otter.canal.parse.exception.PositionNotFoundException: can't find start position for XXX
- 報錯內容:資料同步任務執行時,即時任務運行失敗,錯誤提示為
com.alibaba.otter.canal.parse.exception.PositionNotFoundException: can't find start position for XXX。 - 可能原因:來來源資料源PolarDB沒有開啟binlog。
如何處理:PolarDB開啟Binlog。並進行至少一條資料的變更,同時切換Data Integration即時同步開始點位到目前時間。
即時任務,運行報錯:com.alibaba.otter.canal.parse.exception.CanalParseException: command : 'show master status' has an error! pls check. you need (at least one of) the SUPER,REPLICATION CLIENT privilege(s) for this operation
- 報錯內容:資料同步任務執行時,即時任務運行失敗,錯誤提示為
com.alibaba.otter.canal.parse.exception.CanalParseException: command : 'show master status' has an error! pls check. you need (at least one of) the SUPER,REPLICATION CLIENT privilege(s) for this operation。 - 可能原因:來來源資料源PolarDB沒有給進行資料同步的帳號開啟要求的權限,或對接的PolarDB資料庫不是主節點。
如何處理:參見建立和管理資料庫帳號的操作授予許可權,或者檢查PolarDB是否是主節點(讀寫庫),目前即時任務不支援從PolarDB備節點抓取資料。
即時任務,運行報錯:com.alibaba.datax.plugin.reader.mysqlbinlogreader.MysqlBinlogReaderException: The mysql server does not enable the binlog write function. Please enable the mysql binlog write function first.
- 報錯內容:資料同步任務執行時,即時任務運行失敗,錯誤提示為
com.alibaba.datax.plugin.reader.mysqlbinlogreader.MysqlBinlogReaderException: The mysql server does not enable the binlog write function. Please enable the mysql binlog write function first。 - 可能原因:來來源資料源PolarDB未開啟loose_polar_log_bin參數。
如何處理:需要開啟loose_polar_log_bin參數,詳細操作可參見設定叢集參數和節點參數。
即時任務,運行報錯:MongoDBReader$Task - operation exceeded time limitcom.mongodb.MongoExecutionTimeoutException: operation exceeded time limit.
- 報錯內容:資料同步任務時,即時任務運行失敗,錯誤提示為
MongoDBReader$Task - operation exceeded time limitcom.mongodb.MongoExecutionTimeoutException: operation exceeded time limit。 - 可能原因:全量拉取資料過大導致的。
- 如何處理:
- 加大並發。
- 減小BatcSsize。
- Reader端parameter參數中,增加
cursorTimeoutInMs配置,可以嘗試設定大些,例如3600000s。