发现一个问题,就是在ES2.1.1中,同一个index的不同type中写入@timestamp这个字段的时候会引起如家异常:
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Mapper for [@timestamp] conflicts with existing mapping in other types:\n[mapper [@timestamp] is used by multiple types. Set update_all_types to true to update [format] across all types.]"}],"type":"illegal_argument_exception","reason":"Mapper for [@timestamp] conflicts with existing mapping in other types:\n[mapper [@timestamp] is used by multiple types. Set update_all_types to true to update [format] across all types.]"},"status":400}[
说是和已存在的字段发生冲突,大家有遇到这样的问题吗,是怎么解决的呀,分享一下,感激不尽。
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Mapper for [@timestamp] conflicts with existing mapping in other types:\n[mapper [@timestamp] is used by multiple types. Set update_all_types to true to update [format] across all types.]"}],"type":"illegal_argument_exception","reason":"Mapper for [@timestamp] conflicts with existing mapping in other types:\n[mapper [@timestamp] is used by multiple types. Set update_all_types to true to update [format] across all types.]"},"status":400}[
说是和已存在的字段发生冲突,大家有遇到这样的问题吗,是怎么解决的呀,分享一下,感激不尽。
4 个回复
sp42 - Java,Js
赞同来自: sky7644 、Frank007
medcl - 今晚打老虎。
赞同来自:
zttech
赞同来自:
zttech
赞同来自:
仔细检查一遍所有的type,"@timestamp"个类型应该不止一个