Master not discovered yet: have discovered

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

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