ORDER BY statement in Hive on Tez throws OOM Exception
Map1 vertex is failing with OOM Exception:
java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunProcessor
Try to increase Mapper container and JVM memory.
Like this:
set hive.tez.container.size=9216;set hive.tez.java.opts=-Xmx6144m;
But better check you current container and java heap size and increase it accordingly.Read this article for more details: Demystifying Tez Memory Tuning