全部产品
Search
文档中心

大数据开发治理平台 DataWorks:常见问题

更新时间:Jan 15, 2024

以下为您介绍实时同步数据至AnalyticDB for MySQL 3.0操作失败的常见问题和解决方案。

PolarDB数据源网络联通性测试失败怎么办?

  • 错误现象:添加数据源PolarDB时,网络连通性测试失败。
  • 如何处理:切换到jdbc连接串,同时检查白名单配置,以及独享资源组的VPC配置。

MySQL数据源网络联通性测试失败怎么办?

  • 错误现象:添加数据源MySQL时,网络连通性测试失败。
  • 如何处理:切换到jdbc连接串,同时检查白名单配置,以及独享资源组的VPC配置。

实时任务,运行报错: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,详细操作可参见配置数据源(来源为PolarDB)。并进行至少一条数据的变更,同时切换数据集成实时同步开始点位到当前时间。

实时任务,运行报错: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是否是主节点(读写库),目前实时任务不支持从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参数,详细操作可参见配置数据源(来源为PolarDB)

实时任务,运行报错: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。