Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/melin/flink-cdc-catalog
https://github.com/melin/flink-cdc-catalog
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/melin/flink-cdc-catalog
- Owner: melin
- Created: 2022-11-24T14:24:58.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-07T03:04:35.000Z (over 1 year ago)
- Last Synced: 2024-08-02T14:06:46.894Z (3 months ago)
- Language: Java
- Size: 93.8 KB
- Stars: 9
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Flink CDC Catalog
目前已经支持 MySQL、Postgres、Oracle、SQLServer CDC Catalog
### Example
```SQL
-- 注册 Catalog
CREATE CATALOG mysql_cdc_catalog WITH(
'type' = 'flink_cdc',
'base-url' = 'jdbc:mysql://10.0.8.2:3306',
'default-database' = 'example',
'username' = 'root',
'password' = 'mysql2022#'
);SELECT * FROM mysql_cdc_catalog.example.user_city /*+ OPTIONS('scan.startup.mode'='latest-offset') */
```### 测试环境
```shell
# oracle
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=Sqlserver@2022" -e "MSSQL_PID=Standard" -e "MSSQL_AGENT_ENABLED=true" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest
```### 参考
1. [基于 Flink CDC 实现 Oracle 数据实时更新到 Kudu](https://cloud.tencent.com/developer/article/1949088)
2. [Viewing Tables Accessible by Current User](https://chartio.com/resources/tutorials/how-to-list-all-tables-in-oracle/#viewing-tables-accessible-by-current-user)