Unassigned shards still not working


(Trekr5) #1

Hi,

I wondering if someone could please help.

These are the results of an ES cluster health call:

{
  "cluster_name" : "ae-logstash_esearch",
  "status" : "red",
  "timed_out" : false,
  "number_of_nodes" : 2,
   "number_of_data_nodes" : 2,
   "active_primary_shards" : 483,
   "active_shards" : 966,
   "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 12
}

When I have tried to force these remaining 12 unassigned shards onto a data node with a call to /cluster/reroute endpoint:

curl -XPOST 'localhost:9200/_cluster/reroute?explain&pretty' -d '{
  "commands" : [ {
    "allocate" : {
     "index" : "logstash-2015.09.03",
      "shard" : 0,
        "node" : "ip-xxxxxxxx",
         "allow_primary" : true
        }
      }
   ]
 }'

I get a response with the following as part of it:-

   }, {
     "decider" : "filter",
     "decision" : "NO",
      "explanation" : "node does not match index required filters [*:\" \"]"
   }, {

I've tried to do a cluster.routing.allocation.require.* : "" request but this still hasn't kickstarted the allocation of shards process again.

Can anyone tell me what else I should try?


(David Pilato) #2

Is your elasticsearch node name ip-xxxxxxxx?


(Trekr5) #3

sorry,

no, i put crosses in place of the actual node name.


(system) #4