unfortunately i have deleted some index files in below path.
home/Elasticsearch/data/nodes/0/indices/
Elasticsearch is stopped and we are trying to restart the Elasticsearch but am getting below error.
"[2021-10-25T11:11:54,159][ERROR][o.e.g.GatewayMetaState ] [app_node] failed to read or upgrade local state, exiting...
java.io.IOException: failed to find metadata for existing index appnode-2021.09.25 [location: gyK9xHNfTO-vTzqEg0YqpQ, generation: 18]"
Directly deleting files from the data directory is not supported and can cause corruption, which seems to be the case here. If you have a single node cluster I suspect you will need to restore data from a snapshot.
This requires that you have previously backed up your data using the snapshot API. If you have done that you just spin up a new clean node and use the restore API.
If you do not have a snapshot to fall back on I suspect your data may be lost.
If it is the cluster that that is corrupted I suspect the data is lost. If it was a single index you might have been able to recover at least some of the data.
Please don't post pictures of text or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them
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.