For the benefit of future readers, the solution described above contains a misconfiguration which can result in data loss. From the docs:
WARNING: You must set cluster.initial_master_nodes to the same list of nodes on each node on which it is set in order to be sure that only a single cluster forms during bootstrapping...
Thanks David, but with all nodes in cluster.initial_master_nodes cluster did not start.
However in the way i managed to get it started now i see all nodes forming the cluster:
curl --cacert /etc/elasticsearch/certs/ca.crt -u elastic -XGET https://192.168.90.225:9200/_cat/nodes?v
Enter host password for user 'elastic':
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
192.168.90.226 14 21 0 0.00 0.01 0.05 dilm - es-node2
192.168.90.227 9 21 0 0.00 0.01 0.05 dilm * es-node3
192.168.90.225 8 21 0 0.00 0.01 0.05 dilm - es-node1
So i guess i got a single cluster, what else do you think might have been wrong?
Fortunately it looks like you did indeed get a single cluster, but this was luck. You could have ended up with two.
All three nodes is the correct setting for cluster.initial_master_nodes so I suspect something else was going wrong there. Do you have logs from the case where the cluster did not start? If so can you share them here?
Unfortunatelly i dont have logs, whenever it did not work i deleted the logs prior to some modification to avoid having to dig to much into the logs on the next try.
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.