I have an elasticsearch host (single) that has a few hundred unassigned 
shards.

curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
{
  "cluster_name" : "elasticsearch",
  "status" : "red",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 291,
  "active_shards" : 291,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 429,
  "number_of_pending_tasks" : 0
}


I'd love to fix this, I've tried to re-route them with this;

curl -XPOST 'localhost:9200/_cluster/reroute' -d '{"commands": [
    {"allocate": {
        "index": "logstash-2015.02.17", 
        "shard": 4, 
        "node": "FSLSO-LOGSERVER", 
        "allow_primary": true }
    }]
}'

I get the error, "Is not allowed, reason: [NO(shard cannot be allocated on 
same node [cGB66XJqTbeo9zstZTE2Eg] it already exists on".

Is there a way around this?

Is there a way to just delete the unassigned shards?


-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/7e7f6173-1606-48f6-be11-865c50525284%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to