赞
踩
记一次hiveserver2服务运行异常问题。
报错信息:
java.lang.OutOfMemoryError: GC overhead limit exceeded
解决方法:
修改hive配置文件hive-env.sh。将原来注释的替换成如下配置
- # Hive Client memory usage can be an issue if a large number of clients
- # are running at the same time. The flags below have been useful in
- # reducing memory usage:
- #
- if [ "$SERVICE" = "cli" ]; then
- if [ -z "$DEBUG" ]; then
- export HADOOP_OPTS="$HADOOP_OPTS -XX:NewRatio=12 -Xms10m -Xmx4096m -XX:MaxHeapFreeRatio=40 -XX:MinHeapFreeRatio=15 -XX:+UseParNewGC -XX:-UseGCOverheadLimit"
- else
- export HADOOP_OPTS="$HADOOP_OPTS -XX:Ne
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。