hive 客户端查询报堆内存溢出解决方法

hive> select * from t_test where ds=20150323 limit 2;

OK

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

问题原因: hive堆内存默认为256M

这个问题的解决方法为:

修改/usr/lib/hive/bin/hive-config.sh文件 中

# Default to use 256MB 

export HADOOP_HEAPSIZE=${HADOOP_HEAPSIZE:-256}

将上面256调大就行

猜你喜欢

转载自daizj.iteye.com/blog/2195624