Updated Sync ES (markdown)

rewerma
2019-09-26 08:43:55 +08:00
parent 42585b41c8
commit 1a1dcf115a

@@ -26,7 +26,7 @@ canal.conf:
outerAdapters: outerAdapters:
- -
key: exampleKey key: exampleKey
name: es name: es6 # or es7
hosts: 127.0.0.1:9300 # es 集群地址, 逗号分隔 hosts: 127.0.0.1:9300 # es 集群地址, 逗号分隔
properties: properties:
mode: transport # or rest # 可指定transport模式或者rest模式 mode: transport # or rest # 可指定transport模式或者rest模式
@@ -43,7 +43,7 @@ destination: example # cannal的instance或者MQ的topic
groupId: # 对应MQ模式下的groupId, 只会同步对应groupId的数据 groupId: # 对应MQ模式下的groupId, 只会同步对应groupId的数据
esMapping: esMapping:
_index: mytest_user # es 的索引名称 _index: mytest_user # es 的索引名称
_type: _doc # es 的doc名称 _type: _doc # es 的type名称, es7下无需配置此项
_id: _id # es 的_id, 如果不配置该项必须配置下面的pk项_id则会由es自动分配 _id: _id # es 的_id, 如果不配置该项必须配置下面的pk项_id则会由es自动分配
# pk: id # 如果不需要_id, 则需要指定一个属性为主键属性 # pk: id # 如果不需要_id, 则需要指定一个属性为主键属性
# sql映射 # sql映射