ElasticSearch Bulk api : Read Time out

I am trying to post bulk data to AWS Elasticsearch 5.1.1 by using bulk api. I am using simple http client to execute the post request in java. I am posting bulk data using file.

Maximum file size : 1 MB
Maximum elasticsearch requests : 300 in single file
HTTP request timeout : 60 seconds

However I am getting following exception

Could not execute HttpPost. Reason:
java.net.SocketTimeoutException: Read timed out

and sometimes

javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

Thanks in advance !!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.