I updated elasticsearch to version 8.4.1
Now im trying to start elasticsearch using discovery.type: single-node in config file. But its does not starting. I can see status activating in systemctl status. In elasticsearch.log i can see this message:
[2023-01-12T18:23:23,740][WARN ][o.e.c.c.ClusterBootstrapService] [node1] this node is locked into cluster UUID [nwFy-ImJTfy0iYUpOF32gh] but [cluster.initial_master_nodes] is set to [node1]; remove this setting to avoid possible data loss caused by subsequent cluster bootstrap attempts
cluster.initial_master_nodes commented in elasticsearch.yml
How can i fix this warning? How can i unlock node in cluster?
This message means that Elasticsearch definitely sees cluster.initial_master_nodes in its settings, and the only way to fix the warning is to remove the setting. Are you sure you're editing the right config file? Or maybe you're passing the setting in on the command line instead?
I edit /etc/elasticsearch/elasticsearch.yml
The line with cluster.initial_master_nodes commented out in this file. I tried just remove this line. Its not helped.
What does it means: "this node is locked into cluster UUID" ? How unlock node into cluster?
Nodes can only join one cluster - after it's joined a cluster, it cannot join a different one. It is "locked in" to that specific cluster. There is no way to unlock it, apart from just deleting the contents of its data path (which wipes all the data it contains).