Tony_Lam
(Tony Lam)
September 29, 2017, 9:59am
1
Hi Everyone,
I have provision a Elastic Cloud for my programmers, they are using Native Elasticsearch binary protocal but found these errors
It is able to connect to it and find out its nodes below:
54.254.97.95:9343
54.251.33.223:9343
String host = "654d0090c71a24200264c9f0471388c4.ap-southeast-1.aws.found.io ";
String clusterName = "654d0090c71a24200264c9f0471388c4";
int port = 9343;
NoNodeAvailableException[None of the configured nodes are available: [{#transport #-1}{bGig-OYeSlmwN6jVu287RQ}{654d0090c71a24200264c9f0471388c4.ap-southeast-1.aws.found.io }{54.254.97.95:9343}, {#transport #-2}{-5w7otFvTX-7H6qV4mdIhQ}{654d0090c71a24200264c9f0471388c4.ap-southeast-1.aws.found.io }{54.251.33.223:9343}]]
Please help!!
Thanks.
Tony Lam
dadoonet
(David Pilato)
September 29, 2017, 11:41am
2
Please format your code using </>
icon as explained in this guide . It will make your post more readable.
Or use markdown style like:
```
CODE
```
You did not share your code so hard to say what is wrong. I guess a bad usage...
Here is some code to create a client:
Settings settings = Settings.builder()
.put("client.transport.nodes_sampler_interval", "5s")
.put("client.transport.sniff", false)
.put("transport.tcp.compress", true)
.put("cluster.name", CLUSTER_NAME)
.put("xpack.security.transport.ssl.enabled", true)
.put("request.headers.X-Found-Cluster", CLUSTER_NAME)
.put("xpack.security.user", CREDENTIALS)
.build();
return new PreBuiltXPackTransportClient(settings)
.addTransportAddress(new InetSocketTransportAddress(new InetSocketAddress(CLUSTER_URL, 9343)));
}
HTH
system
(system)
Closed
October 27, 2017, 11:50am
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.