Hi
I have a cluster by name "as_elasticsearch" and I have deleted a node from that cluster as below
curl -XPUT P.P.P.P:9200/_cluster/settings -H 'Content-Type: application/json' -d '{
"transient" :{
"cluster.routing.allocation.exclude._ip" : "X.X.X.X"
}
}';
Then I changed out-of-cluster node elasticsearch.yml as below
path.logs: "/var/opt/novell/nam/logs/elasticsearch/"
path.data: "/var/lib/elasticsearch"
then I assumed that it will be running in default cluster. But its not working as expected
:~ # curl localhost:9200
{
"name" : "",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "na",
"version" : {
"number" : "7.4.2",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "2f90bbf7b93631e52bafb59b3b049cb44ec25e96",
"build_date" : "2019-10-28T20:40:44.881551Z",
"build_snapshot" : false,
"lucene_version" : "8.2.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
If I run
curl localhost:9200/_cat/nodes
{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}
After deleting /var/lib/elasticsearch, its working
NAM-AS1-201:~ # curl localhost:9200/_cat/nodes
127.0.0.1 17 67 3 0.17 0.43 0.58 dilm * --**
Should I do snapshot/restore before deleting data foldler?