[ elasticsearch] HTTP content length exceeded 104857600 bytes.



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.


  • 가람 2015.01.16 01:08 ADDR 수정/삭제 답글

    초대장 보내주셔서 감사합니다.
    덕분에 블로그 만들게 되었어요. 고맙^^

    • adana 2015.01.18 13:54 신고 수정/삭제

      네 즐거운 블러그 생활 하세요 ^^/