查询destinations:
[root@canal1 ~]#
[root@canal1 ~]# curl http://canal1:8081/destinations
[{"destination":"example_rdb_db1","status":"on"}]
[root@canal1 ~]#
查询一个destination的开关状态
[root@canal1 ~]#
[root@canal1 ~]# curl http://canal1:8081/syncSwitch/example_rdb_db1
{"stauts":"on"}
[root@canal1 ~]#
手动运行全量ETL
[root@canal1 ~]#
[root@canal1 ~]#curl -X POST http://127.0.0.1:8089/etl/rdb/mysql2/mix_data.yml -d "params=60001;100000"
{"succeeded":true,"resultMessage":"导入RDB 数据:3 条"}
[root@canal1 ~]#
客户端增量数据同步开关
[root@canal1 ~]#
[root@canal1 ~]# curl http://canal1:8081/syncSwitch/example_rdb_db1/off -X PUT
{"code":20000,"message":"实例: example_rdb_db1 关闭同步成功"}
[root@canal1 ~]#
查看目标表的数据总量
[root@canal1 ~]#
[root@canal1 ~]# curl http://canal1:8081/count/rdb/postgres1/tb1_1.yml
{"count":3,"targetTable":"tb1_1"}
[root@canal1 ~]#
注意:本文归作者所有,未经作者允许,不得转载