# Elasticsearch doesn't find the cluster

**URL:** <https://discuss.elastic.co/t/elasticsearch-doesnt-find-the-cluster/133926>\
**Category:** Elasticsearch\
**Created:** [May 30, 2018, 6:50pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-find-the-cluster/133926 "2018-05-30T18:50:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanV](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@DanV](https://discuss.elastic.co/u/DanV)\
**Post date:** [May 30, 2018, 6:50pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-find-the-cluster/133926/1 "2018-05-30T18:50:17Z")

</div>

Hello,

i'm trying to connect a elasticsearch search node (node2) in a server to a already existing elasticsearch node (node1) in another server with the goal of data replication from node1 to node2. The problem appear after the configuration on elasticsearch.yml, i think i did everything accordingly to what i need, but when i check the attributes of my elasticsearch i get the following result:

Elasticsearch node1:

```
 {
   "name" : "AvantNodeold_1",
   "cluster_name" : "AvantData",
   "cluster_uuid" : "83EJmDNrRVirBWcZDgs9ew",
   "version" : {
   "number" : "5.6.9",
   "build_hash" : "877a590",
   "build_date" : "2018-04-12T16:25:14.838Z",
   "build_snapshot" : false,
   "lucene_version" : "6.6.1"
  },
 "tagline" : "You Know, for Search"

```

}

Elasticsearch node2:

{  
"name" : "Avantnodenew\_1",  
"cluster\_name" : "AvantData",  
"cluster\_uuid" : "_na_",  
"version" : {  
"number" : "5.6.9",  
"build\_hash" : "877a590",  
"build\_date" : "2018-04-12T16:25:14.838Z",  
"build\_snapshot" : false,  
"lucene\_version" : "6.6.1"  
},  
"tagline" : "You Know, for Search"  
}

in the result you can see that the cluster\_uuid from node2 doesn't match the one in node1 (the pre-existing node). Did i configure something wrong? What could be the problem?

---

<div class="post-metadata">

