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();
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();
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.