es Failed: 1: this action would add [2] total shards, but this cluster currently has [1001]/[1000]

你用的7版本以上的elasticsearch吧,默认只允许1000个分片,问题是因为集群分片数不足引起的。
现在在elasticsearch.yml中定义

PUT /_cluster/settings
{
  "transient": {
    "cluster": {
      "max_shards_per_node":10000
    }
  }
}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章