If I just delete the directory in which the data is stored, restart Elasticsearch, it should recreate that directory and populate it with new data according to the config, correct?
I have unassigned shards, but would just like to start from scratch. Is this the best way to do it?
Hello @Andrew_Tillotson if what you're trying to do is just to sort out the unassigned shards deleting the data directory and start from scratch is not the best option at all.
First check in which of your nodes are the unassigned shards:
GET _cat/shards/your_index GET _cat/allocation/explain
This two requets will output where you unassigned shards are and the reason why they remain like that.
@Andrew_Tillotson If you proceed your cluster will be empty. Indices, templates, visualization/dashboards, user/roles, machine learning jobs, etcetera will be all gone.
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.