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