# Not enough master nodes discovered during pinging

**URL:** <https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging/102240>\
**Category:** Elasticsearch\
**Created:** [September 29, 2017, 10:11am UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging/102240 "2017-09-29T10:11:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joy4fun](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@Joy4fun](https://discuss.elastic.co/u/Joy4fun)\
**Post date:** [September 29, 2017, 10:11am UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging/102240/1 "2017-09-29T10:11:36Z")

</div>

I have 3 aws ec2 instances(sink1,sink2,sink3)in us-west-2a, us-west-2b, us-west-2c respectively, each of the instance has only one elasticsearch service (5.6.2)that I tryna start up to form a 3 nodes-cluster.

Three machines are booted from the same AMI, they have the same elasticsearch config.

Now two of them(sink1,sink2)successfully join the cluster, only one(sink3) can not  
[ec2-user@ip-172-31-0-222 ~]$ curl sink3:9200  
{  
"name" : "sink3\_9200",  
"cluster\_name" : "es\_cluster",  
"cluster\_uuid" : "_na_",  
"version" : {  
"number" : "5.6.2",  
"build\_hash" : "57e20f3",  
"build\_date" : "2017-09-23T13:16:45.703Z",  
"build\_snapshot" : false,  
"lucene\_version" : "6.6.1"  
},  
"tagline" : "You Know, for Search"  
}  
[ec2-user@ip-172-31-0-222 ~]$ curl sink2:9200  
{  
"name" : "sink2\_9200",  
"cluster\_name" : "es\_cluster",  
"cluster\_uuid" : "aS5nE-iHQBCF43oTJU933g",  
"version" : {  
"number" : "5.6.2",  
"build\_hash" : "57e20f3",  
"build\_date" : "2017-09-23T13:16:45.703Z",  
"build\_snapshot" : false,  
"lucene\_version" : "6.6.1"  
},  
"tagline" : "You Know, for Search"  
}  
[ec2-user@ip-172-31-0-222 ~]$ curl sink1:9200  
{  
"name" : "sink1\_9200",  
"cluster\_name" : "es\_cluster",  
"cluster\_uuid" : "aS5nE-iHQBCF43oTJU933g",  
"version" : {  
"number" : "5.6.2",  
"build\_hash" : "57e20f3",  
"build\_date" : "2017-09-23T13:16:45.703Z",  
"build\_snapshot" : false,  
"lucene\_version" : "6.6.1"  
},  
"tagline" : "You Know, for Search"  
}

Here's the log of the one couldn't get in:

[2017-09-29T09:46:00,499][WARN][o.e.d.z.ZenDiscovery] [sink3\_9200] not enough master nodes discovered during pinging (found [[Candidate{node={sink3\_9200}{qokAxuFxSj6dGt5-A-YThA}{Ns\_kdrpvRVS\_JQRKUvWtZw}{172.31.0.222}{172.31.0.222:9300}{aws\_availability\_zone=us-west-2c, rack=us-west-2c}, clusterStateVersion=-1}]], but needed [2]), pinging again  
[2017-09-29T09:46:30,529][WARN][o.e.d.z.ZenDiscovery] [sink3\_9200] not enough master nodes discovered during pinging (found [[Candidate{node={sink3\_9200}{qokAxuFxSj6dGt5-A-YThA}{Ns\_kdrpvRVS\_JQRKUvWtZw}{172.31.0.222}{172.31.0.222:9300}{aws\_availability\_zone=us-west-2c, rack=us-west-2c}, clusterStateVersion=-1}]], but needed [2]), pinging again

Here's sink3's config, sink2 and sink1 have the same content except different node.attr.rack, [discovery.ec2.tag.Name](http://discovery.ec2.tag.Name)

config:

* * *

[cluster.name](http://cluster.name): es\_cluster  
[node.name](http://node.name): sink3\_9200  
node.attr.rack: us-west-2c  
network.host: _ec2_  
http.port: 9200  
node.master: true  
node.data: true  
plugin.mandatory: discovery-ec2, repository-s3  
cloud:  
aws:  
access\_key: XXXXXXXXXXXXXXX  
secret\_key: XXXXXXXXXXXXXXX  
discovery.zen.hosts\_provider: ec2  
discovery.type: ec2  
discovery.ec2.groups: Kafka\_Spark\_group  
discovery.ec2.host\_type: private\_ip  
[discovery.ec2.tag.Name](http://discovery.ec2.tag.Name): sink3  
discovery.ec2.availability\_zones: us-west-2a, us-west-2b, us-west-2c  
cloud.aws.region: us-west-2  
cloud.aws.protocol: http  
cloud.node.auto\_attributes: true  
cluster.routing.allocation.awareness.attributes: aws\_availability\_zone  
discovery.zen.minimum\_master\_nodes: 2

Any idea about this?

---

<div class="post-metadata">

**Author:** ![Joy4fun](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@Joy4fun](https://discuss.elastic.co/u/Joy4fun)\
**Post date:** [September 29, 2017, 10:29am UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging/102240/2 "2017-09-29T10:29:58Z")

</div>

Solved....pls close this thread

---

<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:** [October 27, 2017, 10:30am UTC](https://discuss.elastic.co/t/not-enough-master-nodes-discovered-during-pinging/102240/3 "2017-10-27T10:30:21Z")

</div>

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