查找ES报错过程

174 阅读1分钟

尝试手动分配失败后,更换思路。摆脱掉各种复杂的查询API,使用es为我们提供的一个Explain API,它会解释为什么分片没有分配,解决问题之前,先诊断诊断。

curl -uelastic:pwd -XGET "http://ip:9200/\_cluster/allocation/explain" -H"Content-Type:application/json" -d '{ "index": "B_2020-01-05", "shard": 0, "primary": true }' 

转载blog.csdn.net/qq\_2138343…