We are implementing an indexer using JAVA API. When we launch the indexer
on a fresh 0.90.1 instance with no data, it just works fine, but when it is
launched on an existing ES instance, we get a "NoNodeAvailable" exception.
The instance is up with a yellow status.
org.elasticsearch.client.transport.NoNodeAvailableException: No node available
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:202)
at org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.execute(InternalTransportIndicesAdminClient.java:85)
at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(AbstractIndicesAdminClient.java:147)
at org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:62)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:57)
You are using IndicesExistsRequestBuilder.Maybe you are looking for an
index or index alias that does not exist.
Jörg
On Monday, June 3, 2013 11:13:00 AM UTC+2, Yann Barraud wrote:
Hi
We are implementing an indexer using JAVA API. When we launch the indexer
on a fresh 0.90.1 instance with no data, it just works fine, but when it is
launched on an existing ES instance, we get a "NoNodeAvailable" exception.
The instance is up with a yellow status.
org.elasticsearch.client.transport.NoNodeAvailableException: No node available
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:202)
at org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.execute(InternalTransportIndicesAdminClient.java:85)
at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(AbstractIndicesAdminClient.java:147)
at org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:62)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:57)
We first check if the index exists using
client.admin().indices().prepareExists(indexName).execute().actionGet().isExists()
Then we are attempting creating the index using
client.admin().indices().prepareCreate(indexName).execute().actionGet().isAcknowledged()
Is it wrong ?
Le lundi 3 juin 2013 11:20:19 UTC+2, Jörg Prante a écrit :
You are using IndicesExistsRequestBuilder.Maybe you are looking for an
index or index alias that does not exist.
Jörg
On Monday, June 3, 2013 11:13:00 AM UTC+2, Yann Barraud wrote:
Hi
We are implementing an indexer using JAVA API. When we launch the indexer
on a fresh 0.90.1 instance with no data, it just works fine, but when it is
launched on an existing ES instance, we get a "NoNodeAvailable" exception.
The instance is up with a yellow status.
org.elasticsearch.client.transport.NoNodeAvailableException: No node available
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:202)
at org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.execute(InternalTransportIndicesAdminClient.java:85)
at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(AbstractIndicesAdminClient.java:147)
at org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:62)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:57)
Le lundi 3 juin 2013 11:20:19 UTC+2, Jörg Prante a écrit :
You are using IndicesExistsRequestBuilder.Maybe you are looking for an
index or index alias that does not exist.
Jörg
On Monday, June 3, 2013 11:13:00 AM UTC+2, Yann Barraud wrote:
Hi
We are implementing an indexer using JAVA API. When we launch the
indexer on a fresh 0.90.1 instance with no data, it just works fine, but
when it is launched on an existing ES instance, we get a "NoNodeAvailable"
exception.
The instance is up with a yellow status.
org.elasticsearch.client.transport.NoNodeAvailableException: No node available
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:202)
at org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.execute(InternalTransportIndicesAdminClient.java:85)
at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(AbstractIndicesAdminClient.java:147)
at org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:62)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:57)
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.