报错
this action would add [10] total shards, but this cluster currently has [2996]/[3000] maximum shards open;
报错原因是es默认的最大分片数不足,导致无法写入数据
解决
#调整aws es分片最大数量为20000
curl -XPUT -H "Content-Type:application/json" http://localhost:9092/_cluster/settings -d '{"persistent":{"cluster.max_shards_per_node":20000}}'
参考地址: https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/#example-request-1