# Elasticsearch cluster issue

**URL:** <https://discuss.elastic.co/t/elasticsearch-cluster-issue/298882>\
**Category:** Elasticsearch\
**Created:** [March 5, 2022, 1:08am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-issue/298882 "2022-03-05T01:08:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [March 5, 2022, 1:08am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-issue/298882/1 "2022-03-05T01:08:17Z")

</div>

I had one node. I didnt delete data in first node. Then I deleted data from second and third nodes, try to add to first node cluster. But it created two clusters.  
One with first node alone  
Another with second and third node

Then again I deleted data folder from second node and restarted, it joined first node

I tried to do same for third node, so that it will join first-second node cluster. But it failed with below

[2022-03-05T06:31:15,463][WARN][o.e.c.c.ClusterFormationFailureHelper] [node-1] master not discovered or elected yet, an election requires 2 nodes with ids [P8UZyNN6QemAZx30yItePw, n33C65BCT8GZOftT3NJbPw], have discovered [{node-1}{n33C65BCT8GZOftT3NJbPw}{-IMxzqJjS5eob0cQ8TSwFQ}{ **.**. **.** }{ **.**. **.** :9300}{cdhilmrstw}{ml.machine\_memory=3973865472, xpack.installed=true, transform.node=true, ml.max\_open\_jobs=20}, {node-3}{P8UZyNN6QemAZx30yItePw}{hry-dnyWTwWd2pmstfPl-Q}{ **.**. **.** }{ **.**. **.** :9300}{cdhilmrstw}{ml.machine\_memory=3878227968, ml.max\_open\_jobs=20, xpack.installed=true, transform.node=true}] which is a quorum; discovery will continue using [**.**. **.** :9300, **.**. **.** :9300] from hosts providers and [{node-1}{n33C65BCT8GZOftT3NJbPw}{-IMxzqJjS5eob0cQ8TSwFQ}{ **.**. **.** }{ **.**. **.** :9300}{cdhilmrstw}{ml.machine\_memory=3973865472, xpack.installed=true, transform.node=true, ml.max\_open\_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0

I deleted data folder for third node, but its not coming up.

Can someone please advice? Im on ELK 7.10.2

---

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [March 10, 2022, 8:36am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-issue/298882/2 "2022-03-10T08:36:25Z")

</div>

Can someone please reply?

---

<div class="post-metadata">

**Author:** ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)\
**Post date:** [March 10, 2022, 8:50am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-issue/298882/3 "2022-03-10T08:50:33Z")

</div>

Configure these two parameters `discovery.seed_hosts` and `cluster.initial_master_nodes` both contain your three node，delete your data path , then start one by one  
here is the doc：

> **[Discovery and cluster formation settings | Elasticsearch Guide \[7.10\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/modules-discovery-settings.html)**

---

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [March 10, 2022, 8:55am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-issue/298882/4 "2022-03-10T08:55:20Z")

</div>

I have these entries added already. Im trying to add a new node to existing cluster. Is that supported? Will that work?

---

<div class="post-metadata">

**Author:** ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)\
**Post date:** [March 10, 2022, 8:57am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-issue/298882/5 "2022-03-10T08:57:18Z")

</div>

a new node，you can set `cluster.initial_master_nodes` null

---

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [March 10, 2022, 9:04am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-issue/298882/6 "2022-03-10T09:04:37Z")

</div>

Thank you. But that scenario is supported in 7.10 correct? Adding a new node to existing cluster

---

<div class="post-metadata">

**Author:** ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)\
**Post date:** [March 10, 2022, 9:08am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-issue/298882/7 "2022-03-10T09:08:05Z")

</div>

Any version supports adding new nodes

---

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [March 10, 2022, 9:11am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-issue/298882/9 "2022-03-10T09:11:04Z")

</div>

> [@casterQ](#):
>
> `cluster.initial_master_nodes`

So when ever adding new node, I should as `cluster.initial_master_nodes` set to null in all the new nodes. Then it will get added. Am I correct?

---

<div class="post-metadata">

**Author:** ![casterQ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/casterq/32/93257_2.png) [@casterQ](https://discuss.elastic.co/u/casterQ)\
**Post date:** [March 10, 2022, 9:20am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-issue/298882/10 "2022-03-10T09:20:31Z")

</div>

yes, and:

- set `discovery.seed_hosts` to master-eligible nodes
- `cluster.name` must be consistent
- `node.name` must be different

---

<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:** [April 7, 2022, 9:21am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-issue/298882/11 "2022-04-07T09:21:21Z")

</div>

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