Help Center> Cloud Search Service> Troubleshooting> Functions> A Node in an Elasticsearch Cluster Has No Shards Allocated
Updated on 2023-10-10 GMT+08:00

A Node in an Elasticsearch Cluster Has No Shards Allocated

Solution

  1. Run the GET _cluster/allocation/explain?pretty command to view the unallocated shards.

  2. On the console, choose cerebro > more > cluster settings, enter allocation.enable in the upper left corner, and change none to all.

  3. If no cerebro is displayed, run the following command:
    curl -X PUT "http://Intranet_IP:9200/_cluster/settings" -H 'Content-Type: application/json' -d'{"persistent":{"cluster.routing.allocation.enable": "all"}}'