# Elasticsearch 7.12 cluster 3 node installation

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-12-cluster-3-node-installation/271480>\
**Category:** Elasticsearch\
**Created:** [April 28, 2021, 7:51am UTC](https://discuss.elastic.co/t/elasticsearch-7-12-cluster-3-node-installation/271480 "2021-04-28T07:51:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cuongnp](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@cuongnp](https://discuss.elastic.co/u/cuongnp)\
**Post date:** [April 28, 2021, 7:51am UTC](https://discuss.elastic.co/t/elasticsearch-7-12-cluster-3-node-installation/271480/1 "2021-04-28T07:51:12Z")

</div>

Hi all,  
I tried to setup 3 Elasticsearch nodes with configuration below

- file /etc/hosts (on 3 nodes)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/1/a12b0c5370f3e2432329d5bbce6214db295aa914.png)
- elasticsearch.yml  
NODE 1 (master-1)  
cluster.name: es-cluster  
node.name: "master-1"  
node.master: true  
node.data: true  
path.data: /home/elasticsearch/elasticsearch-7.12.0/data  
path.logs: /home/elasticsearch/elasticsearch-7.12.0/logs  
network.host: [_local_, _site_]  
discovery.seed\_hosts: ["172.19.11.74", "172.19.11.75", "172.19.11.76"]  
cluster.initial\_master\_nodes: ["master-1", "master-2", "master-3"]

NODE 2 (master-2)  
cluster.name: es-cluster  
node.name: "master-2"  
node.master: true  
node.data: true  
path.data: /home/elasticsearch/elasticsearch-7.12.0/data  
path.logs: /home/elasticsearch/elasticsearch-7.12.0/logs  
network.host: [_local_, _site_]  
discovery.seed\_hosts: ["172.19.11.74", "172.19.11.75", "172.19.11.76"]  
cluster.initial\_master\_nodes: ["master-1", "master-2", "master-3"]

NODE 3 (master-3)  
cluster.name: es-cluster  
node.name: "master-3"  
node.master: true  
node.data: true  
path.data: /home/elasticsearch/elasticsearch-7.12.0/data  
path.logs: /home/elasticsearch/elasticsearch-7.12.0/logs  
network.host: [_local_, _site_]  
discovery.seed\_hosts: ["172.19.11.74", "172.19.11.75", "172.19.11.76"]  
cluster.initial\_master\_nodes: ["master-1", "master-2", "master-3"]

I expect to get 3 node with both master and data role in a cluster but this is the result when I get information on each node (only 1 node in cluster)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/e/ce5669e5924955989c5b95c8bf016f07bfcc6947.png)

Can you guys have any advice for my configuration ?, tks

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [April 28, 2021, 8:33am UTC](https://discuss.elastic.co/t/elasticsearch-7-12-cluster-3-node-installation/271480/2 "2021-04-28T08:33:40Z")

</div>

The configuration looks ok now, but I think you used a different configuration earlier that has got you stuck. The simplest thing to try is to delete `/home/elasticsearch/elasticsearch-7.12.0/data` on all the nodes and try again. See [these docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-bootstrap-cluster.html#modules-discovery-bootstrap-cluster-joining) for more information.

---

<div class="post-metadata">

**Author:** ![cuongnp](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@cuongnp](https://discuss.elastic.co/u/cuongnp)\
**Post date:** [April 28, 2021, 10:37am UTC](https://discuss.elastic.co/t/elasticsearch-7-12-cluster-3-node-installation/271480/3 "2021-04-28T10:37:49Z")

</div>

> [@DavidTurner](#):
>
> /home/elasticsearch/elasticsearch-7.12.0/data

Thanks David, It works now

---

<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:** [May 26, 2021, 10:37am UTC](https://discuss.elastic.co/t/elasticsearch-7-12-cluster-3-node-installation/271480/4 "2021-05-26T10:37:57Z")

</div>

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