# Elastic 5.4.0 TransportClient does not work

**URL:** https://discuss.elastic.co/t/elastic-5-4-0-transportclient-does-not-work/85957
**Category:** Elasticsearch
**Created:** [May 16, 2017, 2:41pm UTC](https://discuss.elastic.co/t/elastic-5-4-0-transportclient-does-not-work/85957 "2017-05-16T14:41:25Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![billnbell](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@billnbell](https://discuss.elastic.co/u/billnbell)
#### Post date: [May 16, 2017, 2:41pm UTC](https://discuss.elastic.co/t/elastic-5-4-0-transportclient-does-not-work/85957/1 "2017-05-16T14:41:25Z")

</div>

I cannot open a connection using the Elastic Search Transport Client to 5.4.0. It works if I use the 5.3.2 client.

I also ran out of open file handles. Maybe becuase I kept retrying the connection?

I am giving it sniff = true and cluster name in settings and also setting the IP address.

Does it work for anyone? There appears to be a fix in 5.4.1, does it work for people?

---

<div class="post-metadata">

### Author: ![billnbell](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@billnbell](https://discuss.elastic.co/u/billnbell)
#### Post date: [May 16, 2017, 3:14pm UTC](https://discuss.elastic.co/t/elastic-5-4-0-transportclient-does-not-work/85957/2 "2017-05-16T15:14:33Z")

</div>

> May 16, 2017 9:14:38 AM com.psddev.dari.elasticsearch.ElasticsearchDatabase doWrites  
> WARNING: Elasticsearch doWrites Exception [org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{QZ3w96QKR9KzbWaQrfnEEQ}{localhost}{127.0.0.1:9300}]]  
> NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{QZ3w96QKR9KzbWaQrfnEEQ}{localhost}{127.0.0.1:9300}]]  
> at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:348)  
> at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:246)  
> at org.elasticsearch.client.transport.TransportProxyClient.execute(TransportProxyClient.java:59)  
> at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:366)  
> at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:408)  
> at org.elasticsearch.client.support.AbstractClient.bulk(AbstractClient.java:485)  
> at org.elasticsearch.action.bulk.Retry$AbstractRetryHandler.execute(Retry.java:211)  
> at org.elasticsearch.action.bulk.Retry$SyncRetryHandler.executeBlocking(Retry.java:235)  
> at org.elasticsearch.action.bulk.Retry.withSyncBackoff(Retry.java:87)

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [May 16, 2017, 3:27pm UTC](https://discuss.elastic.co/t/elastic-5-4-0-transportclient-does-not-work/85957/3 "2017-05-16T15:27:32Z")

</div>

> [@billnbell](#):
>
> There appears to be a fix in 5.4.1, does it work for people?

We think it fixes the issue that users ran into with 5.4.0, but it's not released yet.

---

<div class="post-metadata">

### Author: ![munk77](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@munk77](https://discuss.elastic.co/u/munk77)
#### Post date: [May 16, 2017, 3:32pm UTC](https://discuss.elastic.co/t/elastic-5-4-0-transportclient-does-not-work/85957/4 "2017-05-16T15:32:32Z")

</div>

Hey Bill,

I am seeing the exact same problem as you: [Option "client.transport.sniff" not working with v5.4.0 Transport Client](https://discuss.elastic.co/t/option-client-transport-sniff-not-working-with-v5-4-0-transport-client/85899)

---

<div class="post-metadata">

### Author: ![jennifer.elyse](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jennifer.elyse](https://discuss.elastic.co/u/jennifer.elyse)
#### Post date: [June 6, 2017, 7:29pm UTC](https://discuss.elastic.co/t/elastic-5-4-0-transportclient-does-not-work/85957/5 "2017-06-06T19:29:45Z")

</div>

I am experiencing the same problem in 5.4.0 and I am running the Java code on the same server as the ElasticSearch installation.  
Exception in thread "main" NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{JvkgvqM3SXqBv5mwBDUUhQ}{\<myserver\>}{\<myserver\>:9300}]]  
at org.elasticsearch.client.transport.TransportClientNodesService.ensure NodesAreAvailable(TransportClientNodesService.java:348)  
at org.elasticsearch.client.transport.TransportClientNodesService.execut e(TransportClientNodesService.java:246)  
at org.elasticsearch.client.transport.TransportProxyClient.execute(Trans portProxyClient.java:59)  
at org.elasticsearch.client.transport.TransportClient.doExecute(Transpor tClient.java:366)  
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClien t.java:408)  
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBu ilder.java:80)  
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBu ilder.java:54)  
at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilde r.java:62)  
at com.cswg.enterprisesearch.bulkloader.BulkLoader.load(BulkLoader.java: 85)  
at com.cswg.enterprisesearch.bulkloader.BulkLoader.main(BulkLoader.java: 289)

---

<div class="post-metadata">

### Author: ![billnbell](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@billnbell](https://discuss.elastic.co/u/billnbell)
#### Post date: [June 6, 2017, 7:41pm UTC](https://discuss.elastic.co/t/elastic-5-4-0-transportclient-does-not-work/85957/6 "2017-06-06T19:41:41Z")

</div>

Check the :9300 ? replace with localhost?

---

<div class="post-metadata">

### Author: ![Vinod\_Nair1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinod_nair1/32/19316_2.png) [@Vinod\_Nair1](https://discuss.elastic.co/u/Vinod_Nair1)
#### Post date: [June 20, 2017, 5:14pm UTC](https://discuss.elastic.co/t/elastic-5-4-0-transportclient-does-not-work/85957/7 "2017-06-20T17:14:13Z")

</div>

Hi Guys,  
I am getting this error with 5.4.1 when using a java client to connect from a remote machine.  
I have tested connecting from the remote machine to port 9300 and can connect with no issues.  
However the java client fails.  
I had this working with 2.3 and am migrating to 5.4.1

Regards

Vinod

---

<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 18, 2017, 5:14pm UTC](https://discuss.elastic.co/t/elastic-5-4-0-transportclient-does-not-work/85957/8 "2017-07-18T17:14:28Z")

</div>

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