elsatic 出现unassigned shards的手工修复方法

来源:互联网 发布:地域歧视 知乎 编辑:程序博客网 时间:2024/06/13 06:54
curl -XPOST'localhost:9200/_cluster/reroute'-d '{
    "commands": [ {
          "allocate": {
              "index": "logstash-ksmobile-2015.05",
              "shard": 0,
              "node": "0G0Gu4NNTTOtOi0LH_hdfg",
              "allow_primary": true
          }
        }
    ]
}'
0 0