Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to solve Request Entity Too Large issue in elastic search?

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?

like image 463
Rahul Ranjan Avatar asked Nov 18 '22 13:11

Rahul Ranjan


1 Answers

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.

like image 88
Saeed Hassanvand Avatar answered May 20 '23 13:05

Saeed Hassanvand