# Not able join two nodes elastic search clustering

**URL:** <https://discuss.elastic.co/t/not-able-join-two-nodes-elastic-search-clustering/227771>\
**Category:** Elasticsearch\
**Created:** [April 13, 2020, 11:53am UTC](https://discuss.elastic.co/t/not-able-join-two-nodes-elastic-search-clustering/227771 "2020-04-13T11:53:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek1](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@abhishek1](https://discuss.elastic.co/u/abhishek1)\
**Post date:** [April 13, 2020, 11:53am UTC](https://discuss.elastic.co/t/not-able-join-two-nodes-elastic-search-clustering/227771/1 "2020-04-13T11:53:19Z")

</div>

I am not able to join two nodes while configuring cluster setup for elasticsearch 7.4.2 version.  
I am getting below error

```auto
org.elasticsearch.transport.RemoteTransportException: [node-1][10.112.2.93:9300][internal:cluster/coordination/join]
Caused by: java.lang.IllegalStateException: failure when sending a validation request to node
	at org.elasticsearch.cluster.coordination.Coordinator$2.onFailure(Coordinator.java:513) ~[elasticsearch-7.4.2.jar:7.4.2]
	at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:59) ~[elasticsearch-7.4.2.jar:7.4.2]
	at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1120) ~[elasticsearch-7.4.2.jar:7.4.2]
	at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1120) ~[elasticsearch-7.4.2.jar:7.4.2]
	at org.elasticsearch.transport.InboundHandler.lambda$handleException$2(InboundHandler.java:243) ~[elasticsearch-7.4.2.jar:7.4.2]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:703) ~[elasticsearch-7.4.2.jar:7.4.2]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:830) [?:?]
Caused by: org.elasticsearch.transport.RemoteTransportException: [node-2][10.112.2.129:9300][internal:cluster/coordination/join/validate]
Caused by: org.elasticsearch.cluster.coordination.CoordinationStateRejectedException: join validation on cluster state with a different cluster uuid eLciY_QHRjOBkWo6Y94taw than local cluster uuid UCZP2y6pSpmp0jp7tZj-WA, rejecting
	at org.elasticsearch.cluster.coordination.JoinHelper.lambda$new$4(JoinHelper.java:148) ~[elasticsearch-7.4.2.jar:7.4.2]
	at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler$1.doRun(SecurityServerTransportInterceptor.java:257) ~[?:?]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-7.4.2.jar:7.4.2]
	at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.messageReceived(SecurityServerTransportInterceptor.java:315) ~[?:?]
	at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:63) ~[elasticsearch-7.4.2.jar:7.4.2]
	at org.elasticsearch.transport.InboundHandler$RequestHandler.doRun(InboundHandler.java:264) ~[elasticsearch-7.4.2.jar:7.4.2]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:773) ~[elasticsearch-7.4.2.jar:7.4.2]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-7.4.2.jar:7.4.2]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:830) ~[?:?]

```

Could you please help me out

---

<div class="post-metadata">

**Author:** ![abhishek1](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@abhishek1](https://discuss.elastic.co/u/abhishek1)\
**Post date:** [April 13, 2020, 12:08pm UTC](https://discuss.elastic.co/t/not-able-join-two-nodes-elastic-search-clustering/227771/2 "2020-04-13T12:08:31Z")

</div>

YML configured as below

```auto
cluster.name: TEST

node.name: node-1
node.master: true 
node.data: false

path.data: /var/lib/elasticsearch

path.logs: /var/log/elasticsearch

network.host: server1

discovery.seed_hosts: ["server1", "server2"]

xpack.ml.enabled: false
xpack.security.enabled: false

```

---

<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 13, 2020, 1:09pm UTC](https://discuss.elastic.co/t/not-able-join-two-nodes-elastic-search-clustering/227771/3 "2020-04-13T13:09:29Z")

</div>

> [@abhishek1](#):
>
> `Caused by: org.elasticsearch.cluster.coordination.CoordinationStateRejectedException: join validation on cluster state with a different cluster uuid eLciY_QHRjOBkWo6Y94taw than local cluster uuid UCZP2y6pSpmp0jp7tZj-WA, rejecting`

These nodes used to belong to different clusters so you cannot join them together.

Likely you need to read [this note in the manual](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-bootstrap-cluster.html#modules-discovery-bootstrap-cluster-joining).

---

<div class="post-metadata">

**Author:** ![abhishek1](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@abhishek1](https://discuss.elastic.co/u/abhishek1)\
**Post date:** [April 13, 2020, 2:05pm UTC](https://discuss.elastic.co/t/not-able-join-two-nodes-elastic-search-clustering/227771/4 "2020-04-13T14:05:30Z")

</div>

Hi,  
Thanks for reply ..  
But i have given same cluster name in both yml file .. is there anything need to change in yml.  
In yml file i have given same cluster name for node1 and node 2

---

<div class="post-metadata">

**Author:** ![abhishek1](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@abhishek1](https://discuss.elastic.co/u/abhishek1)\
**Post date:** [April 13, 2020, 2:08pm UTC](https://discuss.elastic.co/t/not-able-join-two-nodes-elastic-search-clustering/227771/5 "2020-04-13T14:08:13Z")

</div>

```auto
I didnt mention cluster.initial_master_nodes in my yml file .
I have one master and one data node so in that case how can i configure cluster.initial_master_nodes.

For node1 i can give cluster.initial_master_nodes: node 1 then what about node2 .

```

Could you please clarify if i did some mistake in yml configuration.

---

<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 11, 2020, 2:08pm UTC](https://discuss.elastic.co/t/not-able-join-two-nodes-elastic-search-clustering/227771/6 "2020-05-11T14:08:15Z")

</div>

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