解决:(永久性解决)
elasticsearch7版本以上的,默认只允许1000个分片,因为集群分片数不足引起的
下面命令给他扩容到10000 问题就解决了
curl --user elc:password -XPUT -H "Content-Type:application/json" -d '{"transient":{"cluster":{"max_shards_per_node":10000}}}' 'http://19.16.48.51:9200/_cluster/settings'
#elc(es用户):password(#es密码)