I've set two master nodes in my cluster but it only shows "elastic-master" not "elastic-slave".(second node is not shown).How can I resolve it? I've already followed Elasticsearch documents but nothing changed!
#my host file setting:
cd /etc/elasticsearch
sudo nano hosts
192.168.143.30 elastic-master
192.168.143.23 elastic-slave
#my cluster setting:
cd /etc/elasticsearch
sudo nano elasticsearch.yml
cluster.name: “cluster1”
What's in each node's logs? grep for zen-disco lines if there's too much information. I'm guessing a network problem prevents them from seeing each other.
Can you access each node from the other one? I.e. while ssh-ed into 192.168.143.30 can you telnet 192.168.143.23 9300 and the other way around?
First stopped the service (sudo service elasticsearch stop). Delete the data (sudo rm -rf /var/lib/elasticsearch/*) and restart the service (sudo service elasticsearch restart). Now work all !!
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.