# \[data1\] not enough master nodes discovered during pinging (found \[\[\]\], but needed \[-1\])

**URL:** https://discuss.elastic.co/t/data1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1/145045
**Category:** Elasticsearch
**Created:** [August 19, 2018, 10:18am UTC](https://discuss.elastic.co/t/data1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1/145045 "2018-08-19T10:18:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rahul.Deshmukh](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@Rahul.Deshmukh](https://discuss.elastic.co/u/Rahul.Deshmukh)
#### Post date: [August 19, 2018, 10:18am UTC](https://discuss.elastic.co/t/data1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1/145045/1 "2018-08-19T10:18:18Z")

</div>

Hi There, having issue with discovering data node in elastic, tried all of the all posts about same issue but could not resolve it, please help!!  
My Environemt:  
Two Centos Vmware workstation Vm's

```
NODE 1 Config: Master Node
ip adress: ens33:192.168.234.129
cluster.name: my-homelab
node.name: master
node.master: true
node.data: true
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: _ens33:ipv4_
discovery.zen.ping.unicast.hosts: ["192.168.234.128", "192.168.234.129"]

[root@server1 network-scripts]# curl http://192.168.234.129:9200
{
  "name" : "master",
  "cluster_name" : "my-homelab",
  "cluster_uuid" : "_DuH8qz9R7a9_3SPMiC7VA",
  "version" : {
    "number" : "6.3.2",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "053779d",
    "build_date" : "2018-07-20T05:20:23.451332Z",
    "build_snapshot" : false,
    "lucene_version" : "7.3.1",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

```

* * *

```
NODE2 Config--data node
ip adress: ens33:192.168.234.128
cluster.name: my-homelab
node.name: data1
node.master: false
node.data: true
network.host: _ens33:ipv4_
network.bind_host: _ens33:ipv4_
discovery.zen.ping.unicast.hosts: ["192.168.234.129", "192.168.234.128"]

[root@server2 network-scripts]# curl http://192.168.234.128:9200
{
  "name" : "data1",
  "cluster_name" : "my-homelab",
  "cluster_uuid" : "_na_",
  "version" : {
    "number" : "6.3.2",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "053779d",
    "build_date" : "2018-07-20T05:20:23.451332Z",
    "build_snapshot" : false,
    "lucene_version" : "7.3.1",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}
[root@server2 network-scripts]#

```

* * *

---

<div class="post-metadata">

### Author: ![Rahul.Deshmukh](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@Rahul.Deshmukh](https://discuss.elastic.co/u/Rahul.Deshmukh)
#### Post date: [August 19, 2018, 8:12pm UTC](https://discuss.elastic.co/t/data1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1/145045/2 "2018-08-19T20:12:55Z")

</div>

resolved this through below command for both ports 9200 and 9300  
# firewall-cmd --add-port=9200/tcp  
# firewall-cmd --add-port=9200/tcp --permanent

---

<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: [September 16, 2018, 8:13pm UTC](https://discuss.elastic.co/t/data1-not-enough-master-nodes-discovered-during-pinging-found-but-needed-1/145045/3 "2018-09-16T20:13:01Z")

</div>

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