Java heap space cdh 5.11.1

时间:2022-12-07 18:26:08

在执行hive count 查询的时候报错:
Error: Java heap space

解决办法是 set io.sort.mb=10;

执行hadoop的Exeample的时候报错,也是java heap space 的问题

Diagnostic Messages for this Task:
Error: Java heap space

FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
MapReduce Jobs Launched:
Stage-Stage-1: Map: 1 Reduce: 1 HDFS Read: 0 HDFS Write: 0 FAIL
Total MapReduce CPU Time Spent: 0 msec

hive执行HQL提示出错Error: Java heap space