关于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 模板别名
生命不息,编码不止;人尚在人间,创新不可停,程序员共勉之~