diff --git a/work常用/中间件/seatunnel/MySql-CDC.md b/work常用/中间件/seatunnel/MySql-CDC.md index b5449ba..6609221 100644 --- a/work常用/中间件/seatunnel/MySql-CDC.md +++ b/work常用/中间件/seatunnel/MySql-CDC.md @@ -30,3 +30,23 @@ set global gtid_mode=ON; ``` ### 二、source配置 +```text +source { +  MySQL-CDC { +    base-url = "jdbc:mysql://172.31.51.244:3306/bjpt_v4_wlmq" +    username = "manager" +    password = "manager2!@#" +  database-names = ["bjpt_v4_wlmq"] +    table-names = ["bjpt_v4_wlmq.ryhcs_t_bqgl"] +    startup.mode = "initial" +  schema-changes.enabled = true +  server-id = "6500-7500" +  table-names-config = [ +      { +        table = "bjpt_v4_wlmq.ryhcs_t_bqgl" +        primaryKeys = ["ID"] +      } +    ] +  } +} +``` \ No newline at end of file diff --git a/本机环境/开发环境.md b/本机环境/开发环境.md index 913e6f4..6f549c4 100644 --- a/本机环境/开发环境.md +++ b/本机环境/开发环境.md @@ -173,3 +173,14 @@ $ docker-compose --profile all up -d cd E:\code\opensource\dify\docker docker compose up -d ``` + ++ seatunel 集群 +集群搭建 G:\docker\compose\seatunnel +```shell +docker-compose up -d +``` +提交配置 +```shell +docker run --name seatunnel_client --network seatunnel_seatunnel_network -e ST_DOCKER_MEMBER_LIST=172.16.0.2:5801 -v E:\\tmp\\st\\mysql_cdc_test_2.template:/opt/seatunnel/config/mysql_cdc_test_2.template --rm apache/seatunnel ./bin/seatunnel.sh -c config/mysql_cdc_test_2.template + +``` \ No newline at end of file