Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

OutOfMemoryError: Java heap space error when starting hive

$
0
0

Hello,

I am following the “manual rpm” installation instructions for Ubuntu 12.0.4 and am stuck on the instructions to validate the hive installation http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.1-latest/bk_installing_manually_book/content/rpm-chap6-6.html I am starting the hive server by running nohup hive --service metastore -hiveconf hive.log.file=hivemetastore.log >$HIVE_LOG_DIR/hive.out 2>$HIVE_LOG_DIR/hive.log & as the hive user. But when I then try to run the hive command, it errors with the following exceptions:

Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.OutOfMemoryError: Java heap space

I tried editing the HADOOP_OPTS variables which are set in /etc/hive/conf/hive-env.sh by increasing the -Xms settings, which were defaulted to 10m, but when I set it above 256m I receive a “Error occurred during initialization of VM Initial heap size set to a larger value than the maximum heap size” error. I am performing this installation on a EC2 system with 15GB of RAM with 9GB currently free.

Advice on where to adjust the memory setting would be greatly appreciated.

Thanks,

Mac


Viewing all articles
Browse latest Browse all 3435

Trending Articles