**Author:** ![DanV](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@DanV](https://discuss.elastic.co/u/DanV)\
**Post date:** [May 30, 2018, 6:52pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-find-the-cluster/133926/2 "2018-05-30T18:52:03Z")

</div>

ELASTICSEARCH NODE1 (elasticsearch.yml):

# ======================== Elasticsearch Configuration =========================

# 

# NOTE: Elasticsearch comes with reasonable defaults for most settings.

# Before you set out to tweak and tune the configuration, make sure you

# understand what are you trying to accomplish and the consequences.

# 

# The primary way of configuring a node is via this file. This template lists

# the most important settings you may want to configure for a production cluster.

# 

# Please consult the documentation for further information on configuration options:

# [https://www.elastic.co/guide/en/elasticsearch/reference/index.html](https://www.elastic.co/guide/en/elasticsearch/reference/index.html)

# 

# ---------------------------------- Cluster -----------------------------------

# 

# Use a descriptive name for your cluster:

# 

cluster.name: AvantData

# 

# ------------------------------------ Node ------------------------------------

# 

# Use a descriptive name for the node:

# 

node.name: AvantNodeold\_1

# 

# Add custom attributes to the node:

# 

#node.attr.rack: r1  
node.attr.tipono: hot

# 

# ----------------------------------- Paths ------------------------------------

# 

# Path to directory where to store the data (separate multiple locations by comma):

# 

path.data: /home/AvantData/dados/

# 

# Path to log files:

# 

path.logs: /home/AvantData/logs/

# 

# Path to backup files(snapshots):

# 

#path.repo: /mnt/backup/AvantData

# ----------------------------------- Memory -----------------------------------

# 

# Lock the memory on startup:

# 

#bootstrap.memory\_lock: true

# 

# Make sure that the heap size is set to about half the memory available

# on the system and that the owner of the process is allowed to use this

# limit.

# 

# Elasticsearch performs poorly when the system is swapping the memory.

# 

# ---------------------------------- Network -----------------------------------

# 

# Set the bind address to a specific IP (IPv4 or IPv6):

# 

network.host: 192.168.102.5

# 

# Set a custom port for HTTP:

# 

http.port: 9200

# 

# For more information, consult the network module documentation.

# 

# --------------------------------- Discovery ----------------------------------

# 

# Pass an initial list of hosts to perform discovery when new node is started:

# The default list of hosts is ["127.0.0.1", "[::1]"]

# 

#discovery.zen.ping.unicast.hosts: ["host1", "host2"]  
discovery.zen.ping.unicast.hosts: ["192.168.102.5", "192.168.102.60"]

# 

# Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):

# 

#discovery.zen.minimum\_master\_nodes: 3  
discovery.zen.minimum\_master\_nodes: 1

# 

# For more information, consult the zen discovery module documentation.

# 

# ---------------------------------- Gateway -----------------------------------

# 

# Block initial recovery after a full cluster restart until N nodes are started:

# 

#gateway.recover\_after\_nodes: 3

# 

# For more information, consult the gateway module documentation.

# 

# ---------------------------------- Various -----------------------------------

# 

# Require explicit names when deleting indices:

# 

#action.destructive\_requires\_name: true  
node.master : true  
node.data : true  
node.ingest : false  
indices.query.bool.max\_clause\_count: 10000

---

<div class="post-metadata">

**Author:** ![DanV](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@DanV](https://discuss.elastic.co/u/DanV)\
**Post date:** [May 30, 2018, 6:52pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-find-the-cluster/133926/3 "2018-05-30T18:52:52Z")

</div>

ELASTICSEARCH NODE2 (elasticsearch.yml):

# ======================== Elasticsearch Configuration =========================

# 

# NOTE: Elasticsearch comes with reasonable defaults for most settings.

# Before you set out to tweak and tune the configuration, make sure you

# understand what are you trying to accomplish and the consequences.

# 

# The primary way of configuring a node is via this file. This template lists

# the most important settings you may want to configure for a production cluster.

# 

# Please consult the documentation for further information on configuration options:

# [https://www.elastic.co/guide/en/elasticsearch/reference/index.html](https://www.elastic.co/guide/en/elasticsearch/reference/index.html)

# 

# ---------------------------------- Cluster -----------------------------------

# 

# Use a descriptive name for your cluster:

# 

cluster.name: AvantData

# 

# ------------------------------------ Node ------------------------------------

# 

# Use a descriptive name for the node:

# 

node.name: Avantnodenew\_1

# 

# Add custom attributes to the node:

# 

#node.attr.rack: r1  
node.attr.tipono: hot

# 

# ----------------------------------- Paths ------------------------------------

# 

# Path to directory where to store the data (separate multiple locations by comma):

# 

#path.data: /path/to/data  
path.data: /avantdata/dados

# 

# Path to log files:

# 

#path.logs: /path/to/logs  
path.logs: /avantdata/logs

# 

# ----------------------------------- Memory -----------------------------------

# 

# Lock the memory on startup:

# 

#bootstrap.memory\_lock: true

# 

# Make sure that the heap size is set to about half the memory available

# on the system and that the owner of the process is allowed to use this

# limit.

# 

# Elasticsearch performs poorly when the system is swapping the memory.

# 

# ---------------------------------- Network -----------------------------------

# 

# Set the bind address to a specific IP (IPv4 or IPv6):

# 

network.host: 0.0.0.0

# 

# Set a custom port for HTTP:

# 

http.port: 9200

# 

# For more information, consult the network module documentation.

# 

# --------------------------------- Discovery ----------------------------------

# 

# Pass an initial list of hosts to perform discovery when new node is started:

# The default list of hosts is ["127.0.0.1", "[::1]"]

# 

#discovery.zen.ping.unicast.hosts: ["host1", "host2"]  
discovery.zen.ping.unicast.hosts: ["192.168.102.5"]

# 

# Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):

# 

discovery.zen.minimum\_master\_nodes: 2

# 

# For more information, consult the zen discovery module documentation.

# 

# ---------------------------------- Gateway -----------------------------------

# 

# Block initial recovery after a full cluster restart until N nodes are started:

# 

#gateway.recover\_after\_nodes: 3

---

<div class="post-metadata">

**Author:** ![LucasPeixoto](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@LucasPeixoto](https://discuss.elastic.co/u/LucasPeixoto)\
**Post date:** [May 30, 2018, 9:07pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-find-the-cluster/133926/4 "2018-05-30T21:07:24Z")

</div>

I have the same issue too! Actually trying to resolve it, but no success.

---

<div class="post-metadata">

**Author:** ![Fram\_Souza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fram_souza/32/24833_2.png) [@Fram\_Souza](https://discuss.elastic.co/u/Fram_Souza)\
**Post date:** [May 30, 2018, 9:17pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-find-the-cluster/133926/5 "2018-05-30T21:17:25Z")

</div>

Hi @DanV

In "discovery.zen.ping.unicast.hosts" in both files, you need to add the IP of all the nodes in the cluster, if we have dedicated nodes, it is just the IP of the master.

In "discovery.zen.minimum\_master\_nodes:" in both files, you need have a same number, in a cluster with 2 nodes, will be impossible avoid a split brain, but in your case a correct number is 2. (total number of master-eligible nodes / 2 + 1)

---

<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:** [June 27, 2018, 9:17pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-find-the-cluster/133926/6 "2018-06-27T21:17:29Z")

</div>

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