I am experimenting, I got some bad data loaded on to elasticsearch so thought to reload and deleted the path.data
folder. The command rm -rf *
removed many things but
ls: cannot access global-12.st: No such file or directory
ls: cannot access node-0.st: No such file or directory
total 0
?????????? ? ? ? ? ? global-12.st
?????????? ? ? ? ? ? node-0.st
I am unable to chown also. Please help me to delete these folders.
Also tried to restart elasticsearch thinking it could have a temporary status. But elasticsearch didn't start and threw following exception :
org.elasticsearch.bootstrap.StartupException: ElasticsearchException[java.io.IOException: failed to read [id:0, legacy:false, file:/home/elk/elasticsearch/data/nodes/0/_state/node-0.st]]; nested: IOException[failed to read [id:0, legacy:false, file:/home/elk/elasticsearch/data/nodes/0/_state/node-0.st]]; nested: NoSuchFileException[/home/elk/elasticsearch/data/nodes/0/_state/node-0.st];
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.3.2.jar:6.3.2]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.3.2.jar:6.3.2]
Caused by: org.elasticsearch.ElasticsearchException: java.io.IOException: failed to read [id:0, legacy:false, file:/home/elk/elasticsearch/data/nodes/0/_state/node-0.st]