canal/conf/example/instance.properties
文件中配置正则匹配多个库表。
复制代码
1
2
3
4
5
6#table regex canal.instance.filter.regex =155_155\..*,cms\.measurementvalues canal.mq.partition=0 canal.mq.topic= SKF canal.mq.partitionHash=155_155\..*:id,cms\.measurementvalues:MeasurementValueID
canal1.13之后可以使用 , (逗号)隔离匹配规则
上面含义为
匹配155_155库下所有表(需要转义所以需要两个)
cms库下的measurementvalues表
第一个根据id取hash 第二个正则根据MeasurementValueID取hash
最后
以上就是辛勤皮卡丘最近收集整理的关于canal正则配置读取多个库表的全部内容,更多相关canal正则配置读取多个库表内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复