# Not part of cluster

**URL:** <https://discuss.elastic.co/t/not-part-of-cluster/5585>\
**Category:** Elasticsearch\
**Created:** [October 13, 2011, 10:05am UTC](https://discuss.elastic.co/t/not-part-of-cluster/5585 "2011-10-13T10:05:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominik\_symonowicz](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@dominik\_symonowicz](https://discuss.elastic.co/u/dominik_symonowicz)\
**Post date:** [October 13, 2011, 10:05am UTC](https://discuss.elastic.co/t/not-part-of-cluster/5585/1 "2011-10-13T10:05:08Z")

</div>

Hello folks.

So i have problem i see warning...  
"WARNING: [Johnny Ohm] Node [Smuggler II][4rNtWrqJSLKKkOB0uhXntg]  
[inet[/10.0.5.69:9300]] not part of the cluster Cluster [dom],  
ignoring...  
13-Oct-2011 10:57:27  
org.elasticsearch.common.logging.slf4j.Slf4jESLogger internalWarn"  
which appear endlessly.... which means somebody screw up  
settings ....which what can happen and it is expected ,but i want  
handle that by throw exception ....  
.Yes,i want... if somebody mess name of cluster ,then i want put to  
logic to handle that .. (for example switch off server , send email  
to Mr. Kimchy with complain that finding useful docs about  
elasticsearch is like looking for needle in the hay in dark room

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [October 14, 2011, 12:09pm UTC](https://discuss.elastic.co/t/not-part-of-cluster/5585/2 "2011-10-14T12:09:04Z")

</div>

When happens is that you use the TransportClient, and connect to a node that  
does not have the same cluster name as the TransportClient. You need to make  
sure to configure the transport client with the correct set of nodes. I  
guess it make sense to be able to register a callback to be notified that  
the listed node is not part of the cluster, or something similar, open an  
issue.

On Thu, Oct 13, 2011 at 12:05 PM, dominik symonowicz [dmspastor@gmail.com](mailto:dmspastor@gmail.com)wrote:

> Hello folks.
> 
> So i have problem i see warning...  
> "WARNING: [Johnny Ohm] Node [Smuggler II][4rNtWrqJSLKKkOB0uhXntg]  
> [inet[/10.0.5.69:9300]] not part of the cluster Cluster [dom],  
> ignoring...  
> 13-Oct-2011 10:57:27  
> org.elasticsearch.common.logging.slf4j.Slf4jESLogger internalWarn"  
> which appear endlessly.... which means somebody screw up  
> settings ....which what can happen and it is expected ,but i want  
> handle that by throw exception ....  
> .Yes,i want... if somebody mess name of cluster ,then i want put to  
> logic to handle that .. (for example switch off server , send email  
> to Mr. Kimchy with complain that finding useful docs about  
> elasticsearch is like looking for needle in the hay in dark room

---

<div class="post-metadata">

**Author:** ![Yann\_Barraud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yann_barraud/32/1108_2.png) [@Yann\_Barraud](https://discuss.elastic.co/u/Yann_Barraud)\
**Post date:** [December 30, 2013, 12:19pm UTC](https://discuss.elastic.co/t/not-part-of-cluster/5585/3 "2013-12-30T12:19:58Z")

</div>

Hi,

Do we have an option to be notified if we are not connected to a cluster ?

Thanks.

Le vendredi 14 octobre 2011 14:09:04 UTC+2, kimchy a écrit :

> When happens is that you use the TransportClient, and connect to a node  
> that does not have the same cluster name as the TransportClient. You need  
> to make sure to configure the transport client with the correct set of  
> nodes. I guess it make sense to be able to register a callback to be  
> notified that the listed node is not part of the cluster, or something  
> similar, open an issue.
> 
> On Thu, Oct 13, 2011 at 12:05 PM, dominik symonowicz \<[dmsp...@gmail.com](mailto:dmsp...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Hello folks.
> > 
> > So i have problem i see warning...  
> > "WARNING: [Johnny Ohm] Node [Smuggler II][4rNtWrqJSLKKkOB0uhXntg]  
> > [inet[/10.0.5.69:9300]] not part of the cluster Cluster [dom],  
> > ignoring...  
> > 13-Oct-2011 10:57:27  
> > org.elasticsearch.common.logging.slf4j.Slf4jESLogger internalWarn"  
> > which appear endlessly.... which means somebody screw up  
> > settings ....which what can happen and it is expected ,but i want  
> > handle that by throw exception ....  
> > .Yes,i want... if somebody mess name of cluster ,then i want put to  
> > logic to handle that .. (for example switch off server , send email  
> > to Mr. Kimchy with complain that finding useful docs about  
> > elasticsearch is like looking for needle in the hay in dark room

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c59a34c4-f1e5-4df7-9e4e-7b5503bf16c0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c59a34c4-f1e5-4df7-9e4e-7b5503bf16c0%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [December 30, 2013, 12:47pm UTC](https://discuss.elastic.co/t/not-part-of-cluster/5585/4 "2013-12-30T12:47:20Z")

</div>

After client.addTransportAddress(...), you can check if  
client.connectedNodes() is not null and is not empty, then TransportClient  
is connected.

Jörg

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEHuXKJ2QTaHZgEGASw3PTOi3u2XzLDG\_6AWO1j\_vV-2g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEHuXKJ2QTaHZgEGASw3PTOi3u2XzLDG_6AWO1j_vV-2g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Yann\_Barraud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yann_barraud/32/1108_2.png) [@Yann\_Barraud](https://discuss.elastic.co/u/Yann_Barraud)\
**Post date:** [December 30, 2013, 1:43pm UTC](https://discuss.elastic.co/t/not-part-of-cluster/5585/5 "2013-12-30T13:43:38Z")

</div>

Hi,

I also opened an issue after talking to Shay

> <https://github.com/elastic/elasticsearch/issues/4569>
>
> Hi,
> 
> It would be really nice to let developers know when a Transport Client is n…ot connected to the right cluster, instead of simply logging a WARN exception.
> 
> Developers should be able to handle that on their own, and decided whether it is a warning or an error.
> 
> Thanks.
> Yann

Cordialement,  
Yann Barraud

2013/12/30 [joergprante@gmail.com](mailto:joergprante@gmail.com) [joergprante@gmail.com](mailto:joergprante@gmail.com)

> After client.addTransportAddress(...), you can check if  
> client.connectedNodes() is not null and is not empty, then TransportClient  
> is connected.
> 
> Jörg
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/br8ZXUGni20/unsubscribe](https://groups.google.com/d/topic/elasticsearch/br8ZXUGni20/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEHuXKJ2QTaHZgEGASw3PTOi3u2XzLDG\_6AWO1j\_vV-2g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEHuXKJ2QTaHZgEGASw3PTOi3u2XzLDG_6AWO1j_vV-2g%40mail.gmail.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CA%2BhvuXcuXNZh4P50y8MT9xFrCv6VL9Ju3NR3bRHw1rLodqRr5g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CA%2BhvuXcuXNZh4P50y8MT9xFrCv6VL9Ju3NR3bRHw1rLodqRr5g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 1:59am UTC](https://discuss.elastic.co/t/not-part-of-cluster/5585/6 "2017-07-06T01:59:01Z")

</div>


