FlinkCDC系列:通过skipped.operations参数选择性处理新增、更新、删除数据

在flinkCDC源数据配置,通过debezium.skipped.operations参数控制,配置需要过滤的 oplog 操作。操作包括 c 表示插入,u 表示更新,d 表示删除。默认情况下,不跳过任何操作,以逗号分隔。配置多个操作,需要英文逗号分隔。

官网说明地址:Debezium connector for MySQL :: Debezium Documentation

使用实例如下:

REATE TABLE IF NOT EXISTS `test_source` (

`testid` varchar ( 32 ),

`name` int,

`addre` varchar ( 100 ),

`stat` int,

`updateTime` TIMESTAMP,

PRIMARY KEY ( `testid` ) NOT ENFORCED

) WITH (

'connector' = 'mysql-cdc',

'hostname' = '*******',

'port' = '**',

'username' = '***',

'password'='********',

'database-name' = 'dbname',

'scan.startup.mode' = 'initial',

'debezium.skipped.operations'='d,c',

'table-name' = 'tablename'

);

相关推荐
Bat U40 分钟前
MySQL数据库|建库&建表&数据类型
数据库·mysql
2401_884662101 小时前
计算机的基本概念
mysql
yhole1 小时前
MySQL无法连接到本地localhost的解决办法2024.11.8
数据库·mysql·adb
jinanmichael1 小时前
mysql用户名怎么看
数据库·mysql
guslegend1 小时前
MySQL高手第一章
mysql·adb
计算机学姐2 小时前
基于SpringBoot的校园二手书籍交易系统【个性化推荐+数据可视化统计+我买到的+我卖出的】
vue.js·spring boot·后端·mysql·信息可视化·intellij-idea·mybatis
闭关苦炼内功2 小时前
Win10 安装 MySQL5.7.36 数据库记录
数据库·windows·mysql
栀椩2 小时前
MySQL数据库自动备份方法
数据库·mysql
2401_891655813 小时前
MySQL安全加固十大硬核操作技术大纲
数据库·mysql·安全
dovens3 小时前
从MySQL迁移到PostgreSQL的完整指南
数据库·mysql·postgresql