# NoNodeAvailableException

**URL:** <https://discuss.elastic.co/t/nonodeavailableexception/11548>\
**Category:** Elasticsearch\
**Created:** [April 11, 2013, 12:00pm UTC](https://discuss.elastic.co/t/nonodeavailableexception/11548 "2013-04-11T12:00:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pat\_3](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@Pat\_3](https://discuss.elastic.co/u/Pat_3)\
**Post date:** [April 11, 2013, 12:00pm UTC](https://discuss.elastic.co/t/nonodeavailableexception/11548/1 "2013-04-11T12:00:01Z")

</div>

Hi,

I'm having a problem that is driving me crazy: I'm trying to perform a  
search using the Java API. Strangely, this has been working a while ago.  
My Java code looks like this:  
Client client = new TransportClient().addTransportAddress(  
new InetSocketTransportAddress( "127.0.0.1", 9300 ) );

```
    SearchRequestBuilder builder = client.prepareSearch();
    builder.setQuery( QueryBuilders.matchQuery( "pool", 20 ) );
    SearchResponse response = builder.execute().actionGet();

```

And I get the following exception:  
11.04.2013 13:43:44 org.elasticsearch.plugins  
INFO: [Kofi Whitemane] loaded [], sites []  
11.04.2013 13:43:44 org.elasticsearch.client.transport  
WARNUNG: [Kofi Whitemane] node [#transport#-1][inet[/127.0.0.1:9300]] not  
part of the cluster Cluster [elasticsearch], ignoring...  
Exception in thread "main" org.elasticsearch.client.transport.  
NoNodeAvailableException: No node available  
at org.elasticsearch.client.transport.TransportClientNodesService.  
execute(TransportClientNodesService.java:202)  
at org.elasticsearch.client.transport.support.InternalTransportClient.  
execute(InternalTransportClient.java:106)  
at org.elasticsearch.client.support.AbstractClient.search(AbstractClient  
.java:210)  
at org.elasticsearch.client.transport.TransportClient.search(  
TransportClient.java:388)  
at org.elasticsearch.action.search.SearchRequestBuilder.doExecute(  
SearchRequestBuilder.java:816)  
at org.elasticsearch.action.ActionRequestBuilder.execute(  
ActionRequestBuilder.java:62)  
at org.elasticsearch.action.ActionRequestBuilder.execute(  
ActionRequestBuilder.java:57)  
at TestESQuery.main(TestESQuery.java:33)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.  
java:39)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(  
DelegatingMethodAccessorImpl.java:25)  
at java.lang.reflect.Method.invoke(Method.java:597)  
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)  
The server log shows lots of errors like:  
[2013-04-11 13:48:32,361][WARN][transport.netty] [foo] exception  
caught on transport layer [[id: 0xfc474e13, /127.0.0.1:57992 =\> /127.0.0.1:  
9300  
]], closing connection  
java.io.IOException: Eine vorhandene Verbindung wurde vom Remotehostgeschlossen  
at sun.nio.ch.SocketDispatcher.read0(Native Method)  
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)  
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:202)  
at sun.nio.ch.IOUtil.read(IOUtil.java:169)  
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243)  
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(  
NioWorker.java:64)  
at org.elasticsearch.common.netty.channel.socket.nio.  
AbstractNioWorker.process(AbstractNioWorker.java:107)  
at org.elasticsearch.common.netty.channel.socket.nio.  
AbstractNioSelector.run(AbstractNioSelector.java:312)  
at org.elasticsearch.common.netty.channel.socket.nio.  
AbstractNioWorker.run(AbstractNioWorker.java:88)  
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(  
NioWorker.java:178)  
at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(  
ThreadRenamingRunnable.java:108)  
at org.elasticsearch.common.netty.util.internal.  
DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(  
ThreadPoolExecutor.java:886)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(  
ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:662)  
I checked the following:  
Same version of ES on both sides (I tried 0.20.6 and 0.90.0RC2).  
Same JDK version.  
Querying via HTTP works fine.  
Debugger shows that the exception is thrown by builder.execute().

