Up until 3 days ago my elastic search(local installation) was working perfectly fine.
Today it stopped working given as connection error.
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=9200): Max retries exceeded with url:
I tried the following options too.
curl -XGET http://127.0.0.1:9200
curl: (7) Failed to connect to 127.0.0.1 port 9200: Connection refused
I tried running it manually using the below code and received the following error.
cd /usr/local/Cellar/elasticsearch/2.4.0
ElasticsearchException[failed to read [id:206, legacy:false, file:/usr/local/var/elasticsearch/elasticsearch_sam/nodes/0/_state/global-206.st]]; nested: IOException[failed to read [id:206, legacy:false, file:/usr/local/var/elasticsearch/elasticsearch_sam/nodes/0/_state/global-206.st]]; nested: CorruptStateException[Format version is not supported (resource SimpleFSIndexInput(path="/usr/local/var/elasticsearch/elasticsearch_sam/nodes/0/_state/global-206.st"))
The Elastic search version I am using is 2.4.0 and java version is java version "1.8.0_101" and I am running a MAC system
I have all my data stored in Elastic search without any back up.
I'd be glad if anybody could help me with the situation
Thanks