# Org.elasticsearch.client.transport.NoNodeAvailableException using ELB

**URL:** <https://discuss.elastic.co/t/org-elasticsearch-client-transport-nonodeavailableexception-using-elb/11662>\
**Category:** Elasticsearch\
**Created:** [April 22, 2013, 11:09pm UTC](https://discuss.elastic.co/t/org-elasticsearch-client-transport-nonodeavailableexception-using-elb/11662 "2013-04-22T23:09:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pm1](https://avatars.discourse-cdn.com/v4/letter/p/8c91f0/32.png) [@pm1](https://discuss.elastic.co/u/pm1)\
**Post date:** [April 22, 2013, 11:09pm UTC](https://discuss.elastic.co/t/org-elasticsearch-client-transport-nonodeavailableexception-using-elb/11662/1 "2013-04-22T23:09:55Z")

</div>

We have simple test setup in a 2 cluster node with ELB in ec2 environment  
(0.20.5). Running a simple script to index few documents in elastic search  
using ELB run into

Exception in thread "main" org.elasticsearch.client.transport.NoNodeAvailableException:  
No node available  
at org.elasticsearch.client.transport.TransportClientNodesService$  
RetryListener.onFailure(TransportClientNodesService.java:246)  
at org.elasticsearch.client.transport.TransportClientNodesService.  
execute(TransportClientNodesService.java:214)  
at org.elasticsearch.client.transport.support.  
InternalTransportClient.execute(InternalTransportClient.java:106)  
at org.elasticsearch.client.support.AbstractClient.update(  
AbstractClient.java:105)  
at org.elasticsearch.client.transport.TransportClient.  
update(TransportClient.java:318)  
at org.elasticsearch.action.update.UpdateRequestBuilder.doExecute(  
UpdateRequestBuilder.java:298)  
at org.elasticsearch.action.ActionRequestBuilder.execute(  
ActionRequestBuilder.java:62)  
at org.elasticsearch.action.ActionRequestBuilder.execute(  
ActionRequestBuilder.java:57)

However there is no problem so far running against the individual nodes. I  
am using simple transport client

ImmutableSettings.Builder elasticsearchSettings =  
ImmutableSettings.settingsBuilder().put("cluster.name",  
options.getEsCluster());  
TransportClient client = new TransportClient(elasticsearchSettings);

thanks

--  
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 23, 2013, 6:10am UTC](https://discuss.elastic.co/t/org-elasticsearch-client-transport-nonodeavailableexception-using-elb/11662/2 "2013-04-23T06:10:29Z")

</div>

Hard to say.  
Did you open 9300 ports on your node instances?

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

Le 23 avr. 2013 à 01:09, pm [parmod.mehta@gmail.com](mailto:parmod.mehta@gmail.com) a écrit :

> We have simple test setup in a 2 cluster node with ELB in ec2 environment (0.20.5). Running a simple script to index few documents in Elasticsearch using ELB run into
> 
> Exception in thread "main" org.elasticsearch.client.transport.NoNodeAvailableException: No node available  
> at org.elasticsearch.client.transport.TransportClientNodesService$RetryListener.onFailure(TransportClientNodesService.java:246)  
> at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:214)  
> at org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106)  
> at org.elasticsearch.client.support.AbstractClient.update(AbstractClient.java:105)  
> at org.elasticsearch.client.transport.TransportClient.update(TransportClient.java:318)  
> at org.elasticsearch.action.update.UpdateRequestBuilder.doExecute(UpdateRequestBuilder.java:298)  
> at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:62)  
> at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:57)
> 
> However there is no problem so far running against the individual nodes. I am using simple transport client
> 
> ImmutableSettings.Builder elasticsearchSettings = ImmutableSettings.settingsBuilder().put("cluster.name", options.getEsCluster());  
> TransportClient client = new TransportClient(elasticsearchSettings);
> 
> thanks
> 
> --  
> 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:** ![pm1](https://avatars.discourse-cdn.com/v4/letter/p/8c91f0/32.png) [@pm1](https://discuss.elastic.co/u/pm1)\
**Post date:** [April 23, 2013, 2:27pm UTC](https://discuss.elastic.co/t/org-elasticsearch-client-transport-nonodeavailableexception-using-elb/11662/3 "2013-04-23T14:27:45Z")

</div>

Yeah no problem with ports, I can telnet 9200 and 9300 just fine. Exception happens in middle of indexing documents

Thanks

Sent from my iPhone

On Apr 22, 2013, at 11:10 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Hard to say.  
> Did you open 9300 ports on your node instances?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 23 avr. 2013 à 01:09, pm [parmod.mehta@gmail.com](mailto:parmod.mehta@gmail.com) a écrit :
> 
> > We have simple test setup in a 2 cluster node with ELB in ec2 environment (0.20.5). Running a simple script to index few documents in Elasticsearch using ELB run into
> > 
> > Exception in thread "main" org.elasticsearch.client.transport.NoNodeAvailableException: No node available  
> > at org.elasticsearch.client.transport.TransportClientNodesService$RetryListener.onFailure(TransportClientNodesService.java:246)  
> > at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:214)  
> > at org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106)  
> > at org.elasticsearch.client.support.AbstractClient.update(AbstractClient.java:105)  
> > at org.elasticsearch.client.transport.TransportClient.update(TransportClient.java:318)  
> > at org.elasticsearch.action.update.UpdateRequestBuilder.doExecute(UpdateRequestBuilder.java:298)  
> > at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:62)  
> > at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:57)
> > 
> > However there is no problem so far running against the individual nodes. I am using simple transport client
> > 
> > ImmutableSettings.Builder elasticsearchSettings = ImmutableSettings.settingsBuilder().put("cluster.name", options.getEsCluster());  
> > TransportClient client = new TransportClient(elasticsearchSettings);
> > 
> > thanks
> > 
> > --  
> > 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 a topic in the Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/0qM4YJvLeQE/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/0qM4YJvLeQE/unsubscribe?hl=en-US).  
> > To unsubscribe from this group and all its topics, 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:** ![jonckvanderkogel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonckvanderkogel/32/76690_2.png) [@jonckvanderkogel](https://discuss.elastic.co/u/jonckvanderkogel)\
**Post date:** [May 23, 2013, 6:52am UTC](https://discuss.elastic.co/t/org-elasticsearch-client-transport-nonodeavailableexception-using-elb/11662/4 "2013-05-23T06:52:34Z")

</div>

Any news on this item, I'm having exactly the same problem. "No node  
available" in the middle of indexing, hundreds of documents are processed  
just fine, then at varying times I get this exception. I have played around  
with giving ES (much) more memory, other GC settings, etc... the problem  
persists though it's quite random when it occurs. One pattern I did notice  
is that I usually get the following warning around the time when the  
exception occurs:

[2013-05-22 18:10:09,631][WARN][monitor.jvm] [Inspector  
Clouseau] [gc][PS MarkSweep][80682][26] duration [21.3s], collections  
[1]/[21.9s  
], total [21.3s]/[31s], memory [824.2mb]-\>[200.4mb]/[1.7gb], all\_pools  
{[Code Cache] [6.3mb]-\>[6.3mb]/[48mb]}{[PS Eden Space]  
[189.5mb]-\>[573.9kb]/[569.5mb]}{[PS Survivor Space]  
[20.8mb]-\>[0b]/[54.6mb]}{[PS Old Gen] [613.8mb]-\>[199.8mb]/[1.3gb]}{[PS  
Perm Gen] [32.5mb]-\>[32.5mb]/[82mb]}

I don't really understand why this warning was thrown because I was  
profiling the JVM with VisualVM and the JVM had plenty of heap space left.

Ayone any ideas?

Thanks, Jonck

On Tuesday, April 23, 2013 4:27:45 PM UTC+2, pm wrote:

> Yeah no problem with ports, I can telnet 9200 and 9300 just fine.  
> Exception happens in middle of indexing documents
> 
> Thanks
> 
> Sent from my iPhone
> 
> On Apr 22, 2013, at 11:10 PM, David Pilato \<[da...@pilato.fr](mailto:da...@pilato.fr) \<javascript:\>\>  
> wrote:
> 
> Hard to say.  
> Did you open 9300 ports on your node instances?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 23 avr. 2013 à 01:09, pm \<[parmod...@gmail.com](mailto:parmod...@gmail.com) \<javascript:\>\> a écrit :
> 
> We have simple test setup in a 2 cluster node with ELB in ec2 environment  
> (0.20.5). Running a simple script to index few documents in Elasticsearch  
> using ELB run into
> 
> Exception in thread "main" org.elasticsearch.client.transport.NoNodeAvailableException:  
> No node available  
> at org.elasticsearch.client.transport.TransportClientNodesService$  
> RetryListener.onFailure(TransportClientNodesService.java:246)  
> at org.elasticsearch.client.transport.TransportClientNodesService.  
> execute(TransportClientNodesService.java:214)  
> at org.elasticsearch.client.transport.support.  
> InternalTransportClient.execute(InternalTransportClient.java:106)  
> at org.elasticsearch.client.support.AbstractClient.update(  
> AbstractClient.java:105)  
> at org.elasticsearch.client.transport.TransportClient.  
> update(TransportClient.java:318)  
> at org.elasticsearch.action.update.UpdateRequestBuilder.doExecute(  
> UpdateRequestBuilder.java:298)  
> at org.elasticsearch.action.ActionRequestBuilder.execute(  
> ActionRequestBuilder.java:62)  
> at org.elasticsearch.action.ActionRequestBuilder.execute(  
> ActionRequestBuilder.java:57)
> 
> However there is no problem so far running against the individual nodes. I  
> am using simple transport client
> 
> ImmutableSettings.Builder elasticsearchSettings =  
> ImmutableSettings.settingsBuilder().put("cluster.name",  
> options.getEsCluster());  
> TransportClient client = new TransportClient(elasticsearchSettings);
> 
> thanks
> 
> --  
> 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 a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/0qM4YJvLeQE/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/0qM4YJvLeQE/unsubscribe?hl=en-US)  
> .  
> To unsubscribe from this group and all its topics, 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:** ![Ramdev\_Wudali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramdev_wudali/32/7894_2.png) [@Ramdev\_Wudali](https://discuss.elastic.co/u/Ramdev_Wudali)\
**Post date:** [October 25, 2013, 4:47pm UTC](https://discuss.elastic.co/t/org-elasticsearch-client-transport-nonodeavailableexception-using-elb/11662/5 "2013-10-25T16:47:46Z")

</div>

This is a follow up on this question. I would like to get an answer to this  
as well. My situation is as follows:

I am indexing a corpus of documents (2.4M+) to elastic. My configuration  
except of the cluster.name is all just as it is out of the box. (i.e. no  
changes to memory settings or port settings). I am getting an error when  
I am through around 290K docs.

her eis my stack trace :

Exception in thread "main"  
org.springframework.beans.factory.BeanCreationException: Error creating  
bean with name 'esClient': Invocation of init method failed; nested  
exception is org.elasticsearch.client.transport.NoNodeAvailableException:  
No node available  
at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)  
at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)  
at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)  
at  
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
at  
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
at  
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
at  
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
at  
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:610)  
at  
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
at  
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
at  
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)  
at  
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)  
at  
some.package.containing.elastic.code.TransferJDBCToElastic.main(TransferJDBCToElastic.java:60)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:601)  
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)  
Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: No  
node available  
at  
org.elasticsearch.client.transport.TransportClientNodesService$RetryListener.onFailure(TransportClientNodesService.java:249)  
at  
org.elasticsearch.action.TransportActionNodeProxy$1.handleException(TransportActionNodeProxy.java:84)  
at  
org.elasticsearch.transport.TransportService$Adapter$2$1.run(TransportService.java:311)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:722)

