# Es 5 node cannot join the master node

**URL:** <https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692>\
**Category:** Elasticsearch\
**Created:** [April 18, 2017, 10:27am UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692 "2017-04-18T10:27:12Z")\
**Posts on this page:** 19\
**Page:** 2

<div class="post-metadata">

**Author:** ![xavierfacq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavierfacq/32/8744_2.png) [@xavierfacq](https://discuss.elastic.co/u/xavierfacq)\
**Post date:** [April 19, 2017, 11:51am UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/21 "2017-04-19T11:51:29Z")

</div>

hi,

Your configuration must be :

NODE 1:

```
cluster.name: prod
node.name: "nodeone"
node.master: true
node.data: false
transport.tcp.port: 9300
http.port: 9200
network.host: 192.168.10.100
node.attr.rack: r1
discovery.zen.ping.unicast.hosts: ["192.168.10.100", "192.168.10.150"]

```

NODE 2:

```
cluster.name: prod
node.name: "nodetwo"
node.master: false
node.data: true
transport.tcp.port: 9300
http.port: 9200
network.host: 192.168.10.150
discovery.zen.ping.unicast.hosts: ["192.168.10.100", "192.168.10.150"]
node.attr.rack: r1

```

bye,  
Xavier

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [April 19, 2017, 12:12pm UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/22 "2017-04-19T12:12:23Z")

</div>

And the reason why is right there in the logs, which is covered in the docs. I'm asking where you got stuck after reading the logs and going to the docs?

---

<div class="post-metadata">

**Author:** ![karim](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@karim](https://discuss.elastic.co/u/karim)\
**Post date:** [April 19, 2017, 12:17pm UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/23 "2017-04-19T12:17:50Z")

</div>

I have not yet configured the two elastic nodes. These last do not work together I do not know why, then I have to consult the log file I find this output

---

<div class="post-metadata">

**Author:** ![karim](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@karim](https://discuss.elastic.co/u/karim)\
**Post date:** [April 19, 2017, 12:20pm UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/24 "2017-04-19T12:20:36Z")

</div>

> [2017-04-19T12:30:40,867][INFO][o.e.n.Node] [nodeone] starting ...  
> [2017-04-19T12:30:41,530][INFO][o.e.t.TransportService] [nodeone] publish\_address {192.168.10.100:9300}, bound\_addresses {192.168.10.100:9300}  
> [2017-04-19T12:30:41,558][INFO][o.e.b.BootstrapChecks] [nodeone] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks  
> [2017-04-19T12:30:41,570][ERROR][o.e.b.Bootstrap] [nodeone] node validation exception  
> bootstrap checks failed  
> system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk  
> [2017-04-19T12:30:41,606][INFO][o.e.n.Node] [nodeone] stopping ...  
> [2017-04-19T12:30:41,664][INFO][o.e.n.Node] [nodeone] stopped  
> [2017-04-19T12:30:41,665][INFO][o.e.n.Node] [nodeone] closing ...  
> [2017-04-19T12:30:41,761][INFO][o.e.n.Node] [nodeone] closed

---

<div class="post-metadata">

**Author:** ![karim](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@karim](https://discuss.elastic.co/u/karim)\
**Post date:** [April 19, 2017, 12:22pm UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/25 "2017-04-19T12:22:35Z")

</div>

that's what I did

---

<div class="post-metadata">

**Author:** ![xavierfacq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavierfacq/32/8744_2.png) [@xavierfacq](https://discuss.elastic.co/u/xavierfacq)\
**Post date:** [April 19, 2017, 12:23pm UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/26 "2017-04-19T12:23:48Z")

</div>

> [@karim](#):
>
> [2017-04-19T12:30:41,558][INFO][o.e.b.BootstrapChecks] [nodeone] bound or publishing to a non-loopback or non-link-local address

Are you shure of the configured IP ? 192.168.10.100 ?

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [April 19, 2017, 12:23pm UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/27 "2017-04-19T12:23:58Z")

</div>

Why do you keep showing these logs and not answering my question? The logs tell you the problem. Our docs for the bootstrap checks cover this scenario. If you read the logs, read the docs, and apply what you learn there, you can solve this problem. Where are you getting stuck?

---

<div class="post-metadata">

**Author:** ![karim](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@karim](https://discuss.elastic.co/u/karim)\
**Post date:** [April 19, 2017, 5:41pm UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/28 "2017-04-19T17:41:25Z")

</div>

i m sorry but i have this error the slave can't join the master

> curl -XGET 192.168.10.100:9200/\_cat/nodes?pretty  
> 192.168.10.100 9 96 0 0.00 0.08 0.27 mi \* nodeone

> [root@nodeone Desktop]# curl 192.168.10.100:9200/\_cluster/health?pretty  
> {  
> "cluster\_name" : "prod",  
> "status" : "green",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 1,  
> "number\_of\_data\_nodes" : 0,  
> "active\_primary\_shards" : 0,  
> "active\_shards" : 0,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 0,  
> "unassigned\_shards" : 0,  
> "delayed\_unassigned\_shards" : 0,  
> "number\_of\_pending\_tasks" : 0,  
> "number\_of\_in\_flight\_fetch" : 0,  
> "task\_max\_waiting\_in\_queue\_millis" : 0,  
> "active\_shards\_percent\_as\_number" : 100.0  
> }

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [April 19, 2017, 7:33pm UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/29 "2017-04-19T19:33:03Z")

</div>

Okay, so you started your node. Yay!

> [@karim](#):
>
> i m sorry but i have this error the slave can't join the master

What error are you referring to? At this point you need to set up the second node as I indicated above. Please let me know specifically where you're stuck.

---

<div class="post-metadata">

**Author:** ![karim](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@karim](https://discuss.elastic.co/u/karim)\
**Post date:** [April 20, 2017, 8:41am UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/30 "2017-04-20T08:41:50Z")

</div>

Hi, my problem isn't related especially to one of the nodes and there is no errors , they are working perfectly the two of them. But the issue is that I am not able to interconnect them one to the other.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [April 20, 2017, 11:26am UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/31 "2017-04-20T11:26:29Z")

</div>

Can you show me what you have tried?

---

<div class="post-metadata">

**Author:** ![karim](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@karim](https://discuss.elastic.co/u/karim)\
**Post date:** [April 20, 2017, 11:51am UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/32 "2017-04-20T11:51:00Z")

</div>

Yes thank you very much I managed to deploy the cluster elasticsearch. I have another question how can I ensure the HA in this cluster?

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [April 20, 2017, 12:02pm UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/33 "2017-04-20T12:02:33Z")

</div>

Would you please define what you mean by HA?

---

<div class="post-metadata">

**Author:** ![karim](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@karim](https://discuss.elastic.co/u/karim)\
**Post date:** [April 20, 2017, 1:21pm UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/34 "2017-04-20T13:21:53Z")

</div>

If I have a problem with the master node.the system should not stop  
I read in the documentation that if the master moeud is down the other node is elected as master

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [April 20, 2017, 1:34pm UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/35 "2017-04-20T13:34:57Z")

</div>

Okay, this is a very tricky problem. You see, with two master-eligible nodes you can not have HA on the master. The reason is this: if you have two nodes and you set them to both be master eligible, then you must set `discovery.zen.minimum_master_nodes` to 2. If you do not do this, you are at risk of split brain where both master-eligible nodes can think they are the master. However, if `discovery.zen.minimum_master_nodes` is 2, when you lose one of the master-eligible nodes the other master node will not be able to be elected as the master because it requires 2 master-eligible nodes (itself, and at least one other) to vote for it during a master election. Does that help?

---

<div class="post-metadata">

**Author:** ![karim](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@karim](https://discuss.elastic.co/u/karim)\
**Post date:** [April 20, 2017, 1:43pm UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/36 "2017-04-20T13:43:54Z")

</div>

Then I need to add another master node to have HA at masters level [node.je](http://node.je) want to put a solution that provides a high protection against infrastructure failures and intermittent network problems

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [April 20, 2017, 9:15pm UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/37 "2017-04-20T21:15:57Z")

</div>

That's right, to get master HA you have to have three master-eligible nodes, and set `discovery.zen.minimum_master_nodes` to `2`.

---

<div class="post-metadata">

**Author:** ![karim](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@karim](https://discuss.elastic.co/u/karim)\
**Post date:** [April 21, 2017, 10:39am UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/38 "2017-04-21T10:39:32Z")

</div>

Thank you ,But when I do not specify a.master and node.data. There will be an election of master node and data node?  
Can I fix an address for the entire cluster?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 19, 2017, 10:50am UTC](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692/39 "2017-05-19T10:50:09Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.

[Previous page](https://discuss.elastic.co/t/es-5-node-cannot-join-the-master-node/82692.md?page=1)
