3 Days ago both were working fine. Today I found that 1 has stopped working and states unassigned and the cluster status has changed from green to yellow.
Can you please explain why this may have happened and how to fix this?
Can you please explain why this may have happened and how to fix this?
From what you posted? Not really. Logs on both nodes could help.
May be you second node is not working anymore? Or you have a network issue?
BTW, the recommendation for production is to use 3 nodes so you'll have a Tie Breaker if you have a network issue. (set also minimum_master_nodes: 2.
Really don't give much to go on.
Is ElasticSearch service running on the other node?
Can you telnet to port 9200 and 9300 from one machine to the other and vice versa?
Give us more someone will probably be able to help!
Whilst I posted this both nodes were up and running and I could telnet to port 9200 and 9300.
I have restarted both servers, now it shows both nodes working properly with cluster status being green. However, the servers are still starting up services.
I'll update once the servers are fully up and running.
@dadoonet thanks for the information, we'll add another node in future.
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.