Elasticsearch throws 'not enough master nodes discovered during pinging' error


I am trying to setup Elasticsearch cluster(6.3.2) with 4 nodes(1 coordinating node and 3 Master Eligible and Data nodes). Elasticsearch is starting on all 4 nodes separately but it's not forming a cluster. Error I get is,

not enough master nodes discovered during pinging

Here are some setting in yml file,

node.master: true
node.data: true
bootstrap.memory_lock: true
http.port: 9200
discovery.zen.ping.unicast.hosts: ["xxxxx", "xxxxx", "xxxxx"]
discovery.zen.minimum_master_nodes: 2

With exact same yml I've been running Production cluster(5.6.7) for long time
I tried changing network.host to the exact ip address of the machine with no luck.

Can someone please help me understand the issue?

Every time this happens to me it's because whatever I am putting in for "xxxxx" is either

  1. not matching up with the IP:port that other ES nodes are actually listening on (verify with netstat), or
  2. that IP:port is just not reachable (verify with curl)

Can you please explain how to check this?

I've tested it with curl http://xxxx:9200 and it gave me cluster information without any error (where xxxx is other machine's IP)


Can someone please help me on this?

Thanks in advance

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