I have been using the spring-elasticsearch module to initialize my client.  
(instead of using the TransportClient method).

any updates regarding this issue is much appreciated.

Ramdev

On Thursday, 23 May 2013 01:52:34 UTC-5, [jonckvan...@gmail.com](mailto:jonckvan...@gmail.com) wrote:

> Any news on this item, I'm having exactly the same problem. "No node  
> available" in the middle of indexing, hundreds of documents are processed  
> just fine, then at varying times I get this exception. I have played around  
> with giving ES (much) more memory, other GC settings, etc... the problem  
> persists though it's quite random when it occurs. One pattern I did notice  
> is that I usually get the following warning around the time when the  
> exception occurs:
> 
> [2013-05-22 18:10:09,631][WARN][monitor.jvm] [Inspector  
> Clouseau] [gc][PS MarkSweep][80682][26] duration [21.3s], collections  
> [1]/[21.9s  
> ], total [21.3s]/[31s], memory [824.2mb]-\>[200.4mb]/[1.7gb], all\_pools  
> {[Code Cache] [6.3mb]-\>[6.3mb]/[48mb]}{[PS Eden Space]  
> [189.5mb]-\>[573.9kb]/[569.5mb]}{[PS Survivor Space]  
> [20.8mb]-\>[0b]/[54.6mb]}{[PS Old Gen] [613.8mb]-\>[199.8mb]/[1.3gb]}{[PS  
> Perm Gen] [32.5mb]-\>[32.5mb]/[82mb]}
> 
> I don't really understand why this warning was thrown because I was  
> profiling the JVM with VisualVM and the JVM had plenty of heap space left.
> 
> Ayone any ideas?
> 
> Thanks, Jonck
> 
> On Tuesday, April 23, 2013 4:27:45 PM UTC+2, pm wrote:
> 
> > Yeah no problem with ports, I can telnet 9200 and 9300 just fine.  
> > Exception happens in middle of indexing documents
> > 
> > Thanks
> > 
> > Sent from my iPhone
> > 
> > On Apr 22, 2013, at 11:10 PM, David Pilato [da...@pilato.fr](mailto:da...@pilato.fr) wrote:
> > 
> > Hard to say.  
> > Did you open 9300 ports on your node instances?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 23 avr. 2013 à 01:09, pm [parmod...@gmail.com](mailto:parmod...@gmail.com) a écrit :
> > 
> > We have simple test setup in a 2 cluster node with ELB in ec2 environment  
> > (0.20.5). Running a simple script to index few documents in Elasticsearch  
> > using ELB run into
> > 
> > Exception in thread "main" org.elasticsearch.client.transport.NoNodeAvailableException:  
> > No node available  
> > at org.elasticsearch.client.transport.  
> > TransportClientNodesService$RetryListener.onFailure(  
> > TransportClientNodesService.java:246)  
> > at org.elasticsearch.client.transport.  
> > TransportClientNodesService.execute(TransportClientNodesService.java:214)  
> > at org.elasticsearch.client.transport.support.  
> > InternalTransportClient.execute(InternalTransportClient.java:106)  
> > at org.elasticsearch.client.support.AbstractClient.update(  
> > AbstractClient.java:105)  
> > at org.elasticsearch.client.transport.TransportClient.  
> > update(TransportClient.java:318)  
> > at org.elasticsearch.action.update.UpdateRequestBuilder.  
> > doExecute(UpdateRequestBuilder.java:298)  
> > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > ActionRequestBuilder.java:62)  
> > at org.elasticsearch.action.ActionRequestBuilder.execute(  
> > ActionRequestBuilder.java:57)
> > 
> > However there is no problem so far running against the individual nodes.  
> > I am using simple transport client
> > 
> > ImmutableSettings.Builder elasticsearchSettings =  
> > ImmutableSettings.settingsBuilder().put("cluster.name",  
> > options.getEsCluster());  
> > TransportClient client = new TransportClient(elasticsearchSettings);
> > 
> > thanks
> > 
> > --  
> > 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 a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/0qM4YJvLeQE/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/0qM4YJvLeQE/unsubscribe?hl=en-US)  
> > .  
> > To unsubscribe from this group and all its topics, 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).

