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

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]#

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

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