I am trying to cluster two system as an elastic cluster
I have two system running on ubuntu where elasticsearch is set .The following are the config files with the lines that i have modified or uncommented from the default
Config file(system 1):
cluster.name: elastic-cluster-attempt
node.name: "es-node-1"
node.master: false
node.data: true
network.host: 111.111.11.111
transport.host: 127.0.0.1
http.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
discovery.zen.ping.unicast.hosts: ["111.111.11.111:9300","222.222.22.22:9300"]
Config file (system 2):
cluster.name: elastic-cluster-attempt
node.name: "es-node-2"
node.master: true
node.data: true
network.host: 222.222.22.222
transport.host: 127.0.0.1
http.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
discovery.zen.ping.unicast.hosts: ["111.111.11.111:9300","222.222.22.22:9300"]
When i run elastic search with these configurations
sytem 1elasticsearch does not start and throws error : "not enough master nodes discovered during pinging (found [[]], but needed [-1]), pinging again
"
System 2 starts but does not ping the other system
I want to combine these two systems as a cluster please let me know the mistakes and the right way to do it
