NoNodeAvailableException None of the configured nodes are available:

I was upgrading ElasticSeach to 5.2.0 in my project from 1.0.1. I have the below setting in my Java client :slight_smile:

Settings settings = Settings.builder().put("cluster.name", SpringPropertiesUtil.getProperty("cluster.name")).
put("client.transport.ping_timeout",SpringPropertiesUtil.getProperty("elastic.ping.timeout")).
put("client.transport.nodes_sampler_interval",SpringPropertiesUtil.getProperty("elastic.sampler.interval")).
put("client.transport.sniff", true).
put("node.name",SpringPropertiesUtil.getProperty("search.node.name")).build();

			client = new PreBuiltTransportClient(settings)
			.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(getIndexHostName()), getIndexPort()));
		} 

I am getting the below error :

com.nielsen.gps.core.exception.CoreException: NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{nHJg96D5RyWqFYvSCOpcPg}{xxx.xxx.com}{xx.xx.xx.xxx:9330}]]
at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:344)
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:242)
at org.elasticsearch.client.transport.TransportProxyClient.execute(TransportProxyClient.java:59

Did you upgrade the client as well?

Thanks Warkolm for responding.
Do you mean by PreBuiltTransportClient. I upgraded it to transport-5.2.0.

Please let me know which client you are referring to upgrade.

Thanks and Regards
Debidutta

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