Not enough master nodes discovered during pinging (found [[]], but needed [1]), pinging again

(Ganesh) #1

HI Team,
I have 5 server and i want to form cluster.

Initially i'm working around 2 server cluster formation. my idea is 1 master and 4 data node.

when i try to form cluster formation between 2 server i'm getting master not discover error and anyone help me on this,

master conf: "docker-cluster" hostname1.node
    node.master: true false
    node.ingest: false
    network.publish_host:hostname1 ["",""]
    discovery.zen.minimum_master_nodes: 1
    #xpack.license.self_generated.type: trial false
    xpack.monitoring.enabled : true true /usr/share/elasticsearch/config/elasticsearch/elasticsearch.key /usr/share/elasticsearch/config/elasticsearch/elasticsearch.crt none certificate

Data conf: "docker-cluster" hostname2.node
node.master: false true
node.ingest: false
#bootstrap.memory_lock: true ["",""]
discovery.zen.minimum_master_nodes: 1

#xpack.license.self_generated.type: trial false
xpack.monitoring.enabled: true true /usr/share/elasticsearch/config/elasticsearch/elasticsearch.key /usr/share/elasticsearch/config/elasticsearch/elasticsearch.crt none certificate

curl -XGET 'http://localhost:9200/_cluster/state?pretty'

      "error" : {
        "root_cause" : [
            "type" : "master_not_discovered_exception",
            "reason" : null
        "type" : "master_not_discovered_exception",
        "reason" : null
      "status" : 503

when i run the curl command im getting below message on data server,

 curl -XGET 'http://localhost:9200/_cat/indices'

(Florian Kelbert) #2

Are you sure that those nodes are able to communicate on the Elasticsearch port 9300? Do the hostnames resolve properly?

(Ganesh) #3

Thanks for your reply @fkelbert

please find the below response which im getting,
telnet xx.xx.xx.xx 9300
Trying xx.xx.xx.xx...
telnet: connect to address xx.xx.xx.xx: Connection refused

Quick info i'm using x-pack and i already the " true"

i didnt get this point

(Ganesh) #4

how can i check the communication of port 9300

(Ganesh) #5

Issue resolved @fkelbert

(system) #6

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