Zhuangda Z
02/20/2025, 9:01 PMZhuangda Z
02/20/2025, 9:02 PM2025-02-20 19:50:49,541 ERROR [main] org.apache.hadoop.mapred.YarnChild: Error running child : java.lang.OutOfMemoryError: Java heap space
at java.base/java.util.TreeMap.addEntry(TreeMap.java:800)
at java.base/java.util.TreeMap.put(TreeMap.java:863)
at java.base/java.util.TreeMap.put(TreeMap.java:569)
at org.apache.pinot.segment.local.segment.creator.impl.inv.json.BaseJsonIndexCreator.addToPostingList(BaseJsonIndexCreator.java:125)
at org.apache.pinot.segment.local.segment.creator.impl.inv.json.BaseJsonIndexCreator.addFlattenedRecords(BaseJsonIndexCreator.java:112)
at org.apache.pinot.segment.local.segment.creator.impl.inv.json.OffHeapJsonIndexCreator.addFlattenedRecords(OffHeapJsonIndexCreator.java:83)
at org.apache.pinot.segment.local.segment.creator.impl.inv.json.BaseJsonIndexCreator.add(BaseJsonIndexCreator.java:94)
at org.apache.pinot.segment.spi.index.creator.JsonIndexCreator.add(JsonIndexCreator.java:36)Zhuangda Z
02/20/2025, 9:04 PMOffHeapJsonIndexCreator, it has a defined
FLUSH_THRESHOLD = 100_000
Wondering if there is a way(or are you open) to config the threshold to a smaller size to mitigate this OOM issue?Zhuangda Z
02/20/2025, 9:05 PMOutOfMemoryError: Java heap spaceBolek Ziobrowski
02/20/2025, 9:56 PMZhuangda Z
02/20/2025, 10:07 PMZhuangda Z
02/20/2025, 10:21 PMmaxValueLength to 512 but that is after adding to postingListBolek Ziobrowski
02/20/2025, 10:31 PMprivate static List<Map<String, String>> flatten(JsonNode node, JsonIndexConfig jsonIndexConfig, int level,
String path, boolean includePathMatched, JsonSchemaTreeNode indexPathNode) {
// Null
if (node.isNull() || node.isMissingNode() || indexPathNode == null) {
return Collections.emptyList();
}
// Value
if (node.isValueNode()) {
String valueAsText = node.asText();
int maxValueLength = jsonIndexConfig.getMaxValueLength();
if (0 < maxValueLength && maxValueLength < valueAsText.length()) {
valueAsText = SKIPPED_VALUE_REPLACEMENT;
}
return Collections.singletonList(Collections.singletonMap(VALUE_KEY, valueAsText));
}Bolek Ziobrowski
02/20/2025, 10:32 PMZhuangda Z
02/20/2025, 10:39 PMZhuangda Z
02/20/2025, 10:39 PMBolek Ziobrowski
02/20/2025, 10:58 PM