简体   繁体   English

HBASE 错误:无法识别的 VM 选项“UseConcMarkSweepGC”

[英]HBASE error : Unrecognized VM option 'UseConcMarkSweepGC'

I have jdk-15.0.1 on my laptop, and have installed HBASE (hbase-2.2.6 version).我的笔记本电脑上有 jdk-15.0.1,并安装了 HBASE(hbase-2.2.6 版本)。

I followed every steps to install HBASE on this link: https://www.learntospark.com/2020/08/setup-hbase-in-windows.html我按照每个步骤在此链接上安装 HBASE: https://www.learntospark.com/2020/08/setup-hbase-in-windows.html

The problem is that when I try running HBASE in my command line using:问题是当我尝试在命令行中运行 HBASE 时使用:

start-hbase.cmd 

I get the following error message:我收到以下错误消息:

Unrecognized VM option 'UseConcMarkSweepGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
ERROR: Could not determine the startup mode.

As a beginner, I tried scouring around for information, but nothing that matches my problem.作为一个初学者,我试着四处寻找信息,但没有什么能与我的问题相匹配。

I would be glad for any help you could give me.我会很高兴你能给我任何帮助。

CMS garbage collector is removed in JDK 15, thus UseConcMarkSweepGC too is removed. CMS 垃圾收集器在 JDK 15 中被移除,因此UseConcMarkSweepGC也被移除。

JEP 363: Remove the Concurrent Mark Sweep GC JEP 363:删除并发标记扫描 GC

So, either you should switch back to java 8 or 11, or you should modify below line:因此,您应该切换回 java 8 或 11,或者您应该修改以下行:

set HBASE_OPTS="-XX:+UseConcMarkSweepGC" "-Djava.net.preferIPv4Stack=true" 

with

set HBASE_OPTS="-Djava.net.preferIPv4Stack=true"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM