Hi all,
I'm running a standalone node (by using node.local: true in
elasticsearch.yml) and want to connect to this node via TransportClient
which fails.
Connecting to the node via Sense succeeds.
I didn't change the cluster.name property in elasticsearch.yml.
My Code is:
Client client = new TransportClient().addTransportAddress(new
InetSocketTransportAddress("xxx.xxx.xxx.xxx", 9300));
Result is:
Exception in thread "main"
org.elasticsearch.client.transport.NoNodeAvailableException: None of the
configured nodes are available: []
Using
Settings settings = ImmutableSettings.settingsBuilder().put("node.local",
"true").build();
Client client = new TransportClient().addTransportAddress(new
InetSocketTransportAddress("xxx.xxx.xxx.xxx", 9300));
doesn't help (results in same Exception).
Any ideas what I can do? Is it possible at all to use TransportClient for
setting up a connection to a standalone node?
Regards,
Abid
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8cb2153c-a168-4c0e-bbf4-da75c4e8df39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.