專案場景:
hive --service hiveserver2 報錯, 導致hiveserver2 服務無法使用
問題描述:
Exception in thread "HiveServer2-Handler-Pool: Thread-556" java.lang.OutOfMemoryError: GC overhead limit exceeded
原因分析:
hive shell腳本啟動的jvm的堆記憶體 不足
解決方案:
cp hive-env.sh.template hive-env.sh
vi hive-env.sh
將 export HADOOP_HEAPSIZE=1024 放開(如果還報錯,就將記憶體調大)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/423400.html
標籤:其他