As I said, once it has been working fine. Any ideas?

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 11, 2013, 12:18pm UTC](https://discuss.elastic.co/t/nonodeavailableexception/11548/2 "2013-04-11T12:18:04Z")

</div>

Check your clustername. You might have changed it in your nodes.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 11 avr. 2013 à 14:00, Pat [elasticsearch@hushmail.com](mailto:elasticsearch@hushmail.com) a écrit :

> Hi,
> 
> I'm having a problem that is driving me crazy: I'm trying to perform a search using the Java API. Strangely, this has been working a while ago.  
> My Java code looks like this:  
> Client client = new TransportClient().addTransportAddress(  
> new InetSocketTransportAddress( "127.0.0.1", 9300 ) );
> 
> ```
> SearchRequestBuilder builder = client.prepareSearch();
> builder.setQuery( QueryBuilders.matchQuery( "pool", 20 ) );
> SearchResponse response = builder.execute().actionGet();
> 
> ```
> 
> And I get the following exception:  
> 11.04.2013 13:43:44 org.elasticsearch.plugins  
> INFO: [Kofi Whitemane] loaded , sites   
> 11.04.2013 13:43:44 org.elasticsearch.client.transport  
> WARNUNG: [Kofi Whitemane] node [#transport#-1][inet[/127.0.0.1:9300]] not part of the cluster Cluster [elasticsearch], ignoring...  
> Exception in thread "main" org.elasticsearch.client.transport.NoNodeAvailableException: No node available  
> at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:202)  
> at org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106)  
> at org.elasticsearch.client.support.AbstractClient.search(AbstractClient.java:210)  
> at org.elasticsearch.client.transport.TransportClient.search(TransportClient.java:388)  
> at org.elasticsearch.action.search.SearchRequestBuilder.doExecute(SearchRequestBuilder.java:816)  
> at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:62)  
> at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:57)  
> at TestESQuery.main(TestESQuery.java:33)  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
> at java.lang.reflect.Method.invoke(Method.java:597)  
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)  
> The server log shows lots of errors like:  
> [2013-04-11 13:48:32,361][WARN][transport.netty] [foo] exception caught on transport layer [[id: 0xfc474e13, /127.0.0.1:57992 =\> /127.0.0.1:9300  
> ]], closing connection  
> java.io.IOException: Eine vorhandene Verbindung wurde vom Remotehost geschlossen  
> at sun.nio.ch.SocketDispatcher.read0(Native Method)  
> at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)  
> at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:202)  
> at sun.nio.ch.IOUtil.read(IOUtil.java:169)  
> at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243)  
> at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:64)  
> at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)  
> at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)  
> at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)  
> at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
> at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
> at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:662)  
> I checked the following:  
> Same version of ES on both sides (I tried 0.20.6 and 0.90.0RC2).  
> Same JDK version.  
> Querying via HTTP works fine.  
> Debugger shows that the exception is thrown by builder.execute().
> 
> As I said, once it has been working fine. Any ideas?
> 
> --  
> 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).  
> 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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Pat\_3](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@Pat\_3](https://discuss.elastic.co/u/Pat_3)\
**Post date:** [April 11, 2013, 1:05pm UTC](https://discuss.elastic.co/t/nonodeavailableexception/11548/3 "2013-04-11T13:05:31Z")

</div>

Thanks, that seems to work! I'm still a bit confused because as far as I  
remember I didn't speficy the cluster name in my client before (although my  
memory may be wrong).  
And the error messages aren't really helpful...

Am Donnerstag, 11. April 2013 14:18:04 UTC+2 schrieb David Pilato:

> Check your clustername. You might have changed it in your nodes.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 11 avr. 2013 à 14:00, Pat \<[elasti...@hushmail.com](mailto:elasti...@hushmail.com) \<javascript:\>\> a  
> écrit :
> 
> Hi,
> 
> I'm having a problem that is driving me crazy: I'm trying to perform a  
> search using the Java API. Strangely, this has been working a while ago.  
> My Java code looks like this:  
> Client client = new TransportClient().addTransportAddress(  
> new InetSocketTransportAddress( "127.0.0.1", 9300 ) );
> 
> ```
> SearchRequestBuilder builder = client.prepareSearch();
> builder.setQuery( QueryBuilders.matchQuery( "pool", 20 ) );
> SearchResponse response = builder.execute().actionGet();
> 
> ```
> 
> And I get the following exception:  
> 11.04.2013 13:43:44 org.elasticsearch.plugins  
> INFO: [Kofi Whitemane] loaded , sites   
> 11.04.2013 13:43:44 org.elasticsearch.client.transport  
> WARNUNG: [Kofi Whitemane] node [#transport#-1][inet[/127.0.0.1:9300]] not  
> part of the cluster Cluster [elasticsearch], ignoring...  
> Exception in thread "main" org.elasticsearch.client.transport.  
> NoNodeAvailableException: No node available  
> at org.elasticsearch.client.transport.TransportClientNodesService.  
> execute(TransportClientNodesService.java:202)  
> at org.elasticsearch.client.transport.support.InternalTransportClient.  
> execute(InternalTransportClient.java:106)  
> at org.elasticsearch.client.support.AbstractClient.search(  
> AbstractClient.java:210)  
> at org.elasticsearch.client.transport.TransportClient.search(  
> TransportClient.java:388)  
> at org.elasticsearch.action.search.SearchRequestBuilder.doExecute(  
> SearchRequestBuilder.java:816)  
> at org.elasticsearch.action.ActionRequestBuilder.execute(  
> ActionRequestBuilder.java:62)  
> at org.elasticsearch.action.ActionRequestBuilder.execute(  
> ActionRequestBuilder.java:57)  
> at TestESQuery.main(TestESQuery.java:33)  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at sun.reflect.NativeMethodAccessorImpl.invoke(  
> NativeMethodAccessorImpl.java:39)  
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(  
> DelegatingMethodAccessorImpl.java:25)  
> at java.lang.reflect.Method.invoke(Method.java:597)  
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120  
> )  
> The server log shows lots of errors like:  
> [2013-04-11 13:48:32,361][WARN][transport.netty] [foo]exception caught on transport layer  
> [[id: 0xfc474e13, /127.0.0.1:57992 =\> /127.0.0.1:9300  
> ]], closing connection  
> java.io.IOException: Eine vorhandene Verbindung wurde vom Remotehostgeschlossen  
> at sun.nio.ch.SocketDispatcher.read0(Native Method)  
> at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)  
> at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:202)  
> at sun.nio.ch.IOUtil.read(IOUtil.java:169)  
> at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243)  
> at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.  
> read(NioWorker.java:64)  
> at org.elasticsearch.common.netty.channel.socket.nio.  
> AbstractNioWorker.process(AbstractNioWorker.java:107)  
> at org.elasticsearch.common.netty.channel.socket.nio.  
> AbstractNioSelector.run(AbstractNioSelector.java:312)  
> at org.elasticsearch.common.netty.channel.socket.nio.  
> AbstractNioWorker.run(AbstractNioWorker.java:88)  
> at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run  
> (NioWorker.java:178)  
> at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(  
> ThreadRenamingRunnable.java:108)  
> at org.elasticsearch.common.netty.util.internal.  
> DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(  
> ThreadPoolExecutor.java:886)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(  
> ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:662)  
> I checked the following:  
> Same version of ES on both sides (I tried 0.20.6 and 0.90.0RC2).  
> Same JDK version.  
> Querying via HTTP works fine.  
> Debugger shows that the exception is thrown by builder.execute().
> 
> As I said, once it has been working fine. Any ideas?
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> 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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 11, 2013, 1:12pm UTC](https://discuss.elastic.co/t/nonodeavailableexception/11548/4 "2013-04-11T13:12:44Z")

</div>

In fact, error message is helpful:

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 11 avr. 2013 à 15:05, Pat [elasticsearch@hushmail.com](mailto:elasticsearch@hushmail.com) a écrit :

> > node [#transport#-1][inet[/127.0.0.1:9300]] not part of the cluster Cluster [elasticsearch], ignoring...

😉  
David

> Thanks, that seems to work! I'm still a bit confused because as far as I remember I didn't speficy the cluster name in my client before (although my memory may be wrong).  
> And the error messages aren't really helpful...
> 
> Am Donnerstag, 11. April 2013 14:18:04 UTC+2 schrieb David Pilato:  
> Check your clustername. You might have changed it in your nodes.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 11 avr. 2013 à 14:00, Pat [elasti...@hushmail.com](mailto:elasti...@hushmail.com) a écrit :
> 
> > Hi,
> > 
> > I'm having a problem that is driving me crazy: I'm trying to perform a search using the Java API. Strangely, this has been working a while ago.  
> > My Java code looks like this:  
> > Client client = new TransportClient().addTransportAddress(  
> > new InetSocketTransportAddress( "127.0.0.1", 9300 ) );
> > 
> > ```
> > SearchRequestBuilder builder = client.prepareSearch();
> > builder.setQuery( QueryBuilders.matchQuery( "pool", 20 ) );
> > SearchResponse response = builder.execute().actionGet();
> > 
> > ```
> > 
> > And I get the following exception:  
> > 11.04.2013 13:43:44 org.elasticsearch.plugins  
> > INFO: [Kofi Whitemane] loaded , sites   
> > 11.04.2013 13:43:44 org.elasticsearch.client.transport  
> > WARNUNG: [Kofi Whitemane] node [#transport#-1][inet[/127.0.0.1:9300]] not part of the cluster Cluster [elasticsearch], ignoring...  
> > Exception in thread "main" org.elasticsearch.client.transport.NoNodeAvailableException: No node available  
> > at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:202)  
> > at org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106)  
> > at org.elasticsearch.client.support.AbstractClient.search(AbstractClient.java:210)  
> > at org.elasticsearch.client.transport.TransportClient.search(TransportClient.java:388)  
> > at org.elasticsearch.action.search.SearchRequestBuilder.doExecute(SearchRequestBuilder.java:816)  
> > at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:62)  
> > at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:57)  
> > at TestESQuery.main(TestESQuery.java:33)  
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
> > at java.lang.reflect.Method.invoke(Method.java:597)  
> > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)  
> > The server log shows lots of errors like:  
> > [2013-04-11 13:48:32,361][WARN][transport.netty] [foo] exception caught on transport layer [[id: 0xfc474e13, /127.0.0.1:57992 =\> /127.0.0.1:9300  
> > ]], closing connection  
> > java.io.IOException: Eine vorhandene Verbindung wurde vom Remotehost geschlossen  
> > at sun.nio.ch.SocketDispatcher.read0(Native Method)  
> > at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)  
> > at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:202)  
> > at sun.nio.ch.IOUtil.read(IOUtil.java:169)  
> > at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243)  
> > at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:64)  
> > at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)  
> > at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)  
> > at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)  
> > at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
> > at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)  
> > at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
> > at java.lang.Thread.run(Thread.java:662)  
> > I checked the following:  
> > Same version of ES on both sides (I tried 0.20.6 and 0.90.0RC2).  
> > Same JDK version.  
> > Querying via HTTP works fine.  
> > Debugger shows that the exception is thrown by builder.execute().
> > 
> > As I said, once it has been working fine. Any ideas?
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.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).  
> 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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Pat\_3](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@Pat\_3](https://discuss.elastic.co/u/Pat_3)\
**Post date:** [April 15, 2013, 6:34am UTC](https://discuss.elastic.co/t/nonodeavailableexception/11548/5 "2013-04-15T06:34:24Z")

</div>

Ok, you're right. I didn't consider this message an error and concentrated  
on the exception message...

Am Donnerstag, 11. April 2013 15:12:44 UTC+2 schrieb David Pilato:

> In fact, error message is helpful:
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 11 avr. 2013 à 15:05, Pat \<[elasti...@hushmail.com](mailto:elasti...@hushmail.com) \<javascript:\>\> a  
> écrit :
> 
> node [#transport#-1][inet[/127.0.0.1:9300]] \*not part of the cluster
> 
> > Cluster [elasticsearch]\*, ignoring...
> 
> 😉  
> David
> 
> Thanks, that seems to work! I'm still a bit confused because as far as I  
> remember I didn't speficy the cluster name in my client before (although my  
> memory may be wrong).  
> And the error messages aren't really helpful...
> 
> Am Donnerstag, 11. April 2013 14:18:04 UTC+2 schrieb David Pilato:
> 
> > Check your clustername. You might have changed it in your nodes.
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 11 avr. 2013 à 14:00, Pat [elasti...@hushmail.com](mailto:elasti...@hushmail.com) a écrit :
> > 
> > Hi,
> > 
> > I'm having a problem that is driving me crazy: I'm trying to perform a  
> > search using the Java API. Strangely, this has been working a while ago.  
> > My Java code looks like this:  
> > Client client = new TransportClient().addTransportAddress(  
> > new InetSocketTransportAddress( "127.0.0.1", 9300 ) );
> > 
> > ```
> > SearchRequestBuilder builder = client.prepareSearch();
> > builder.setQuery( QueryBuilders.matchQuery( "pool", 20 ) );
> > SearchResponse response = builder.execute().actionGet();
> > 
> > ```
> > 
> > And I get the following exception:  
> > 11.04.2013 13:43:44 org.elasticsearch.plugins  
> > INFO: [Kofi Whitemane] loaded , sites   
> > 11.04.2013 13:43:44 org.elasticsearch.client.transport  
> > WARNUNG: [Kofi Whitemane] node [#transport#-1][inet[/127.0.0.1:9300]]  
> > not part of the cluster Cluster [elasticsearch], ignoring...  
> > Exception in thread "main" org.elasticsearch.client.transport.  
> > NoNodeAvailableException: No node available  
> > at org.elasticsearch.client.transport.TransportClientNodesService.  
> > execute(TransportClientNodesService.java:202)  
> > at org.elasticsearch.client.transport.support.InternalTransportClient  
> > .execute(InternalTransportClient.java:106)  
> > at org.elasticsearch.client.support.AbstractClient.search(  
> > AbstractClient.java:210)  
> > at org.elasticsearch.client.transport.TransportClient.search(  
> > TransportClient.java:388)  
> > at org.elasticsearch.action.search.SearchRequestBuilder.doExecute(  
> > SearchRequestBuilder.java:816)  
> > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > ActionRequestBuilder.java:62)  
> > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > ActionRequestBuilder.java:57)  
> > at TestESQuery.main(TestESQuery.java:33)  
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> > at sun.reflect.NativeMethodAccessorImpl.invoke(  
> > NativeMethodAccessorImpl.java:39)  
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(  
> > DelegatingMethodAccessorImpl.java:25)  
> > at java.lang.reflect.Method.invoke(Method.java:597)  
> > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:  
> > 120)  
> > The server log shows lots of errors like:  
> > [2013-04-11 13:48:32,361][WARN][transport.netty] [foo]exception caught on transport layer  
> > [[id: 0xfc474e13, /127.0.0.1:57992 =\> /127.0.0.1:9300  
> > ]], closing connection  
> > java.io.IOException: Eine vorhandene Verbindung wurde vom Remotehostgeschlossen  
> > at sun.nio.ch.SocketDispatcher.read0(Native Method)  
> > at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)  
> > at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:202)  
> > at sun.nio.ch.IOUtil.read(IOUtil.java:169)  
> > at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243)  
> > at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.  
> > read(NioWorker.java:64)  
> > at org.elasticsearch.common.netty.channel.socket.nio.  
> > AbstractNioWorker.process(AbstractNioWorker.java:107)  
> > at org.elasticsearch.common.netty.channel.socket.nio.  
> > AbstractNioSelector.run(AbstractNioSelector.java:312)  
> > at org.elasticsearch.common.netty.channel.socket.nio.  
> > AbstractNioWorker.run(AbstractNioWorker.java:88)  
> > at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.  
> > run(NioWorker.java:178)  
> > at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run  
> > (ThreadRenamingRunnable.java:108)  
> > at org.elasticsearch.common.netty.util.internal.  
> > DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(  
> > ThreadPoolExecutor.java:886)  
> > at java.util.concurrent.ThreadPoolExecutor$Worker.run(  
> > ThreadPoolExecutor.java:908)  
> > at java.lang.Thread.run(Thread.java:662)  
> > I checked the following:  
> > Same version of ES on both sides (I tried 0.20.6 and 0.90.0RC2).  
> > Same JDK version.  
> > Querying via HTTP works fine.  
> > Debugger shows that the exception is thrown by builder.execute().
> > 
> > As I said, once it has been working fine. Any ideas?
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> 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).  
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, 2:41am UTC](https://discuss.elastic.co/t/nonodeavailableexception/11548/6 "2017-07-06T02:41:10Z")

</div>


