PiflowX组件-PostgresCdc

2024-01-22 06:12
文章标签 组件 piflowx postgrescdc

本文主要是介绍PiflowX组件-PostgresCdc,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

PostgresCdc组件

组件说明

Postgres CDC连接器允许从PostgreSQL数据库读取快照数据和增量数据。

计算引擎

flink

组件分组

cdc

端口

Inport:默认端口

outport:默认端口

组件属性

名称展示名称默认值允许值是否必填描述例子
hostnameHostname“”PostgreSQL数据库服务器的IP地址或主机名。127.0.0.1
usernameUsername“”连接到PostgreSQL数据库服务器时要使用的用户名。root
passwordPassword“”连接PostgreSQL数据库服务器时使用的密码。123456
databaseNameDatabaseName“”要监视的PostgreSQL服务器的数据库名称。test
schemaNameSchema“”要监视的PostgreSQL数据库的Schema。public
tableNameTableName“”"需要监视的PostgreSQL数据库的表名。test
portPort5432PostgreSQL数据库服务器的整数端口号。5432
slotNameSlotName“”The name of the PostgreSQL logical decoding slot that was created for streaming changes from a particular plug-in for a particular database/schema. The server uses this slot to stream events to the connector that you are configuring.
Slot names must conform to PostgreSQL replication slot naming rules, which state: “Each replication slot has a name, which can contain lower-case letters, numbers, and the underscore character.”
tableDefinitionTableDefinition“”Flink table定义。
propertiesPROPERTIES“”连接器其他配置。

PostgresCdc示例配置

{"flow":{"name":"pgcdc","uuid":"273553c2ece043c29fba179df6826c5a","paths":[{"inport":"","from":"products","to":"SQLQuery","outport":""},{"inport":"","from":"orders","to":"SQLQuery","outport":""},{"inport":"","from":"shipments","to":"SQLQuery","outport":""},{"inport":"","from":"SQLQuery","to":"ShowChangeLogData","outport":""}],"engineType":"flink","stops":[{"name":"shipments","bundle":"cn.piflow.bundle.flink.cdc.postgres.PostgresCdc","uuid":"13ac002a8a4d404e8dda77c9a1d8360f","properties":{"hostname":"192.168.186.102","username":"postgres","port":"5432","properties":{},"schemaName":"public","tableName":"shipments","tableDefinition":{"tableBaseInfo":{"ifNotExists":true,"registerTableName":"shipments"},"physicalColumnDefinition":[{"columnName":"shipment_id","columnType":"INT","primaryKey":true},{"columnName":"order_id","columnType":"INT"},{"columnName":"origin","columnType":"STRING"},{"columnName":"destination","columnType":"STRING"},{"columnName":"is_arrived","columnType":"BOOLEAN"}],"asSelectStatement":{},"likeStatement":{}},"databaseName":"postgres","slotName":"flink","password":"postgres"},"customizedProperties":{}},{"name":"SQLQuery","bundle":"cn.piflow.bundle.flink.common.SQLQuery","uuid":"a5afa1368e1e4e348950bb2eda2011a8","properties":{"viewName":"temp","sql":"SELECT\n  o.*,\n  p.name,\n  p.description,\n  s.shipment_id,\n  s.origin,\n  s.destination,\n  s.is_arrived\nFROM\n  orders AS o\n  LEFT JOIN products AS p ON o.product_id = p.id\n  LEFT JOIN shipments AS s ON o.order_id = s.order_id"},"customizedProperties":{}},{"name":"ShowChangeLogData","bundle":"cn.piflow.bundle.flink.common.ShowChangeLogData","uuid":"c6604e600aa645d29264f4be5ce4e2eb","properties":{"showNumber":"10"},"customizedProperties":{}},{"name":"products","bundle":"cn.piflow.bundle.flink.cdc.mysql.MysqlCdc","uuid":"ab91c42f26cb4e119e34830178611293","properties":{"hostname":"192.168.186.102","username":"root","serverId":"5400","port":"3306","properties":{"server-time-zone":"UTC"},"tableName":"products","tableDefinition":{"tableBaseInfo":{"registerTableName":"products"},"physicalColumnDefinition":[{"columnName":"id","columnType":"INT","primaryKey":true},{"columnName":"name","columnType":"STRING"},{"columnName":"description","columnType":"STRING"}],"asSelectStatement":{},"likeStatement":{}},"databaseName":"mydb","password":"123456"},"customizedProperties":{}},{"name":"orders","bundle":"cn.piflow.bundle.flink.cdc.mysql.MysqlCdc","uuid":"4ffa58f3db6144739f6b797fd3839025","properties":{"hostname":"192.168.186.102","username":"root","serverId":"5410","port":"3306","properties":{"scan.incremental.snapshot.chunk.key-column":"order_id","server-time-zone":"UTC"},"tableName":"orders","tableDefinition":{"tableBaseInfo":{"ifNotExists":true,"registerTableName":"orders"},"physicalColumnDefinition":[{"columnName":"order_id","columnType":"INT"},{"columnName":"order_date","columnType":"TIMESTAMP","length":0},{"columnName":"customer_name","columnType":"STRING"},{"columnName":"price","columnType":"DECIMAL","precision":10,"scale":5},{"columnName":"product_id","columnType":"INT"},{"columnName":"order_status","columnType":"BOOLEAN"}],"asSelectStatement":{},"likeStatement":{}},"databaseName":"mydb","password":"123456"},"customizedProperties":{}}]}
}
示例说明

