Ambari安装Hive启动时报无法创建虚拟机

时间:2023-01-11 22:56:16
[root@hdp03 hive]# cat hive-server2.err
Error: VM option 'UseG1GC' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Error: VM option 'UseG1GC' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

解决方案:

原因是因为服务器上有三个版本JDK导致的

解决方案:

删除其中两个jdk,然后重新安装Ambari+hadoop组件即可