I can't seem to figure out this problem, Node from NodeBuilder works, but
If I use transportclient like below, I get an exception.
//I am using all default settings
//elasticsearch-0.90.9
Settings settings = ImmutableSettings.settingsBuilder().put("cluster.name",
"elasticsearch").build();
InetSocketTransportAddress("localhost", 9300));
Exception in thread "main" org.elasticsearch.client.transport.
NoNodeAvailableException: No node available
at org.elasticsearch.client.transport.TransportClientNodesService.execute(
TransportClientNodesService.java:213)
at org.elasticsearch.client.transport.support.InternalTransportClient.
execute(InternalTransportClient.java:106)
at org.elasticsearch.client.support.AbstractClient.bulk(AbstractClient.java
:149)
at org.elasticsearch.client.transport.TransportClient.bulk(TransportClient.
java:346)
at org.elasticsearch.action.bulk.BulkRequestBuilder.doExecute(
BulkRequestBuilder.java:165)
at org.elasticsearch.action.ActionRequestBuilder.execute(
ActionRequestBuilder.java:85)
at org.elasticsearch.action.ActionRequestBuilder.execute(
ActionRequestBuilder.java:59)
at EntryPoint.createBulkIndexes(EntryPoint.java:305)
at EntryPoint.main(EntryPoint.java:147)
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/6f8941ac-11df-4f8d-9670-cc609c7aca6e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.