Steps to reproduce:
Create a 2-node cluster
Create a new index
Add one doc to the index
Take cluster down using Nodes Shutdown API
Change cluster.name in elasticsearch.yml on both nodes
service elasticsearch start on both nodes
Cluster comes up OK, looks like working cluster in BigDesk
Queries against your previously-working index return IndexMissingException
And if I change the cluster name back to its original name and restart the cluster, the index works fine again.
And if I change the cluster name back to its original name and
restart the
cluster, the index works fine again.
Is this a bug? Design limitation? Pilot error?
Feature. The index data reside on disk in a path partially
defined by the cluster name. Once you changed it, ES created a
new folder structure. When you changed it back, it used the
original data.
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.