# Two nodes cluster - can't detect each other

**URL:** https://discuss.elastic.co/t/two-nodes-cluster-cant-detect-each-other/219098
**Category:** Elasticsearch
**Created:** [February 13, 2020, 12:43am UTC](https://discuss.elastic.co/t/two-nodes-cluster-cant-detect-each-other/219098 "2020-02-13T00:43:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kuku\_blof](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kuku_blof/32/12886_2.png) [@kuku\_blof](https://discuss.elastic.co/u/kuku_blof)
#### Post date: [February 13, 2020, 12:43am UTC](https://discuss.elastic.co/t/two-nodes-cluster-cant-detect-each-other/219098/1 "2020-02-13T00:43:17Z")

</div>

Hello,  
I'm running a two nodes cluster on AWS (as EC2 instances, didn't use any community image, installed with RPM).  
the nodes are 10.90.20.100 and 10.90.20.101, both are reachable to each other in ports 9200 and 9300. Yet, upon restart, the log file doesn't show any indication for mutual discovery, and \_cat/nodes also shows that each formed its own cluster. I'm using version 7.5 , in version 6 this configuration worked perfectly. any idea where to look ?

> configuration node 1:

```
cluster.name: es-cluster
node.name: elasticsearch01
network.host: 10.90.20.100
discovery.seed_hosts: ["10.90.20.101"] #i tried all combinations , and listing both and what not
cluster.initial_master_nodes: ["elasticsearch01","elasticsearch02"] #also tried all combinations

```

> configuration node 2:

```
cluster.name: es-cluster
    node.name: elasticsearch02
    network.host: 10.90.20.101
    discovery.seed_hosts: ["10.90.20.100"] #i tried all combinations , and listing both and what not
    cluster.initial_master_nodes: ["elasticsearch01","elasticsearch02"] #also tried all combinations

```

---

<div class="post-metadata">

### Author: ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)
#### Post date: [February 13, 2020, 8:11am UTC](https://discuss.elastic.co/t/two-nodes-cluster-cant-detect-each-other/219098/2 "2020-02-13T08:11:30Z")

</div>

Version 6 had a bug which permitted you to form two distinct clusters and merge them together later, which risked data loss. It sounds like this is what you're trying to do. This bug is fixed in version 7 so you can no longer merge separate clusters together.

There is a [note in the docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-bootstrap-cluster.html#modules-discovery-bootstrap-cluster-joining) describing this problem, and the solution. Does that help you?

---

<div class="post-metadata">

### Author: ![kuku\_blof](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kuku_blof/32/12886_2.png) [@kuku\_blof](https://discuss.elastic.co/u/kuku_blof)
#### Post date: [February 13, 2020, 7:55pm UTC](https://discuss.elastic.co/t/two-nodes-cluster-cant-detect-each-other/219098/3 "2020-02-13T19:55:26Z")

</div>

thank you David, I was overlooking that last note on the bootstrapping page, apparently the AWS image I was using had a populated data folder, which apparently prevented it from joining a cluster.  
so deleting one node's data folder did the trick.

---

<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: [March 12, 2020, 7:55pm UTC](https://discuss.elastic.co/t/two-nodes-cluster-cant-detect-each-other/219098/4 "2020-03-12T19:55:33Z")

</div>

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