AWS ElasticSearch Service version 2.3 does not work with Jest Client: java.net.SocketTimeoutException AWS ElasticSearch Service version 2.3 does not work with Jest Client: java.net.SocketTimeoutException elasticsearch elasticsearch

AWS ElasticSearch Service version 2.3 does not work with Jest Client: java.net.SocketTimeoutException


Try to add .readTimeout to your client creation code:

factory.setHttpClientConfig(new HttpClientConfig.Builder(END_POINT)            .multiThreaded(true)            .readTimeout(60000)            .build());

I was facing the same SocketTmeoutException: Read timed out.

Adding .readTimeout solved it for me. Hope this helps for you as well.