# Cluster cannot find the other node

**URL:** <https://discuss.elastic.co/t/cluster-cannot-find-the-other-node/36191>\
**Category:** Elasticsearch\
**Created:** [December 2, 2015, 3:20pm UTC](https://discuss.elastic.co/t/cluster-cannot-find-the-other-node/36191 "2015-12-02T15:20:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arvid\_de\_Jong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arvid_de_jong/32/5566_2.png) [@Arvid\_de\_Jong](https://discuss.elastic.co/u/Arvid_de_Jong)\
**Post date:** [December 2, 2015, 3:20pm UTC](https://discuss.elastic.co/t/cluster-cannot-find-the-other-node/36191/1 "2015-12-02T15:20:42Z")

</div>

Hey!

So i'm trying to setup a cluster with 2 nodes in total. I uncommented the cluster.name: my-application on both nodes (i didn't change the cluster name, it's just for testing).

I've also uncommented the node.name. I tried it with unicast and multicast, both aren't working.

I read that i only have to change to cluster name and than the auto discovery completes the job, but it isn't and i have no idea why.

Thanks in advance!

Greetings,

Arvid

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 2, 2015, 3:35pm UTC](https://discuss.elastic.co/t/cluster-cannot-find-the-other-node/36191/2 "2015-12-02T15:35:12Z")

</div>

1.x ? 2.x ?

---

<div class="post-metadata">

**Author:** ![Arvid\_de\_Jong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arvid_de_jong/32/5566_2.png) [@Arvid\_de\_Jong](https://discuss.elastic.co/u/Arvid_de_Jong)\
**Post date:** [December 3, 2015, 11:00am UTC](https://discuss.elastic.co/t/cluster-cannot-find-the-other-node/36191/3 "2015-12-03T11:00:50Z")

</div>

Hi,

I use Elasticsearch 2.1.0. The only two things i have uncommented are in the elasticsearch.yml file are:

cluster.name: my-application

node.name: node-1

and for node 2 the name is node-2.

Greetings,

Arvid

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 3, 2015, 11:17am UTC](https://discuss.elastic.co/t/cluster-cannot-find-the-other-node/36191/4 "2015-12-03T11:17:43Z")

</div>

Change network.host and set the unicast list of hosts.

---

<div class="post-metadata">

**Author:** ![Arvid\_de\_Jong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arvid_de_jong/32/5566_2.png) [@Arvid\_de\_Jong](https://discuss.elastic.co/u/Arvid_de_Jong)\
**Post date:** [December 3, 2015, 12:09pm UTC](https://discuss.elastic.co/t/cluster-cannot-find-the-other-node/36191/5 "2015-12-03T12:09:40Z")

</div>

Thanks, but unfortunately it is still not working:(

So this is what I changed now in the config file:

**Node 1**  
network.host: 172.16.206.10

discovery.zen.ping.unicast.hosts: ["172.16.206.11"]

**Node 2**  
network.host: 172.16.206.11

discovery.zen.ping.unicast.hosts: ["172.16.206.10"]

After i added these changes it is says the following when i try to use curl -XGET '[http://localhost:9200/\_cat/health?v](http://localhost:9200/_cat/health?v)':

curl: (7) couldn't connect to host

Greetings,

Arvid

---

<div class="post-metadata">

**Author:** ![Arvid\_de\_Jong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arvid_de_jong/32/5566_2.png) [@Arvid\_de\_Jong](https://discuss.elastic.co/u/Arvid_de_Jong)\
**Post date:** [December 3, 2015, 12:19pm UTC](https://discuss.elastic.co/t/cluster-cannot-find-the-other-node/36191/6 "2015-12-03T12:19:48Z")

</div>

Aaah! It's working now!🙂 I changed the command to curl '172.16.206.10:9200/\_cat/health?v' instead of using the localhost. I can see 2 nodes now.

Thank you very much!

---

<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:** [July 5, 2017, 11:33pm UTC](https://discuss.elastic.co/t/cluster-cannot-find-the-other-node/36191/7 "2017-07-05T23:33:53Z")

</div>


