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

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

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

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

  • 错误现象:添加数据源Oracle时,网络连通性测试失败。
  • 如何处理:切换到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)