mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
Updated ClientAdapter (markdown)
@@ -109,7 +109,7 @@ bin/startup.sh
|
||||
```
|
||||
|
||||
### 3.2 adapter管理REST接口
|
||||
#### 3.2.1 查询所有订阅同步的canal destination或MQ topic
|
||||
#### 3.2.1 查询所有订阅同步的canal instance或MQ topic
|
||||
```
|
||||
curl http://127.0.0.1:8081/destinations
|
||||
```
|
||||
@@ -117,14 +117,14 @@ curl http://127.0.0.1:8081/destinations
|
||||
```
|
||||
curl http://127.0.0.1:8081/syncSwitch/example/off -X PUT
|
||||
```
|
||||
针对 example 这个canal destination/MQ topic 进行开关操作. off代表关闭, 该destination/topic下的同步将阻塞或者断开连接不再接收数据, on代表开启
|
||||
针对 example 这个canal instance/MQ topic 进行开关操作. off代表关闭, instance/topic下的同步将阻塞或者断开连接不再接收数据, on代表开启
|
||||
|
||||
注: 如果在配置文件中配置了 zookeeperHosts 项, 则会使用分布式锁来控制HA中的数据同步开关, 如果是单机模式则使用本地锁来控制开关
|
||||
#### 3.2.3 数据同步开关状态
|
||||
```
|
||||
curl http://127.0.0.1:8081/syncSwitch/example
|
||||
```
|
||||
查看指定 canal destination/MQ topic 的数据同步开关状态
|
||||
查看指定 canal instance/MQ topic 的数据同步开关状态
|
||||
#### 3.2.4 手动ETL
|
||||
```
|
||||
curl http://127.0.0.1:8081/etl/hbase/mytest_person2.yml -X POST -d "params=2018-10-21 00:00:00"
|
||||
|
||||
Reference in New Issue
Block a user