# In my elasticsearch 5.4.2 the cluster start without 3 shards

**URL:** <https://discuss.elastic.co/t/in-my-elasticsearch-5-4-2-the-cluster-start-without-3-shards/98102>\
**Category:** Elasticsearch\
**Created:** [August 23, 2017, 2:58pm UTC](https://discuss.elastic.co/t/in-my-elasticsearch-5-4-2-the-cluster-start-without-3-shards/98102 "2017-08-23T14:58:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [August 23, 2017, 2:58pm UTC](https://discuss.elastic.co/t/in-my-elasticsearch-5-4-2-the-cluster-start-without-3-shards/98102/1 "2017-08-23T14:58:45Z")

</div>

how can do to change the es cluster status yellow to green.  
it up 4 hours.  
**"unassigned\_shards" : 3,**  
thanks.

---

<div class="post-metadata">

**Author:** ![A\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_b/32/17104_2.png) [@A\_B](https://discuss.elastic.co/u/A_B)\
**Post date:** [August 23, 2017, 3:11pm UTC](https://discuss.elastic.co/t/in-my-elasticsearch-5-4-2-the-cluster-start-without-3-shards/98102/2 "2017-08-23T15:11:50Z")

</div>

Are all nodes running?

I had a similar situation a few days ago with that same version of Elasticsearch. I could not find a way to assign the shards. In the end it turned out that some of my nodes were not running although I was sure that I had checked that before anything else.

If all nodes are running you can try one of **allocate\_replica** , **allocate\_stale\_primary** or **allocate\_empty\_primary** depending on what shards they are.

More info: [https://www.elastic.co/guide/en/elasticsearch/reference/5.4/cluster-reroute.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/cluster-reroute.html)

-AB

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [August 23, 2017, 3:15pm UTC](https://discuss.elastic.co/t/in-my-elasticsearch-5-4-2-the-cluster-start-without-3-shards/98102/3 "2017-08-23T15:15:52Z")

</div>

the all nodes is online ..  
how can do about it.

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [August 23, 2017, 3:19pm UTC](https://discuss.elastic.co/t/in-my-elasticsearch-5-4-2-the-cluster-start-without-3-shards/98102/4 "2017-08-23T15:19:33Z")

</div>

can give me how about the curl post file. json.

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [August 23, 2017, 3:54pm UTC](https://discuss.elastic.co/t/in-my-elasticsearch-5-4-2-the-cluster-start-without-3-shards/98102/5 "2017-08-23T15:54:48Z")

</div>

i use head close index and open it ,then the shards is going to ok.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 20, 2017, 3:54pm UTC](https://discuss.elastic.co/t/in-my-elasticsearch-5-4-2-the-cluster-start-without-3-shards/98102/6 "2017-09-20T15:54:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
