# Check/Test whether a node can join cluster or not

**URL:** <https://discuss.elastic.co/t/check-test-whether-a-node-can-join-cluster-or-not/173854>\
**Category:** Elasticsearch\
**Created:** [March 26, 2019, 4:47am UTC](https://discuss.elastic.co/t/check-test-whether-a-node-can-join-cluster-or-not/173854 "2019-03-26T04:47:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)\
**Post date:** [March 26, 2019, 4:47am UTC](https://discuss.elastic.co/t/check-test-whether-a-node-can-join-cluster-or-not/173854/1 "2019-03-26T04:47:13Z")

</div>

Hi,  
I don't want my node to join any cluster,so i followed these instructions [https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html).  
But i want to test whether those settings work or not.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 26, 2019, 4:48am UTC](https://discuss.elastic.co/t/check-test-whether-a-node-can-join-cluster-or-not/173854/2 "2019-03-26T04:48:28Z")

</div>

The only way to test that is to start the node.

---

<div class="post-metadata">

**Author:** ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)\
**Post date:** [March 26, 2019, 4:50am UTC](https://discuss.elastic.co/t/check-test-whether-a-node-can-join-cluster-or-not/173854/3 "2019-03-26T04:50:22Z")

</div>

I have started the node,but how to check the results

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 26, 2019, 4:51am UTC](https://discuss.elastic.co/t/check-test-whether-a-node-can-join-cluster-or-not/173854/4 "2019-03-26T04:51:03Z")

</div>

The logs will show what happens when it starts up. You can also check `_cat/nodes` to make sure it is a single node cluster.

---

<div class="post-metadata">

**Author:** ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)\
**Post date:** [March 26, 2019, 4:54am UTC](https://discuss.elastic.co/t/check-test-whether-a-node-can-join-cluster-or-not/173854/5 "2019-03-26T04:54:26Z")

</div>

where do i find that file in source code,because i am debugging it in ide.

---

<div class="post-metadata">

**Author:** ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)\
**Post date:** [March 26, 2019, 5:12am UTC](https://discuss.elastic.co/t/check-test-whether-a-node-can-join-cluster-or-not/173854/6 "2019-03-26T05:12:36Z")

</div>

In the logs i got this line **[o.e.d.DiscoveryModule] [node-0] using discovery type [single-node] and host providers [settings, file]** does that confirm me .  
I changed it in **DiscoveryModule.java** file.  
public static final String ZEN\_DISCOVERY\_TYPE = "single-node"; //earlier it was zen  
public static final String ZEN2\_DISCOVERY\_TYPE = "single-node";

---

<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:** [April 23, 2019, 5:26am UTC](https://discuss.elastic.co/t/check-test-whether-a-node-can-join-cluster-or-not/173854/7 "2019-04-23T05:26:17Z")

</div>

Closed on April 23, 2019, 5:26am UTC

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