Thank you. That worked. Now when i bring down any master, cluster keeps going with other 3 master nodes.
I took down a master node that is bound to localhost:9200 on one machine1. I can still query using localhost:9201. Does it mean, do we need to change the URL on client from 9200 to 9201 if a node goes down. Is there anyway to avoid changing url on client? appreciate your help. thank you. On Wednesday, April 16, 2014 11:05:37 AM UTC-5, Ivan Brusic wrote: > > I believe if you have two or more nodes on a single machine, you need to > specify each in the unicast host property: > > discovery.zen.ping.unicast.hosts: ["machine1:port1", "machine2:port1", > "machine1:port2", > "machine2:port2"] > > Where port1 and port2 are probably 9300 and 9301. > > -- > Ivan > > > On Tue, Apr 15, 2014 at 9:34 PM, Narasimha Alzapur > <[email protected]<javascript:> > > wrote: > >> hello, >> >> i am trying to implement elasticsearch cluster. i have 2 machines with 2 >> nodes each. i have following configuration in yml file. i have given unique >> node name on each node, all of them are master and data nodes. >> >> cluster.name: elasticsearch >> node.master: true >> node.data: true >> discovery.zen.ping.multicast.enabled: false >> discovery.zen.ping.unicast.hosts: ["machine1", "machine2"] >> discovery.zen.minimum_master_nodes: 3 >> >> the four nodes are working correctly in the cluster. I would like to >> bring one of the nodes down, and have other 3 run in the cluster. When I >> try to bring one of first three, cluster goes down, I get this error >> >> { >> "error": "ClusterBlockException[blocked by: >> [SERVICE_UNAVAILABLE/1/state not recovered / initialized];]", >> "status": 503 >> } >> >> If i bring down the last started node, the cluster works fine. I thought >> if I have 4 masters and one of the master goes down, other three masters >> should run in the cluster. is it not correct? >> >> thank you. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "elasticsearch" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/93ebf994-cc20-4846-8763-a044e2f008f7%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/93ebf994-cc20-4846-8763-a044e2f008f7%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b48a8aba-e565-4065-844e-5608d3ad1929%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
