From b30c5db4c8c3a6565741472564f3630eb6b9734b Mon Sep 17 00:00:00 2001 From: rewerma Date: Thu, 12 Sep 2019 09:15:17 +0800 Subject: [PATCH] Updated Sync ES (markdown) --- Sync-ES.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sync-ES.md b/Sync-ES.md index 446b57e..797aca7 100644 --- a/Sync-ES.md +++ b/Sync-ES.md @@ -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: