kibana启动时报错:Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [999]/[1000] maximum shards open

解决方案:

curl -XPUT -H "Content-Type:application/json" -d '{"persistent":{"cluster":{"max_shards_per_node":10000}}}' 'http://es-host:9200/_cluster/settings'

上面的persistent意思是永久增加每个节点的分片数量味10000

假如es设置了用户密码认证,那么需要添加-u

curl -XPUT -H "Content-Type:application/json" -u 用户名 -d '{"persistent":{"cluster":{"max_shards_per_node":10000}}}' 'http://es-host:9200/_cluster/settings'
posted @ 2022-07-19 14:36  镇魂帆-张  阅读(750)  评论(0编辑  收藏  举报