[ 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.
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.
#
#http.max_content_length: 100mb
Then restart elasticsearch. It worked.