关于mapping 错误的 index 总提示 Not found the mapping info of index: test

Not found the mapping info of index: test

原因:

在canal mapping 的时候 会

adpter 文件 的配置的时候

esMapping:
_index: test
_type: doc
_id: _id
upsert: true
sql: “select a.id as _id,a.name,a.address from test a”
commitBatch: 3000

与es 里面的名称一定要一直 不能会报 错误:
Not found the mapping info of index: test

{
“mappings”:{
"_doc ":{
“properties”:{
“name”:{
“type”:“text”
},
“address”:{
“type”:“text”
}
}
}
}
}

4.总结
1.全量更新不能实现,但是增删改都是可以的。
2.一定要提前创建好索引。
3.es配置的是tcp端口,比如默认的9300

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值