本篇所有的错误都是在可以单独启动某个节点之后的错误(比如集群错误等)。启动前的错误请去
ES-安装部署篇
。
所有的ES错误只截取了部分主要内容。
错误内容:[can't add node 地址1, found existing node {kindo22-0}{V5FXaGKIRT2VD7zPIKS_Mg}{damKSDW-SFuJ5YUDX9jZ2Q}{192.168.1.22}{192.168.1.22:9300} with the same id but is a different node instance]; ]
解决:复制的节点信息。需要将data删除掉。
错误内容:[No route to host]
解决:因为防火墙没有设置9200和9300端口。
错误内容:failed to put mappings on indices [[[object/B6PTq6xCSQu7Ft9d8hcqFg]]], type [esObject] org.elasticsearch.index.mapper.MapperParsingException: No type specified for field [entryId]
解决:未解决。
被动解决:问题索引是用spring data elasticsearch来创建的,删掉!手动模板创建索引。
错误现象:集群状态一直为red,后台3个服务器都良好。或者 错误内容为scheduling reroute for delayed shards in [59.5s] (11 delayed shards)
。
解决:这是你的主分片丢失。需要删除/data。
在聚合ES时,比如求和,对于非数字类型,需要添加"fielddata":"true"
属性。
网友评论