# I have a problem connecting my 2 nodes with the same cluster

**URL:** <https://discuss.elastic.co/t/i-have-a-problem-connecting-my-2-nodes-with-the-same-cluster/42014>\
**Category:** Elasticsearch\
**Created:** [February 17, 2016, 11:19am UTC](https://discuss.elastic.co/t/i-have-a-problem-connecting-my-2-nodes-with-the-same-cluster/42014 "2016-02-17T11:19:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arianayay](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@arianayay](https://discuss.elastic.co/u/arianayay)\
**Post date:** [February 17, 2016, 11:19am UTC](https://discuss.elastic.co/t/i-have-a-problem-connecting-my-2-nodes-with-the-same-cluster/42014/1 "2016-02-17T11:19:23Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/2X/3/33dfdf4072c079f87828cf9fce53acaf9fc6e444.PNG)

What Host IP should I use to bind my 2 nodes with the same cluster.

Given this configuration:

Node1:  
cluster.name: sql  
node.name: engineering  
node.master: true  
node.data: true  
network.host: 127.0.0.3  
transport.tcp.port: 9300-9400  
http.port: 9200  
discovery.zen.ping.multicast.enabled: false  
discovery.zen.ping.unicast.hosts: ["127.0.0.3", "127.0.0.2"]  
index.number\_of\_shards: 2  
index.number\_of\_replicas: 1

Node2:  
cluster.name: sql  
node.name: team  
node.master: false  
node.data: true  
network.host: 192.168.0.1  
http.port: 9200  
transport.tcp.port: 9300-9400  
discovery.zen.ping.multicast.enabled: false  
discovery.zen.ping.unicast.hosts: ["127.0.0.3","192.168.0.1:9300"]  
index.number\_of\_shards: 2  
index.number\_of\_replicas: 1

---

<div class="post-metadata">

**Author:** ![arianayay](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@arianayay](https://discuss.elastic.co/u/arianayay)\
**Post date:** [February 17, 2016, 11:22am UTC](https://discuss.elastic.co/t/i-have-a-problem-connecting-my-2-nodes-with-the-same-cluster/42014/2 "2016-02-17T11:22:08Z")

</div>

node1 has this config too disregard the first post:  
discovery.zen.ping.unicast.hosts: ["127.0.0.3","192.168.0.1:9300"]

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 18, 2016, 6:16am UTC](https://discuss.elastic.co/t/i-have-a-problem-connecting-my-2-nodes-with-the-same-cluster/42014/3 "2016-02-18T06:16:34Z")

</div>

Let's keep it in [2 nodes with the same cluster but in configured in different machines](https://discuss.elastic.co/t/2-nodes-with-the-same-cluster-but-in-configured-in-different-machines/42004/8)

---

<div class="post-metadata">

**Author:** ![chalapathi](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@chalapathi](https://discuss.elastic.co/u/chalapathi)\
**Post date:** [February 19, 2016, 10:00am UTC](https://discuss.elastic.co/t/i-have-a-problem-connecting-my-2-nodes-with-the-same-cluster/42014/4 "2016-02-19T10:00:38Z")

</div>

Hi,

Even am facing similar issue, I have tried setting up cluster using 2 nodes each one on different machines and also I tried 2 nodes on single machine.

In both the cases the nodes are failed to connect to master nodes irrespective of specifying master node and discovery plugin.

error message is "no known master from non-maser nodes" and when connected on browser getting "Cluster block exception".

is there a proper documentation to configure cluster on 2.1.1, can any one help me on this please.

Thanks,  
Chala

---

<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:14pm UTC](https://discuss.elastic.co/t/i-have-a-problem-connecting-my-2-nodes-with-the-same-cluster/42014/5 "2017-07-05T23:14:57Z")

</div>


