# Got NoNodeAvailableException exception

**URL:** <https://discuss.elastic.co/t/got-nonodeavailableexception-exception/128471>\
**Category:** Elasticsearch\
**Created:** [April 18, 2018, 7:21am UTC](https://discuss.elastic.co/t/got-nonodeavailableexception-exception/128471 "2018-04-18T07:21:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackyshen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jackyshen](https://discuss.elastic.co/u/jackyshen)\
**Post date:** [April 18, 2018, 7:21am UTC](https://discuss.elastic.co/t/got-nonodeavailableexception-exception/128471/1 "2018-04-18T07:21:04Z")

</div>

I got the following NoNodeAvailableException when I connect to my company network ES cluster by 10.14.192.199:9300 .

NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{05Fw3NppTOGkedTjluge4Q}{10.14.192.198}{10.14.192.198:9300}]  
]  
at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:347)  
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:245)  
at org.elasticsearch.client.transport.TransportProxyClient.execute(TransportProxyClient.java:59)  
at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:363)  
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:408)  
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:80)  
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:54)  
at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:62)  
at

Step,  
1,The ES version is 5.5, so added the following in pom.  
  
org.elasticsearch.client  
transport  
5.5.0

2,Add the TransportAddress  
client.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(address), port));

3, es config file

network.host: 10.14.192.198  
http.port: 9200  
transport.tcp.port: 9300

---

<div class="post-metadata">

**Author:** ![jackyshen](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jackyshen](https://discuss.elastic.co/u/jackyshen)\
**Post date:** [April 18, 2018, 8:44am UTC](https://discuss.elastic.co/t/got-nonodeavailableexception-exception/128471/2 "2018-04-18T08:44:17Z")

</div>

The issue is fixed after set the setting like below:  
return Settings.builder().put("client.transport.sniff", true)  
.put("cluster.name", clusterName).build();

---

<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:** [May 16, 2018, 8:44am UTC](https://discuss.elastic.co/t/got-nonodeavailableexception-exception/128471/3 "2018-05-16T08:44:31Z")

</div>

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