embedded-druid icon indicating copy to clipboard operation
embedded-druid copied to clipboard

io.druid.segment.incremental.IndexSizeExceededException

Open valenpo opened this issue 9 years ago • 4 comments

I'm trying build index for 8M lines, but on some point ~800K records, get an issue:

io.druid.segment.incremental.IndexSizeExceededException: Maximum aggregation buffer limit reached [536870912 bytes].

valenpo avatar May 06 '16 14:05 valenpo

IndexSizeExceededException is common one. You should either increase your index size or persist the index and create a new one whenever the index size reaches its maximum. The second option is the better one, when you are handling with larger indexes. Also, after persisting the current index, please do not forget to close it before creating the new one.

vsankaranarayana avatar May 06 '16 14:05 vsankaranarayana

@vsankaranarayana thanks!

If I right understand, it is similar to plumber on top druid? How can I monitor the index size to persist it? Is it possible to read many of persist indexes? To 8M all get ~10 persist indexes.

valenpo avatar May 06 '16 15:05 valenpo

You can check the index size anytime and would recommend you to go through io.druid.segment and io.druid.data APIs . Additionally, as each call to persist would create an index file, you can merge all of those index files and create a single index file at the end.

vsankaranarayana avatar May 06 '16 15:05 vsankaranarayana

@vsankaranarayana thank you!

valenpo avatar May 06 '16 15:05 valenpo