# Facing Issue - Elasticsearch Cluster Setting - 7.2

**URL:** <https://discuss.elastic.co/t/facing-issue-elasticsearch-cluster-setting-7-2/197682>\
**Category:** Elasticsearch\
**Created:** [September 2, 2019, 11:55am UTC](https://discuss.elastic.co/t/facing-issue-elasticsearch-cluster-setting-7-2/197682 "2019-09-02T11:55:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitmjadav](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@amitmjadav](https://discuss.elastic.co/u/amitmjadav)\
**Post date:** [September 2, 2019, 11:55am UTC](https://discuss.elastic.co/t/facing-issue-elasticsearch-cluster-setting-7-2/197682/1 "2019-09-02T11:55:22Z")

</div>

Hi...

I have configured 5 node of elasticsearch 7.2.0  
Now not able to connect them... They are not discovering them selves..

I have done following setting on each node configuration file.

discovery\_hosts : [node1,node2,node3,node4,node5]  
cluster\_initial\_master\_nodes: [node1,node2,node3,node4,node5]

Please help me.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 2, 2019, 1:08pm UTC](https://discuss.elastic.co/t/facing-issue-elasticsearch-cluster-setting-7-2/197682/2 "2019-09-02T13:08:04Z")

</div>

please take time to write up a proper report, including **exact** Elasticsearch version, log excerpts in a gist as well as configurations. See [https://www.elastic.co/help](https://www.elastic.co/help)

Thank you!

---

<div class="post-metadata">

**Author:** ![yash.tandon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yash.tandon/32/53428_2.png) [@yash.tandon](https://discuss.elastic.co/u/yash.tandon)\
**Post date:** [September 2, 2019, 1:47pm UTC](https://discuss.elastic.co/t/facing-issue-elasticsearch-cluster-setting-7-2/197682/3 "2019-09-02T13:47:55Z")

</div>

In both of these options you only need to provide the ip of those node which you want to make as master nodes so their is no need to provide all your 5 nodes ip here also delete all your logs stored in /var/log/elasticsearch and data in /var/lib/elasticsearch. Then do a fresh config .  
Configure these options in your yml file:-

discovery.seed\_hosts: ["master\_node\_ip"]  
cluster.initial\_master\_nodes: ["master\_node\_ip"]  
also provide a same cluster name across all nodes then you will be good to go.  
at last restart your service and check the cluster state, goto https://master\_node\_ip:9200/\_cluster/state

---

<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:** [September 2, 2019, 2:46pm UTC](https://discuss.elastic.co/t/facing-issue-elasticsearch-cluster-setting-7-2/197682/4 "2019-09-02T14:46:50Z")

</div>

> [@yash.tandon](#):
>
> cluster.initial\_master\_nodes: ["master\_node\_ip"]

`cluster.initial_master_nodes` should normally be set to the `node.name` of the master node(s), not their IP address(es). It's technically possible to use either, but using the IP address(es) seems to cause a good deal of confusion so the node name is the recommended practice.

---

<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:** [September 30, 2019, 2:47pm UTC](https://discuss.elastic.co/t/facing-issue-elasticsearch-cluster-setting-7-2/197682/5 "2019-09-30T14:47:02Z")

</div>

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