I was upgrading ElasticSeach to 5.2.0 in my project from 1.0.1. I have the below setting in my Java client
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