Good afternoon! I have a cluster of five nodes: three node.master and all five node.data. There is a problem when testing it. If you turn off one node and turn it on again, its elasticsearch instance does not see the cluster.
Only the simultaneous restart of the elasticsearch service on all nodes helps.
If you are using Elasticsearch 7.7 these settings are not the correct ones as cluster configuration changed in Elasticsearch 7.x. I suspect you may need to set up the cluster again, and when you do so make sure you are looking at the docs belonging to the correct version.
It turns out that the problem persists. I even disabled the firewall completely during testing.
I apologize for initially making a mistake with the version!
Yes, I changed the cluster name for all nodes. I double-checked, now all nodes have a name: cluster.name: lynx_new
When I first assembled a cluster he had the name lynx. I rebuilt it with a new name, without changing other parameters.
From the problem node, I checked access to one of the master nodes located in the cluster:
telnet 10.10.10.13 9300
Trying 10.10.10.13...
Connected to 10.10.10.13.
Escape character is '^]'.
Yes, this host sees other nodes, these nodes see this host.
I looked at the cluster log file /var/log/elasticsearch/lynx_new.log
I am confused by these errors:
[phd-1] failed to resolve host [“10.10.10.11”]
UnicastZenPing ] [phd-1] failed to resolve host [“10.10.10.12”]
[o.e.d.z.UnicastZenPing ] [phd-1] failed to resolve host [“10.10.10.12”]
java.net.UnknownHostException: “10.10.10.12”
I want to know if the following behavior is normal: when I shutdown two out of three master nodes, my cluster fall apart? I believed that the cluster will work with one master node.
I have disabled two master nodes from three and one node data. All five nodes - data nodes. On the two remaining nodes, I get the error:
Yes, I understood this, because I specified the parameter: discovery.zen.minimum_master_nodes: 2
Based on this, a cluster requires at least two master nodes.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.