# 2 node cluster working

**URL:** <https://discuss.elastic.co/t/2-node-cluster-working/87997>\
**Category:** Elasticsearch\
**Created:** [June 1, 2017, 10:44pm UTC](https://discuss.elastic.co/t/2-node-cluster-working/87997 "2017-06-01T22:44:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ES\_SIL](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@ES\_SIL](https://discuss.elastic.co/u/ES_SIL)\
**Post date:** [June 1, 2017, 10:44pm UTC](https://discuss.elastic.co/t/2-node-cluster-working/87997/1 "2017-06-01T22:44:45Z")

</div>

I tried to form a simple 2 node cluster, with below configuration but doesn't seems to be working. Am i doing anything wrong ? Idea here is 1 node is already running and i want to bootstrap another node and join the cluster.

I am running ES5.4 on linux 4.1.12-32.2.3.el7uek.x86\_64 Red Hat Enterprise Linux Server release 7.1 (Maipo) with no firewall rules.

Node A(Bootstrapped first)  
network.host: [abc.com](http://abc.com)  
http.cors.enabled: true  
http.cors.allow-origin: "\*"  
[node.name](http://node.name): abc

NodeB(Bootstrapped later)  
network.host: [xyz.com](http://xyz.com)  
http.cors.enabled: true  
http.cors.allow-origin: "\*"  
discovery.zen.ping.unicast.hosts: ["[abc.com](http://abc.com)"]  
[node.name](http://node.name): xyz

I am getting below error when trying to bring up NodeB

[2017-06-01T14:07:29,121][INFO][o.e.d.z.ZenDiscovery] [xyz] failed to send join request to master [{abc}{JYyN-G5AQ5OoJ504NLX\_3Q}{kPgJP\_KBRnW0XudYULu6wA}{[abc.com](http://abc.com)}{10.240.3.106:9300}], reason [RemoteTransportException[[abc][10.240.3.106:9300][internal:discovery/zen/join]]; nested: ConnectTransportException[[xyz][10.196.14.151:9300] connect\_timeout[30s]]; nested: IOException[connection timed out: [xyz.com/10.196.14.151:9300](http://xyz.com/10.196.14.151:9300)]; ]

I have checked, both the machines can ping each other. Output of netstat -nlp|grep tcp shows 9200 and 9300 ports are listening

tcp6 0 0 10.240.3.106:9200 :::\* LISTEN 12568/java  
tcp6 0 0 10.240.3.106:9300 :::\* LISTEN 12568/java  
tcp6 0 0 :::22 :::\* LISTEN -  
tcp6 0 0 :::12406 :::\* LISTEN -

Am i missing something ?

Regards,  
SI

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 2, 2017, 5:48am UTC](https://discuss.elastic.co/t/2-node-cluster-working/87997/2 "2017-06-02T05:48:10Z")

</div>

> [@ES\_SIL](#):
>
> discovery.zen.ping.unicast.hosts: ["[abc.com](http://abc.com)"]

This need to contain a list of hostnames or IP addresses where the other Elasticsearch nodes are running.

---

<div class="post-metadata">

**Author:** ![ES\_SIL](https://avatars.discourse-cdn.com/v4/letter/e/b38774/32.png) [@ES\_SIL](https://discuss.elastic.co/u/ES_SIL)\
**Post date:** [June 2, 2017, 9:45pm UTC](https://discuss.elastic.co/t/2-node-cluster-working/87997/3 "2017-06-02T21:45:33Z")

</div>

Thanks for the reply. But that's what added(host name of nodeA). Problem got resolved, for some reason network was blocking and after restarting the machines it got resolved.

SI

---

<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:** [June 30, 2017, 9:49pm UTC](https://discuss.elastic.co/t/2-node-cluster-working/87997/4 "2017-06-30T21:49:31Z")

</div>

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