-
[ elasticsearch] HTTP content length exceeded 104857600 bytes.프로그래밍/검색 2015. 1. 13. 00:13728x90반응형
When I tried to bulk index with large size of file, it fails with the following message in log.
#vi elasticsearch.logorg.elasticsearch.common.netty.handler.codec.frame.TooLongFrameException: HTTP content length exceeded 104857600 bytes.
at org.elasticsearch.common.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:169)
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)http.max_content_length is literally the max content size of http request and its default size is 100mb.
If you want to increase the size, then edit the following lines in conf/elasticsearch.yml.
This size should be larger than the size of files with bulk index.
# Set a custom allowed content length:
#
#http.max_content_length: 100mb
Then restart elasticsearch. It worked.
728x90반응형'프로그래밍 > 검색' 카테고리의 다른 글
curl: (1) Protocol 'http not supported or disabled in libcurl (0) 2015.02.07 [elasticsearch] open / close /delete index (0) 2015.01.25 [ 엘라스틱서치] HTTP content length exceeded 104857600 bytes. (0) 2015.01.12 elasticsearch 에러 - FileNotFoundException, too many open file (열린 파일이 너무 많음)]; "}}, (1) 2014.07.22 리눅스에서 elasticsearch 1.2.1 설치하기 (0) 2014.06.29