I tried running the nodes as a service in windows but I still cannot see other node although I can run my first node on its machine but node2 cannot be seen in my elasticsearch-head.
however am getting warnings when I index data, on master node am getting "received shard failed for [hits][0]" and on second node - "marking and sending shard failed due to [failed to create index]"
another issue when both are up and running am able to view data using http://127.11.11.1:9210 and http://127.11.11.1:9211, but when the master node is down the second node fails to displays data with reason "all shards failed".
How to create copy of data to second node?
If I create replicas of shards how to map them to store it like - master node shard's replica on second node so that i will read data even the master fails
finally why the second node is not becoming as master on its own when master node is down? is 2.1.1 is not supporting this? Please help me.
Since both ES are on different machines, both must bind on an non-loopback valid IP address, and for the copy of data, you can either use curl and change settings to the following:
PUT /my_index/_settings
{
"number_of_replicas": 2
}
or change the number_of_replicas directive on elasticsearch.yml config file:
Hi I already solved this issue. They're correct use the IP of the server do not initiate any IP but use the one in your own machine/server and it will work accordingly.
Hi
We have one code base to connect elastic search (localhost:9200). We deployed this code on two different boxes under load balancing server. In this case, how to configure ES in 2 different machines to connect ES and index should reflect both sides.
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.