代码之家  ›  专栏  ›  技术社区  ›  Snowcrash

elasticsearch-“error”:“indexMissingException[[\u cluster]missing]”,

  •  0
  • Snowcrash  · 技术社区  · 6 年前

    本页:

    https://www.datadoghq.com/blog/elasticsearch-unassigned-shards/

    建议运行:

    curl -XGET localhost:9200/_cluster/allocation/explain?pretty

    但我得到:

    {
      "error" : "IndexMissingException[[_cluster] missing]",
      "status" : 404
    }
    

    为什么?

    1 回复  |  直到 6 年前
        1
  •  0
  •   ben5556    6 年前

    您运行的是哪个版本的ElasticSearch?

    您在ElasticSearch节点或Kibana节点上执行以下命令吗?应在运行ElasticSearch的节点上运行

    curl -XGET localhost:9200/_cluster/allocation/explain?pretty
    

    一种更简单的方法是从kibana控制台上的dev tools运行以下命令

    GET /_cluster/allocation/explain