Hello folks!

i'm trying to perform a search using Java ElasticSearch API but i'm getting 
this error:

org.elasticsearch.client.transport.NoNodeAvailableException: None of the 
configured nodes are available: []
    at 
org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:298)
 
~[elasticsearch-1.3.0.jar:na]
    at 
org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:214)
 
~[elasticsearch-1.3.0.jar:na]
    at 
org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:105)
 
~[elasticsearch-1.3.0.jar:na]
    at 
org.elasticsearch.client.support.AbstractClient.search(AbstractClient.java:330) 
~[elasticsearch-1.3.0.jar:na]
    at 
org.elasticsearch.client.transport.TransportClient.search(TransportClient.java:421)
 
~[elasticsearch-1.3.0.jar:na]
    at 
org.elasticsearch.action.search.SearchRequestBuilder.doExecute(SearchRequestBuilder.java:1097)
 
~[elasticsearch-1.3.0.jar:na]
    at 
org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91)
 
~[elasticsearch-1.3.0.jar:na]
    at 
org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:65)
 
~[elasticsearch-1.3.0.jar:na]

Anyone have an idea on what's is wrong? Here is how i create Client:

*private lazy val client = new TransportClient().addTransportAddress(new 
InetSocketTransportAddress("127.0.0.1", 9300))*

And here is the point that exception happens:

*var response = client.prepareSearch().execute().actionGet();*

Thank in advance.

David

-- 
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/c6822524-7dac-4753-902c-a0284961ace3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to