# NoNodeAvailableException - 5.4.0

**URL:** <https://discuss.elastic.co/t/nonodeavailableexception-5-4-0/88729>\
**Category:** Elasticsearch\
**Created:** [June 8, 2017, 3:16pm UTC](https://discuss.elastic.co/t/nonodeavailableexception-5-4-0/88729 "2017-06-08T15:16:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![santy79](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@santy79](https://discuss.elastic.co/u/santy79)\
**Post date:** [June 8, 2017, 3:16pm UTC](https://discuss.elastic.co/t/nonodeavailableexception-5-4-0/88729/1 "2017-06-08T15:16:11Z")

</div>

Hi - We are using elasticsearch 5.4.0 (both server / client)

Below the code and Exception - (Verified cluster name matches with

some of the elasticsearch.yml network properties -  
network.host: 0.0.0.0  
#transport.tcp.port: 9303  
......  
discovery.zen.ping.unicast.hosts: ["11.126.84.225:9300","11.126.84.225:9301"]

**Client Code:-**

```
	ArrayList<Class<? extends Plugin>> arrayList = new ArrayList<Class<? extends Plugin>>();
	Settings.Builder builder = Settings.builder();
	builder.put("cluster.name", "?????");
	// builder.put("client.transport.ignore_cluster_name", "true");
	builder.put("client.transport.sniff", "true");
	Settings settings = builder.build();
	TransportClient transport = new PreBuiltTransportClient(settings, arrayList);
	for (InetSocketTransportAddress transportAddress : serverAddresses) {
		transport.addTransportAddress(transportAddress);
	}
	client = transport;
	SearchResponse response = client.prepareSearch("iapi-log", "logs").setFrom(0).setSize(60).get();

```

**Exception -**  
Exception in thread "main" NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{40Baz09tQamMjPMrBtNqWw}{ln001xserk0001}{11.126.84.225: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.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:80)  
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:54)  
at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:62)  
..............

---

<div class="post-metadata">

**Author:** ![santy79](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@santy79](https://discuss.elastic.co/u/santy79)\
**Post date:** [June 8, 2017, 3:18pm UTC](https://discuss.elastic.co/t/nonodeavailableexception-5-4-0/88729/2 "2017-06-08T15:18:15Z")

</div>

transport.tcp.port=9303 is actually commented in yml file

---

<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, 3:18pm UTC](https://discuss.elastic.co/t/nonodeavailableexception-5-4-0/88729/3 "2017-07-06T15:18:38Z")

</div>

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