# Master not discovered yet: have discovered

**URL:** <https://discuss.elastic.co/t/master-not-discovered-yet-have-discovered/265432>\
**Category:** Elasticsearch\
**Created:** [February 25, 2021, 4:37am UTC](https://discuss.elastic.co/t/master-not-discovered-yet-have-discovered/265432 "2021-02-25T04:37:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![111447](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111447/32/84512_2.png) [@111447](https://discuss.elastic.co/u/111447)\
**Post date:** [February 25, 2021, 4:37am UTC](https://discuss.elastic.co/t/master-not-discovered-yet-have-discovered/265432/1 "2021-02-25T04:37:06Z")

</div>

I am currently using Elasticsearh 7.10.2 in ec2 of aws.  
I would like to link the node of Elasticsearch installed in each ec2.  
However, the master not discovered yet error occurs.  
What can I do to solve it?

* * *

The contents of my master(node-1) yml file.

* * *

cluster.name: my-cluster  
node.name: node-1  
node.master: true  
node.data: true  
node.ingest: true

network.host: [\_ local \_ , \_ site\_]  
http.port: 9200  
transport.tcp.port: 9300

discovery.seed\_hosts:  
- node-1.private.ipv4:9300  
- node-2.private.ipv4:9300

cluster.initial\_master\_nodes:  
- node-1

path.data: /var/lib/elasticsearch  
path.logs: /var/log/elasticsearch

* * *

The contents of my data(node-2) yml file.

* * *

cluster.name: my-cluster  
node.name: node-2  
node.master: false  
node.data: true  
node.ingest: true

network.host: [\_ local \_ , \_ site \_]  
http.port: 9200  
transport.tcp.port: 9300

discovery.seed\_hosts:  
- node-1.private.ipv4:9300  
- node-2.private.ipv4:9300

cluster.initial\_master\_nodes:  
- node-1

path.data: /var/lib/elasticsearch  
path.logs: /var/log/elasticsearch

---

<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:** [March 25, 2021, 4:37am UTC](https://discuss.elastic.co/t/master-not-discovered-yet-have-discovered/265432/2 "2021-03-25T04:37:42Z")

</div>

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