This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
elasticsearch [2021/01/25 23:36] k2patel [Quick Commands] |
elasticsearch [2021/01/25 23:37] k2patel |
||
---|---|---|---|
Line 18: | Line 18: | ||
== Unassigned shard | timeout == | == Unassigned shard | timeout == | ||
- | = Try restarting = | + | **Try restarting** |
<code bash> | <code bash> | ||
curl -XPOST -k https://admin:<password>@<hostname>:9200/_cluster/reroute?retry_failed=true --CApath /etc/elasticsearch/root-ca-key.pem | curl -XPOST -k https://admin:<password>@<hostname>:9200/_cluster/reroute?retry_failed=true --CApath /etc/elasticsearch/root-ca-key.pem | ||
</code> | </code> | ||
- | = List indexes not assigned = | + | **List indexes not assigned** |
<code bash> | <code bash> | ||
curl -k --CApath /etc/elasticsearch/root-ca-key.pem -XGET https://admin:<password>@<hostname>:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason | grep -i UNASSIGNED | curl -k --CApath /etc/elasticsearch/root-ca-key.pem -XGET https://admin:<password>@<hostname>:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason | grep -i UNASSIGNED | ||
</code> | </code> | ||
- | = Detailed information on issue = | + | **Detailed information on issue** |
<code bash> | <code bash> | ||
curl -k --CApath /etc/elasticsearch/root-ca-key.pem -XGET https://admin:<password>@<hostname>:9200/_cluster/allocation/explain?pretty | curl -k --CApath /etc/elasticsearch/root-ca-key.pem -XGET https://admin:<password>@<hostname>:9200/_cluster/allocation/explain?pretty |