Hi,
I tried to setup Elasticsearch cluster in my local LAB.
Setup Scenario :
Server 1 :
IP : 10.11.12.101
Cluster Name : mycluster
Node name : Node_2
Server 2 :
IP : 10.11.12.102
Cluster Name : mycluster
Node name : Node_1
Inserted some document in Server 1. But it doesn't replicated in Server 2. Rather than , it shows "Unassigned" option when view the Elasticsearch using head plugin [ http://10.11.12.101:9200/_plugin/head ].
I guess your nodes are not able to ping with each other. Check the firewall settings or simply add Inbound rules & Outbound rules for ports 9200 & 9300 respectively on nodes.
@warkolm , As per your suggestion , I have changed my settings to unicast. But still have some confusion on data update.
Now, both cluster nodes are shown when check it over head plugin. Then I tried to post some data into in one of the nodes [ ex, updated in Node_2 cluster ]. I could see the same data on Node_3 cluster.
but, when I check the cluster status through head plugin, it shows cluster health in Yellow color. Can you please give some explanation from the above screenshot ? . When cluster health is in Yellow state and why still Unassigned is there ?
Mixed version clusters are not supported for long term use. You should only have a mixed version cluster while upgrading, but you should strive to upgrade all node to the same version as soon as possible.
Elasticsearch will not assign replicas to a node which is on an older version than the node holding the primary shard(s). This is why your replicas are unassigned, you need to upgrade node 1 to be on the same version as node 2.
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.