Two nodes belongs to different different server not able to communicate each other within a Cluster

Hi,

I just want to make two nodes cluster which are running on different different server.
One node is for only master eligible node and other one will work as both master and data node.
When i run the master eligible node, getting below mentioned error

[o.e.c.c.ClusterFormationFailureHelper] [master_node] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [hostname1, hostname2] to bootstrap a cluster: have discovered [{master_node}{Qx1Zge11T0-cg___qP6NHA}{oDjCWGbbTW6SAUXHP-QKZg}{localhost}{127.0.0.1:9300}{ilm}{ml.machine_memory=33466339328, xpack.installed=true, ml.max_open_jobs=20}]; discovery will continue using [hostname1:9300, hostname2:9300] from hosts providers and [{master_node}{Qx1Zge11T0-cg___qP6NHA}{oDjCWGbbTW6SAUXHP-QKZg}{localhost}{127.0.0.1:9300}{ilm}{ml.machine_memory=33466339328, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0

elasticserach.yml fle for only master eligible node

            cluster.name: SYSLOG_Cluster1
             node.name: master_node
             node.master: true
             node.data: false
             path.data: /opt/data/elasticsearch
             path.logs: /var/log/elasticsearch
             network.host: hostname1
             transport.host: localhost
             http.port: 9200
             discovery.seed_hosts: ["hostname1","hostname2"]
              cluster.initial_master_nodes: ["hostname1","hostname2"]

I am using latest version of elastic search("elasticsearch-7.5.2-x86_64.rpm")
elasticserach.yml fle for both master and data eligible node :

cluster.name: SYSLOG_Cluster1
         node.name: master_data_node
         node.master: true
         node.data: true
         path.data: /var/lib/elasticsearch
         path.logs: /var/log/elasticsearch
         network.host: hostname2
         transport.host: localhost
         http.port: 9200
         discovery.seed_hosts: ["hostname1","hostname2"]
          cluster.initial_master_nodes: ["hostname1","hostname2"]

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