Elasticsearch 5.0.0. cluster node not joining

回眸只為那壹抹淺笑 提交于 2019-12-05 03:36:48

Ok so the issue was copying the elasticsearch folder from one node to another over scp. Elasticsearch saves the node id in elasticsearch/data/ folder. Deleted the data folder on one node and restarted it. The cluster is up and running. Hope this saves someone the hassle.

Remove the directory <Elastic search home>/data and restart the ES node, this issue is due to elastic search storing id in this directory, and this is a common mistake when copying one working elastic search directory from one node to another.

after fixing the issue, check the cluster status like this:

curl -X GET "localhost:9200/_cluster/health"

works fine with elastic search 6 as well

I had the same issue after cloning a Data Node in Azure. I ended up finding the Data file by starting in the root folder:

/datadisks/disk1/elasticsearch/data

I kept reading that others found the folder elsewhere and wanted to share here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!