I have two elasticsearch running on two different servers, I have same indexes on both servers. I want to have a master and data node configuration, for that below are the configuration changes which I did so far:
Master Node -> xx.xx.xx.xx:9200
cluster-name : ABC
Node-name : XYZ
node.master: true
node.data: false
node.ingest: false
http.port: 9200
discovery.zen.ping.unicast.hosts: ["127.0.0.1","zz.zz.zz.zz:9200"]
Data Node: -> zz.zz.zz.zz:9200
cluster-name : ABC
node.name: PQR
node.master: false
node.data: true
node.ingest: false
http.port: 9200
discovery.zen.ping.unicast.hosts: ["127.0.0.1","xx.xx.xx.xx:9200"]
The problems are -
- When I search some indexes from master I get the result but when I hit second server(having only data node), I get master_not_discovered_exception. reason ?
- How to check if master and data node configuration is working properly?
I am a newbie here 