Indexing is failing with following exception . I am using Elastic Search REST client 5.6.4 and Elastic Server 5.6.4.
I saw a similar post , but no resolution given . can i get some pointers ?
Caused by: java.util.concurrent.TimeoutException
at org.apache.apache.http.nio.pool.AbstractNIOConnPool.processPendingRequest(AbstractNIOConnPool.java:375)
at org.apache.apache.http.nio.pool.AbstractNIOConnPool.lease(AbstractNIOConnPool.java:277)
at org.apache.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.requestConnection(PoolingNHttpClientConnectionManager.java:268)
at org.apache.apache.http.impl.nio.client.AbstractClientExchangeHandler.requestConnection(AbstractClientExchangeHandler.java:377)
at org.apache.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.start(DefaultClientExchangeHandlerImpl.java:129)
at org.apache.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttpAsyncClient.java:141)
at org.apache.elasticsearch.client.RestClient.performRequestAsync(RestClient.java:343)
at org.apache.elasticsearch.client.RestClient.performRequestAsync(RestClient.java:325)
at org.apache.elasticsearch.client.RestClient.performRequest(RestClient.java:218)
Ok , this is what i am doing . No timeout parameters are changed.
public static Client getRestClient(HttpHost host) {
RestClientBuilder builder = RestClient.builder(host);
builder.setDefaultHeaders(EMPTY_HEADERS);
return new Client(builder.build(), host);
}
Note: Above exception is consistent seen all the them time. And we have only 1 Node.
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.