NoNodeAvailableException[None of the configured nodes are available:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

NoNodeAvailableException[None of the configured nodes are available:

mahade01
This post has NOT been accepted by the mailing list yet.
I am getting below error while trying to run elastic in local pointing a  remote host and node.

com.nielsen.gps.core.exception.CoreException: NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{nHJg96D5RyWqFYvSCOpcPg}{xyz_abc.com}{somenumber: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)





                        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()));


Loading...