# Master not discovered or elected yet, an election requires two nodes with ids

**URL:** <https://discuss.elastic.co/t/master-not-discovered-or-elected-yet-an-election-requires-two-nodes-with-ids/260755>\
**Category:** Elasticsearch\
**Created:** [January 11, 2021, 5:43pm UTC](https://discuss.elastic.co/t/master-not-discovered-or-elected-yet-an-election-requires-two-nodes-with-ids/260755 "2021-01-11T17:43:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sean\_Tisdale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sean_tisdale/32/80406_2.png) [@Sean\_Tisdale](https://discuss.elastic.co/u/Sean_Tisdale)\
**Post date:** [January 11, 2021, 5:43pm UTC](https://discuss.elastic.co/t/master-not-discovered-or-elected-yet-an-election-requires-two-nodes-with-ids/260755/1 "2021-01-11T17:43:02Z")

</div>

I'm am currently trying to set up a cluster with 3 nodes in total. 1 master node and 2 data nodes. I am currently just trying to get the the first two nodes to connect. My master node runs fine when I start it but my data node is getting the following error.

`` `

> [2021-01-11T08:55:19,056][WARN][o.e.c.c.ClusterFormationFailureHelper] [data1] master not discovered or elected yet, an election requires two nodes with ids [itJNyae8SpKTxGlnvTmm4w, 8GG4guNnS  
> OyzUC33LYBEKw], have discovered [{data1}{itJNyae8SpKTxGlnvTmm4w}{PNdgtENGS1Cpdo-HJLksVw}{169.254.0.7}{169.254.0.7:9300}{cdhilmrstw}{ml.machine\_memory=4294496256, xpack.installed=true, transfor  
> m.node=true, ml.max\_open\_jobs=20}] which is not a quorum; discovery will continue using [193.168.100.6:9300] from hosts providers and [{data1}{itJNyae8SpKTxGlnvTmm4w}{PNdgtENGS1Cpdo-HJLksVw}{1  
> 69.254.0.7}{169.254.0.7:9300}{cdhilmrstw}{ml.machine\_memory=4294496256, xpack.installed=true, transform.node=true, ml.max\_open\_jobs=20}] from last-known cluster state; node term 34, last-accep  
> ted version 0 in term 0

```auto

 
 Here are my YML files
> Master Node:
> cluster.name: my-cluster
> node.name: master1
> node.master: true
> network.host: ServerA
> http.port: 9200
> discovery.seed_hosts: [ServerB, ServerA]
> cluster.initial_master_nodes: [master1]
> 
> 
> Data Node:
> cluster.name: my-cluster
> node.name: data1
> node.data: true
> network.host:ServerB
> http.port: 9200
> discovery.seed_hosts: [ServerB, ServerA]
> cluster.initial_master_nodes: [master1]
```

---

<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:** [February 8, 2021, 5:43pm UTC](https://discuss.elastic.co/t/master-not-discovered-or-elected-yet-an-election-requires-two-nodes-with-ids/260755/2 "2021-02-08T17:43:20Z")

</div>

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