Getting error like master not discovered or elected yet, an election requires at least 2 nodes

    Getting below error while starting the elastic search node
    [2020-04-14T16:53:34,444][WARN ][o.e.c.c.ClusterFormationFailureHelper] [node-1] master not discovered or elected yet, an election requires at least 2 nodes with ids from [p2sTOYioT6uQanoEDVaBYQ, EfEYNF_aT5u-STeZJvr4rA, usQfRR2kQn2obQgEkXu1aw], have discovered [{node-1}{EfEYNF_aT5u-STeZJvr4rA}{38p1G27HTC2tMzIqnDsDOg}{}{}{dilm}{ml.machine_memory=8457457664, xpack.installed=true, ml.max_open_jobs=20}] which is not a quorum; discovery will continue using [] from hosts providers and [{node-1}{EfEYNF_aT5u-STeZJvr4rA}{38p1G27HTC2tMzIqnDsDOg}{}{}{dilm}{ml.machine_memory=8457457664, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 1, last-accepted version 53 in term 1

Details in elasticsearch.yml file my-application node-1
node.master: true
http.port: 9200
transport.tcp.port: 9305
transport.publish_port: 9305
discovery.seed_hosts: ["",""]

This node used to belong to a cluster with three (or more) master-eligible nodes but it now cannot discover any other master-eligible nodes.

See for more details, particularly:

if you shut down half or more of the master-eligible nodes all at the same time then the cluster will normally become unavailable. If this happens then you can bring the cluster back online by starting the removed nodes again.

What should i do here to get rid of this error?

This is answered above, in the section of the docs I quoted:

Am learning elastic search in my laptop. And so am having three instances(nodes) by having elastic search in three different folders. Whenever am restarting any of the nodes, am getting this error. Could you please help me in this regard?

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