I have upgraded a single-node Elasticsearch from version 7.17 to 8.7. When the node starts up it logs this warning:
[WARN ][o.e.c.c.ClusterBootstrapService] [elasticsearch] this node is locked into cluster UUID [H6ToZxhPRAerFe-iPlqE8A] but [cluster.initial_master_nodes] is set to [elasticsearch]; remove this setting to avoid possible data loss caused by subsequent cluster bootstrap attempts; for further information see https://www.elastic.co/guide/en/elasticsearch/reference/8.7/important-settings.html#initial_master_nodes`
I have removed the cluster.initial_master_nodes property and added discovery.type: single-node, but the warning persists.
Next, I have looked at the various scripts delivered with Elasticsearch in the bin-direktory, but I do not find any suitable to remove the cluster_uuid from the cluster state.
The warning indicates that you have not removed cluster.initial_master_nodes. Maybe you adjusted the wrong elasticsearch.yml file, or maybe it is being passed in on the command line. In any case, that's what you must do to fix the warning.
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.