关于es模板索引的使用

在记一个es的错误:

org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest: Found unrecoverable error [172.16.12.31:9200] returned Bad Request(400) - Rejecting mapping update to [tsgl_terminal_exhaust_rawdata_20210119] as the final mapping would have more than 1 type: [tsgl_terminal_exhaust, tsgl_terminal_exhaust_rawdata]; Bailing out..

 

 

 异常如图所示,意思是一个索引匹配到两个模板,冲突了。此时要执行下面过程

删除模板:

@_template模板

@template_tsgl_terminal_exhaust_rawdata 模板别名

 

posted @ 2021-01-18 15:57  帅东我不帅  阅读(525)  评论(0编辑  收藏  举报