I have made changes in elasticsearch.yml for the instance running on my machine and I have set the instance as master node . Similarly I have setup the instances running on other two machines as data nodes. what should be the configurations made in all the three elasticsearch instance's yml file so that both data nodes are connected to master node? I am attaching the yml files for both master and data nodes. But I am unable to start the instances with these configurations. Hoping for a solution for this.
What is the error that you are getting? One possible error is that you have provided same node names for both the data nodes, which might be a source of conflict. The node names should be unique for each node.
Hi, Yes I have given different names to both data nodes but in the given pictures i took only one data node and one master node discovery.zen.ping.unicast.hosts: ["data_node", "master_node"] what should I write in place of ["data_node", "master_node"] ,I have a doubt that should write in elasticsearch.yml of master node the ip address of the machine on which data node is running ? The instances are not even getting started with the given configurations. When I am starting elasticsearch.bat instance is starting but immediately getting closed.
I would recommend that you set `node.master` to `true` and `discovery.zen.minimum_master_nodes` to `2` on all three nodes. `discovery.zen.ping.unicast.hosts` should then contain a list of the IP addresses of the other nodes in the cluster on each node. This will allow your cluster to be able to continue to operate and elect a master even if one of your nodes goes down.
With your current setup you have a single point of failure in your dedicated master node, and if this goes down the cluster will no longer be fully operable.
NEW: Monitor These Apps!
Apache Lucene, Apache Solr and all other Apache Software Foundation project and their respective logos are trademarks of the Apache Software Foundation.
Elasticsearch, Kibana, Logstash, and Beats are trademarks of Elasticsearch BV, registered in the U.S. and in other countries. This site and Sematext Group is in no way affiliated with Elasticsearch BV.
Service operated by Sematext