# Form cluster using multiple nodes from different machine

**URL:** <https://discuss.elastic.co/t/form-cluster-using-multiple-nodes-from-different-machine/123870>\
**Category:** Elasticsearch\
**Created:** [March 14, 2018, 9:44am UTC](https://discuss.elastic.co/t/form-cluster-using-multiple-nodes-from-different-machine/123870 "2018-03-14T09:44:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BleedCode](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@BleedCode](https://discuss.elastic.co/u/BleedCode)\
**Post date:** [March 14, 2018, 9:44am UTC](https://discuss.elastic.co/t/form-cluster-using-multiple-nodes-from-different-machine/123870/1 "2018-03-14T09:44:34Z")

</div>

I am new to elastic-search and trying to create a cluster using nodes present in multiple different server. Node 1 gets started but in node 2 i get error as:not enough master nodes discovered. I read many blogs on same but couldn't find the solution.

Node1(elasticsearch.yml):

cluster.name: hits  
node.name: "node1"  
node.master: true  
node.data: true  
network.host: 127.11.11.1  
http.port : 9210  
transport.tcp.port : 9300-9400  
discovery.zen.ping.unicast.hosts: ["127.11.11.1"]

Node 2:  
cluster.name: hits  
node.name: "node2"  
node.master: false  
node.data: true  
network.host: 127.11.11.1  
http.port : 9211  
transport.tcp.port : 9300-9400  
discovery.zen.ping.unicast.hosts: ["127.11.11.1:9210"]

Whats wrong in the configuration ?

Thanks in advance!!!

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [March 14, 2018, 9:59am UTC](https://discuss.elastic.co/t/form-cluster-using-multiple-nodes-from-different-machine/123870/2 "2018-03-14T09:59:47Z")

</div>

I believe the issue is that you used the http port instead of the transport port in `discovery.zen.ping.unicast.hosts` on `node2`. Passing just `discovery.zen.ping.unicast.hosts: ["127.11.11.1"]` should work.

---

<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 11, 2018, 10:00am UTC](https://discuss.elastic.co/t/form-cluster-using-multiple-nodes-from-different-machine/123870/3 "2018-04-11T10:00:45Z")

</div>

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