mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
Updated Sync ES (markdown)
@@ -26,7 +26,7 @@ canal.conf:
|
||||
outerAdapters:
|
||||
-
|
||||
key: exampleKey
|
||||
name: es
|
||||
name: es6 # or es7
|
||||
hosts: 127.0.0.1:9300 # es 集群地址, 逗号分隔
|
||||
properties:
|
||||
mode: transport # or rest # 可指定transport模式或者rest模式
|
||||
@@ -43,7 +43,7 @@ destination: example # cannal的instance或者MQ的topic
|
||||
groupId: # 对应MQ模式下的groupId, 只会同步对应groupId的数据
|
||||
esMapping:
|
||||
_index: mytest_user # es 的索引名称
|
||||
_type: _doc # es 的doc名称
|
||||
_type: _doc # es 的type名称, es7下无需配置此项
|
||||
_id: _id # es 的_id, 如果不配置该项必须配置下面的pk项_id则会由es自动分配
|
||||
# pk: id # 如果不需要_id, 则需要指定一个属性为主键属性
|
||||
# sql映射
|
||||
|
||||
Reference in New Issue
Block a user