I went through this link... https://t37.net/how-to-fix-your-elasticsearch-cluster-stuck-in-initializing-shards-mode.html
The primary shards are started: ubuntu@graylog:~$ curl -XGET http://localhost:9200/_cat/shards graylog_1 1 p STARTED 4999005 947.2mb iphere Atum graylog_1 1 r UNASSIGNED graylog_1 3 p STARTED 5001856 944.5mb iphere Atum graylog_1 3 r UNASSIGNED graylog_1 2 p STARTED 4998313 944.6mb iphere Atum graylog_1 2 r UNASSIGNED graylog_1 0 p STARTED 5001136 945.7mb iphere Atum graylog_1 0 r UNASSIGNED graylog_0 1 p STARTED 4996677 925mb iphere Atum graylog_0 1 r UNASSIGNED graylog_0 3 p STARTED 4998165 925.5mb iphere Atum graylog_0 3 r UNASSIGNED graylog_0 2 p STARTED 5001938 925.7mb iphere Atum graylog_0 2 r UNASSIGNED graylog_0 0 p STARTED 5003375 925.6mb iphere Atum graylog_0 0 r UNASSIGNED graylog_2 1 p STARTED 4339770 821mb iphere Atum graylog_2 1 r UNASSIGNED graylog_2 3 p STARTED 4339805 816.1mb iphere Atum graylog_2 3 r UNASSIGNED graylog_2 2 p STARTED 4338763 817.7mb iphere Atum graylog_2 2 r UNASSIGNED graylog_2 0 p STARTED 4339718 815.4mb iphere Atum graylog_2 0 r UNASSIGNED ubuntu@graylog:~$ I tried this script: #!/bin/bash for shard in $(curl -XGET http://localhost:9200/_cat/shards | grep UNASSIGNED | awk '{print $2}'); do curl -XPOST 'localhost:9200/_cluster/reroute' -d '{ "commands" : [ { "allocate" : { "index" : "graylog_0", "shard" : $shard, "node" : "Atum", "allow_primary" : true } } ] }' sleep 5 done And get this error: ubuntu@graylog:~$ ./shards_allocate.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1440 100 1440 0 0 260 0 0:00:05 0:00:05 --:--:-- 358 {"error":{"root_cause":[{"type":"json_parse_exception","reason":"Unrecognized token '$shard': was expecting ('true', 'false' or 'null')\n at [Source: org.elasticsearch.transport.netty.ChannelBufferStreamInput@8227be3; line: 5, column: 28]"}],"type":"json_parse_exception","reason":"Unrecognized token '$shard': was expecting ('true', 'false' or 'null')\n at [Source: org.elasticsearch.transport.netty.ChannelBufferStreamInput@8227be3; line: 5, column: 28]"},"status":500}^C ubuntu@graylog:~$ What am I missing? Thanks On Thursday, August 25, 2016 at 12:45:57 PM UTC-4, Obie wrote: > > Hello, > > I'm running the VMware OVF and the root partition filled. I increased it > and all services start properly, but now all Elasticsearch shards are > unassigned. > > Elasticsearch cluster is yellow. Shards: 12 active, 0 initializing, 0 > relocating, 12 unassigned, What does this mean? > <http://docs.graylog.org/en/2.0/pages/configuring_es.html#cluster-status-explained> > > I read a post about deleting the alias deflector target but am not sure > how to do this, nor am I sure if this is the recommended fix. > > Any guidance? > > Thanks > -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/f7dc1ccc-edaa-4cf2-b8a8-711cfd81f0d9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
