Prasanth Jayachandran created HIVE-15503:
--------------------------------------------
Summary: LLAP: Fix use of Runtime.getRuntime.maxMemory in Hive
operators
Key: HIVE-15503
URL: https://issues.apache.org/jira/browse/HIVE-15503
Project: Hive
Issue Type: Bug
Affects Versions: 2.2.0
Reporter: Prasanth Jayachandran
Assignee: Prasanth Jayachandran
Priority: Critical
{code}
ql/src/java/org/apache/hadoop/hive/ql/exec/GroupByOperator.java:
maxHashTblMemory = (long) (memoryPercentage * Runtime.getRuntime().maxMemory());
ql/src/java/org/apache/hadoop/hive/ql/exec/TopNHash.java: // Total Free
Memory = maxMemory() - Used Memory;
ql/src/java/org/apache/hadoop/hive/ql/exec/TopNHash.java: long
totalFreeMemory = Runtime.getRuntime().maxMemory() -
{code}
This will not work very well with LLAP because of the memory sharing by
executors.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)