Issue having none of the configured nodes are available

Hi Team,
We are upgrading our application to elasticsearch-5.2.0 from 1.0.1. I upgraded it to transport-5.2.0.
Currently we are observing the below exception while index building :

com.nielsen.gps.core.exception.CoreException: NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{cT1qigSqShOcPONuCDJ4zg}{xxxxx.xxxx.com}{xx.xx.xx.xxx:xxxx}]]
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)
at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:356)

The below we wrote to build the settings and initialize TransportClient object :

if (client == null) {
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();
try {
client = new PreBuiltTransportClient(settings)
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(getIndexHostName()), getIndexPort()));
} catch (Exception e) {
System.out.println("error encountered: " + e.getMessage());
e.printStackTrace();
}

I'm having the same issue did you ever fine a fix?

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