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]> 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].
> 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/CALY%3DcQDOJMvAsNWVzHa1Vf8QZCSfqaGr5%3D2N6-g5BR0EkufHFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to