# Not able to add data node to a elasticsearch cluster

**URL:** https://discuss.elastic.co/t/not-able-to-add-data-node-to-a-elasticsearch-cluster/153606
**Category:** Elasticsearch
**Created:** [October 23, 2018, 1:14pm UTC](https://discuss.elastic.co/t/not-able-to-add-data-node-to-a-elasticsearch-cluster/153606 "2018-10-23T13:14:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Loudone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loudone/32/33365_2.png) [@Loudone](https://discuss.elastic.co/u/Loudone)
#### Post date: [October 23, 2018, 1:14pm UTC](https://discuss.elastic.co/t/not-able-to-add-data-node-to-a-elasticsearch-cluster/153606/1 "2018-10-23T13:14:12Z")

</div>

Dear all,

I'm currently trying to make the following elasticsearch cluster:

 ![architectures_elk](https://us1.discourse-cdn.com/elastic/original/3X/5/6/56522f1bf8a37aaa97ff5c32da547fd36241db6a.jpeg)

My 3 master nodes are working fine, but my 3 others data nodes are not able to be connected to the masters:  
error:

`[2018-10-23T14:59:41,287][WARN][o.e.d.z.ZenDiscovery] [Data_Node_1] not enough master nodes discovered during pinging (found [[]], but needed [3]), pinging again`

I trying to find a solution to have two node per vm, do you know how to do that?

Many tkanks for your help

below my actuals elasticsearch.yml configuration:

**Master 1:**

```
cluster.name: Ken_O_Bee
node.name: Master_1
node.master: true
node.data: true
path.data: /opt/node_data/master1
path.logs: /var/log/elasticsearch/master1
bootstrap.memory_lock: true

network.host: 172.20.10.7
network.bind_host: 0.0.0.0
http.port: 9200

discovery.zen.ping.unicast.hosts: ["172.20.10.7" , "172.20.10.6" , "172.20.10.5"]
discovery.zen.minimum_master_nodes: 2

xpack.security.enabled: false
xpack.monitoring.enabled: true
xpack.ml.enabled: false
xpack.graph.enabled: false
xpack.watcher.enabled: false
xpack.monitoring.collection.enabled: true

```

**Master 2:**

```
cluster.name: Ken_O_Bee
node.name: Master_2
node.master: true
node.data: true
path.data: /opt/node_data/master2
path.logs: /var/log/elasticsearch/master2
bootstrap.memory_lock: true

network.host: 172.20.10.6
network.bind_host: 0.0.0.0
http.port: 9200

discovery.zen.ping.unicast.hosts: ["172.20.10.7" , "172.20.10.6" , "172.20.10.5"]
discovery.zen.minimum_master_nodes: 2

xpack.security.enabled: false
xpack.monitoring.enabled: true
xpack.ml.enabled: false
xpack.graph.enabled: false
xpack.watcher.enabled: false
xpack.monitoring.collection.enabled: true

```

**Master 3:**

```
cluster.name: Ken_O_Bee
node.name: Master_3
node.master: true
node.data: true
path.data: /opt/node_data/master3
path.logs: /var/log/elasticsearch/master3
bootstrap.memory_lock: true

network.host: 172.20.10.5
network.bind_host: 0.0.0.0
http.port: 9200

discovery.zen.ping.unicast.hosts: ["172.20.10.7" , "172.20.10.6" , "172.20.10.5"]
discovery.zen.minimum_master_nodes: 2

xpack.security.enabled: false
xpack.monitoring.enabled: true
xpack.ml.enabled: false
xpack.graph.enabled: false
xpack.watcher.enabled: false
xpack.monitoring.collection.enabled: true

```

**Data\_node example:**

```
cluster.name: Ken_O_Bee
node.name: Data_Node_1
node.master: false
node.data: true
path.data: /opt/node_data/data_1
path.logs: /var/log/elasticsearch/data_node_1

bootstrap.memory_lock: true

network.bind_host: 0.0.0.0
http.port: 9201
transport.tcp.port: 9301

discovery.zen.ping.unicast.hosts: ["172.20.10.7" , "172.20.10.6" , "172.20.10.5"]
discovery.zen.minimum_master_nodes: 3

xpack.security.enabled: false
xpack.monitoring.enabled: true
xpack.ml.enabled: false
xpack.graph.enabled: false
xpack.watcher.enabled: false
xpack.monitoring.collection.enabled: true
```

---

<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: [October 23, 2018, 1:18pm UTC](https://discuss.elastic.co/t/not-able-to-add-data-node-to-a-elasticsearch-cluster/153606/2 "2018-10-23T13:18:26Z")

</div>

Hi,

In your data nodes configuration you need to add the port of unicast master hosts :

```
discovery.zen.ping.unicast.hosts: ["172.20.10.7:9300" , "172.20.10.6:9300" , "172.20.10.5:9300"]

```

bye,  
Xavier

---

<div class="post-metadata">

### Author: ![Loudone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loudone/32/33365_2.png) [@Loudone](https://discuss.elastic.co/u/Loudone)
#### Post date: [October 23, 2018, 1:29pm UTC](https://discuss.elastic.co/t/not-able-to-add-data-node-to-a-elasticsearch-cluster/153606/3 "2018-10-23T13:29:36Z")

</div>

> [@xavierfacq](#):
>
> you need to add the port of unicast master hosts :

Hi Xavier,

You're right!! is working, thank you for your quite response:

 ![Sans%20titre](https://us1.discourse-cdn.com/elastic/original/3X/9/3/93b9f6daa2ed30e80518a81957bc8f1b127bf9e1.png)

---

<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: [October 23, 2018, 1:32pm UTC](https://discuss.elastic.co/t/not-able-to-add-data-node-to-a-elasticsearch-cluster/153606/4 "2018-10-23T13:32:54Z")

</div>

👍 good to hear that !  
You can mark as resolved !

enjoy,  
Xavier

---

<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: [November 20, 2018, 1:36pm UTC](https://discuss.elastic.co/t/not-able-to-add-data-node-to-a-elasticsearch-cluster/153606/5 "2018-11-20T13:36:13Z")

</div>

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