In a single node cluster set the replica count to 0.  The shards will clean 
themselves up automatically.  Don't forget to do regular backups as you 
have no redundancy.

On Friday, March 27, 2015 at 1:15:38 PM UTC-6, avery...@insecure-it.com 
wrote:
>
> 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/b9247b4d-bfe2-499d-9881-e299286547b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to