Form cluster using multiple nodes from different machine

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!!!

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.

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