When I ran es in single-node-cluster on ec2 instance I got this message
Fully-formed clusters do not attempt to discover other nodes, and nodes with different cluster UUIDs cannot belong to the same cluster. The cluster UUID persists across restarts and can only be changed by deleting the contents of the node's data path(s). Remove the discovery configuration to suppress this message.
so I shut down elasticsearch with sudo systemctl stop elasticsearch , tried sudo rm -rf /var/lib/elasticsearch/nodes to remove the node's data path, and restarted with sudo systemctl start elasticsearch
but the node still had same cluster uuid
I want to restart cluster with different uuid how can I? I specified discovery host seed and cluster initial master node list inside the config file but the node didn't catch it when restarting and had same cluster uuid, not master's
plus I tried uninstall and re-install es to change cluster uuid
first
I deleted /usr/share/elasticsearch, etc/elasticsearch
tried sudo yum remove elasticsearch
reinstalled with sudo yum install --enablerepo=elasticsearch elasticsearch
but it still has same cluster uuid
second
I deleted /usr/share/elasticsearch, etc/elasticsearch, /etc/sysconfig/elasticsearch
tried sudo yum remove elasticsearch
reinstalled with sudo yum install --enablerepo=elasticsearch elasticsearch
but i got the error related to sys file when running es
plz Can you explain the way to re-start cluster and re-install es? there are so many versions and answers Im not sure which info is right
Also I would be really appreciated if you answer this question, too.
Suppose there are two cluster and each cluster has only one node they’ve already been assigned cluster uuid
With those config files, if there is no problem in config, How can I re-form cluster from two-single-node clusters to one cluster with two node? I shut down es, tried sudo rm -rf /var/lib/elasticsearch/nodes and restart es with token but they said I cannot start already launched node with token
In this case should I remove elasticsearch on my ec2 and install again?
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.