mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
Updated Sync ES (markdown)
@@ -24,7 +24,9 @@ canal.conf:
|
||||
groups:
|
||||
- groupId: g1
|
||||
outerAdapters:
|
||||
- name: es
|
||||
-
|
||||
key: exampleKey
|
||||
name: es
|
||||
hosts: 127.0.0.1:9300 # es 集群地址, 逗号分隔
|
||||
properties:
|
||||
mode: transport # or rest # 可指定transport模式或者rest模式
|
||||
@@ -36,6 +38,7 @@ adapter将会自动加载 conf/es 下的所有.yml结尾的配置文件
|
||||
修改 conf/es/mytest_user.yml文件:
|
||||
```
|
||||
dataSourceKey: defaultDS # 源数据源的key, 对应上面配置的srcDataSources中的值
|
||||
outerAdapterKey: exampleKey #对应application.yml中es配置的key
|
||||
destination: example # cannal的instance或者MQ的topic
|
||||
groupId: # 对应MQ模式下的groupId, 只会同步对应groupId的数据
|
||||
esMapping:
|
||||
|
||||
Reference in New Issue
Block a user