1. 程式人生 > >hive啟動時報錯Invalid maximum heap size: -Xmx4096m

hive啟動時報錯Invalid maximum heap size: -Xmx4096m

版本說明:hadoop0.20.0  hive0.6.0

問題描述:輸入hive啟動時報錯

----------------------------------------------------------------------------------------

-     $ hive

-     Could not create the Java virtual machine.
-     Invalid maximum heap size: -Xmx4096m
-     The specified size exceeds the maximum representable size.

-----------------------------------------------------------------------------------------

解決方法:

  修改hive-0.6.0\bin\ext\util\execHiveCmd.sh檔案如下

  #HADOOP_HEAPSIZE=4096
  HADOOP_HEAPSIZE=128