Java heap space cdh 5.11.1

在执行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

posted @ 2017-09-01 13:30  牵牛花  阅读(642)  评论(0编辑  收藏  举报