# Node is not joining to the cluster on ubuntu 18.04. Error: master not ready yet

**URL:** <https://discuss.elastic.co/t/node-is-not-joining-to-the-cluster-on-ubuntu-18-04-error-master-not-ready-yet/191769>\
**Category:** Elasticsearch\
**Created:** [July 23, 2019, 8:55am UTC](https://discuss.elastic.co/t/node-is-not-joining-to-the-cluster-on-ubuntu-18-04-error-master-not-ready-yet/191769 "2019-07-23T08:55:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priya\_Jajam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priya_jajam/32/48693_2.png) [@Priya\_Jajam](https://discuss.elastic.co/u/Priya_Jajam)\
**Post date:** [July 23, 2019, 8:55am UTC](https://discuss.elastic.co/t/node-is-not-joining-to-the-cluster-on-ubuntu-18-04-error-master-not-ready-yet/191769/1 "2019-07-23T08:55:06Z")

</div>

I am trying to create 2 node elastic search cluster. In node 1 cluster is created but while adding node 2 as data node to the cluster i am facing error:master not decided yet. Here is the yml file for adding node 2 to cluster.

version: '2.2'  
services:  
es02:  
image: [docker.elastic.co/elasticsearch/elasticsearch:7.0.1](http://docker.elastic.co/elasticsearch/elasticsearch:7.0.1)  
container\_name: es02  
environment:  
- node.name=10.x.x.2  
- discovery.seed\_hosts=10.x.x.1(master node for cluster)  
- discovery.zen.minimum\_master\_nodes=1  
- cluster.initial\_master\_nodes=10.x.x.1  
- cluster.name=docker-cluster  
- node.master=false  
- node.data=true  
- bootstrap.memory\_lock=true  
#- bootstrap.system\_call\_filter: false  
#- http.cors.enabled=true  
#- http.cors.allow-origin=\*  
#- transport.profiles.default.port=9200  
#- transport.tcp.port=9200  
- "ES\_JAVA\_OPTS=-Xms512m -Xmx512m"  
#- "discovery.zen.ping.unicast.hosts=10.x.x.1:9200"  
ulimits:  
memlock:  
soft: -1  
hard: -1  
volumes:  
- esdata02:/usr/share/elasticsearch/data  
#ports:  
#- 9200:9200  
#- 9300:9300  
networks:  
- esnet  
volumes:  
esdata02:  
driver: local  
networks:  
esnet:

Could you please help me out from this. Thanks in advance.

---

<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:** [August 20, 2019, 8:55am UTC](https://discuss.elastic.co/t/node-is-not-joining-to-the-cluster-on-ubuntu-18-04-error-master-not-ready-yet/191769/2 "2019-08-20T08:55:12Z")

</div>

Closed on August 20, 2019, 8:55am UTC

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