I started to use Elasticsearch 2.0. When I want to use multiple node on one cluster, it seems it's not not working.
I tried two different methods to create multi node.
First, I used my localhost and created two instances of Elasticsearch 2.0.
Second, I used two different computers (one instance on my local computer and one instance in server and I used discovery.zen.ping.unicast.hosts to bind them) for this multi node.
It's different from Elasticsearch 1.x version. And I read that multicast has already removed. So how to setting the config file for multi node on a cluster in Elasticsearch 2.0??
Also, all the nodes have the same cluster.name and I have also set the network.host: 192.168.56.X for each one.
Question1:
Is this configuration ok?
Question2:
Is discovery.zen.minimum_master_nodes: 1 necessary since I have 1 master?
Question3:
In discovery.zen.ping.unicast.hosts I tried to assign it with ["192.168.56.103:9200"] but it didn't work with 9200 port. Is this normal because in stackoverflow mention that it works with port 9200.
P.S. It would be great to see a final stable consistent documentation of the fantastic new version of Elasticsearch (I have spent many hours trying to make a simple cluster work).
I would recommend making the data nodes master eligible as well. You always want 3 master eligible nodes if possible as this improves stability.
That is correct, but if you follow the recommendation and have 3 master eligible nodes you should set it to 2.
Port 9200 is by dy default used for HTTP client requests. For internal cluster communication port 9300 is used, and that is what you should use in the unicast config unless you have changed the default ports.
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.