프로그래밍/검색

[ elasticsearch] HTTP content length exceeded 104857600 bytes.

kugancity 2015. 1. 13. 00:13
반응형

 

 

When I tried to bulk index with large size of file, it fails with the following message in log. 

 

#vi elasticsearch.log

 

org.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
반응형