---

<div class="post-metadata">

**Author:** ![george\_monroe](https://avatars.discourse-cdn.com/v4/letter/g/bbce88/32.png) [@george\_monroe](https://discuss.elastic.co/u/george_monroe)\
**Post date:** [October 25, 2013, 6:19pm UTC](https://discuss.elastic.co/t/org-elasticsearch-client-transport-nonodeavailableexception-using-elb/11662/6 "2013-10-25T18:19:44Z")

</div>

We ran into this issue as well. Our ELB was from Amazon's EC2, which has a  
known disconnect window. We overcame the issue by removing the ELB and  
just using the ES Transport Client, which kind of acts like an ELB if you  
think about it.

Cheers

On Monday, April 22, 2013 4:09:55 PM UTC-7, pm wrote:

> We have simple test setup in a 2 cluster node with ELB in ec2 environment  
> (0.20.5). Running a simple script to index few documents in Elasticsearch  
> using ELB run into
> 
> Exception in thread "main" org.elasticsearch.client.transport.NoNodeAvailableException:  
> No node available  
> at org.elasticsearch.client.transport.TransportClientNodesService$  
> RetryListener.onFailure(TransportClientNodesService.java:246)  
> at org.elasticsearch.client.transport.TransportClientNodesService.  
> execute(TransportClientNodesService.java:214)  
> at org.elasticsearch.client.transport.support.  
> InternalTransportClient.execute(InternalTransportClient.java:106)  
> at org.elasticsearch.client.support.AbstractClient.update(  
> AbstractClient.java:105)  
> at org.elasticsearch.client.transport.TransportClient.  
> update(TransportClient.java:318)  
> at org.elasticsearch.action.update.UpdateRequestBuilder.doExecute(  
> UpdateRequestBuilder.java:298)  
> at org.elasticsearch.action.ActionRequestBuilder.execute(  
> ActionRequestBuilder.java:62)  
> at org.elasticsearch.action.ActionRequestBuilder.execute(  
> ActionRequestBuilder.java:57)
> 
> However there is no problem so far running against the individual nodes. I  
> am using simple transport client
> 
> ImmutableSettings.Builder elasticsearchSettings =  
> ImmutableSettings.settingsBuilder().put("cluster.name",  
> options.getEsCluster());  
> TransportClient client = new TransportClient(elasticsearchSettings);
> 
> thanks

--  
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:10am UTC](https://discuss.elastic.co/t/org-elasticsearch-client-transport-nonodeavailableexception-using-elb/11662/7 "2017-07-06T02:10:33Z")

</div>


