We are trying to index using BulkRequest java RestHighclient 6.2.3. Elastic search is hosted on aws.
We are getting following issue while indexing:
URI [/_bulk?timeout=120s], status line [HTTP/1.1 413 Request Entity Too Large]
{"Message":"Request size exceeded 104857600 bytes"}
How to resolve this in java RestHighClient jar?
Based on documentation, the maximum size of an HTTP request body is 100mb (you can change it using the http.max_content_length
setting).
Keep in mind that the Elasticseach instance hosted on AWS also has a limitation on the HTTP request payload. You can see the details here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With