本示例演示了基于PiflowX构建MySQL和Postgres的Streaming ETL。

演示DEMO

基于 PiflowX构建 MySQL 和 Postgres 的 Streaming ETL

这篇关于PiflowX组件-PostgresCdc的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/632081

相关文章

四种Flutter子页面向父组件传递数据的方法介绍

《四种Flutter子页面向父组件传递数据的方法介绍》在Flutter中,如果父组件需要调用子组件的方法,可以通过常用的四种方式实现,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录方法 1:使用 GlobalKey 和 State 调用子组件方法方法 2:通过回调函数(Callb

Vue项目中Element UI组件未注册的问题原因及解决方法

《Vue项目中ElementUI组件未注册的问题原因及解决方法》在Vue项目中使用ElementUI组件库时,开发者可能会遇到一些常见问题,例如组件未正确注册导致的警告或错误,本文将详细探讨这些问题... 目录引言一、问题背景1.1 错误信息分析1.2 问题原因二、解决方法2.1 全局引入 Element

vue解决子组件样式覆盖问题scoped deep

《vue解决子组件样式覆盖问题scopeddeep》文章主要介绍了在Vue项目中处理全局样式和局部样式的方法,包括使用scoped属性和深度选择器(/deep/)来覆盖子组件的样式,作者建议所有组件... 目录前言scoped分析deep分析使用总结所有组件必须加scoped父组件覆盖子组件使用deep前言

基于Qt Qml实现时间轴组件

《基于QtQml实现时间轴组件》时间轴组件是现代用户界面中常见的元素,用于按时间顺序展示事件,本文主要为大家详细介绍了如何使用Qml实现一个简单的时间轴组件,需要的可以参考下... 目录写在前面效果图组件概述实现细节1. 组件结构2. 属性定义3. 数据模型4. 事件项的添加和排序5. 事件项的渲染如何使用

JS常用组件收集

收集了一些平时遇到的前端比较优秀的组件,方便以后开发的时候查找!!! 函数工具: Lodash 页面固定: stickUp、jQuery.Pin 轮播: unslider、swiper 开关: switch 复选框: icheck 气泡: grumble 隐藏元素: Headroom

如何在页面调用utility bar并传递参数至lwc组件

1.在app的utility item中添加lwc组件: 2.调用utility bar api的方式有两种: 方法一,通过lwc调用: import {LightningElement,api ,wire } from 'lwc';import { publish, MessageContext } from 'lightning/messageService';import Ca

vue2 组件通信

props + emits props:用于接收父组件传递给子组件的数据。可以定义期望从父组件接收的数据结构和类型。‘子组件不可更改该数据’emits:用于定义组件可以向父组件发出的事件。这允许父组件监听子组件的事件并作出响应。(比如数据更新) props检查属性 属性名类型描述默认值typeFunction指定 prop 应该是什么类型,如 String, Number, Boolean,

kubelet组件的启动流程源码分析

概述 摘要: 本文将总结kubelet的作用以及原理,在有一定基础认识的前提下,通过阅读kubelet源码,对kubelet组件的启动流程进行分析。 正文 kubelet的作用 这里对kubelet的作用做一个简单总结。 节点管理 节点的注册 节点状态更新 容器管理(pod生命周期管理) 监听apiserver的容器事件 容器的创建、删除(CRI) 容器的网络的创建与删除

火语言RPA流程组件介绍--浏览网页

🚩【组件功能】:浏览器打开指定网址或本地html文件 配置预览 配置说明 网址URL 支持T或# 默认FLOW输入项 输入需要打开的网址URL 超时时间 支持T或# 打开网页超时时间 执行后后等待时间(ms) 支持T或# 当前组件执行完成后继续等待的时间 UserAgent 支持T或# User Agent中文名为用户代理,简称 UA,它是一个特殊字符串头,使得服务器

vue 父组件调用子组件的方法报错,“TypeError: Cannot read property ‘subDialogRef‘ of undefined“

vue 父组件调用子组件的方法报错,“TypeError: Cannot read property ‘subDialogRef’ of undefined” 最近用vue做的一个界面,引入了一个子组件,在父组件中调用子组件的方法时,报错提示: [Vue warn]: Error in v-on handler: “TypeError: Cannot read property ‘methods