本页:
https://www.datadoghq.com/blog/elasticsearch-unassigned-shards/
建议运行:
curl -XGET localhost:9200/_cluster/allocation/explain?pretty
但我得到:
{ "error" : "IndexMissingException[[_cluster] missing]", "status" : 404 }
为什么?
您运行的是哪个版本的ElasticSearch?
您在ElasticSearch节点或Kibana节点上执行以下命令吗?应在运行ElasticSearch的节点上运行
一种更简单的方法是从kibana控制台上的dev tools运行以下命令
GET /_cluster/allocation/explain