canal 配置为库间镜像schema DDL DML同步时手动ETL会报错

q35jwt9p  于 2个月前  发布在  其他
关注(0)|答案(1)|浏览(23)

Question

canal使用的最新版本1.1.7
阿里云mysql版本是 8.0.25
本地自建mysql版本是 8.0.33

/home/hlz/canal/adapter/conf/rdb 下mytest_user.yml 中配置为库间镜像schema DDL DML同步
dataSourceKey: defaultDS
destination: example
groupId: g1
outerAdapterKey: mysql1
concurrent: true
dbMapping:
mirrorDb: true
database: ams_xiexin

增量同步可以正常经行,但是手动ETL会报错,找不到对应表,是不是镜像库同步的方式,不支持手动ETL?

bakd9h0s

bakd9h0s1#

我个人测试的结果是,手动ETL需要按table执行,要写一个table级别的yml文件,描述同步哪张表,PK是什么。

相关问题