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