首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法识别的VM选项'UseParNewGC‘错误:无法创建。同时设置apache-cassandra-3.11.8

无法识别的VM选项'UseParNewGC‘错误:无法创建。同时设置apache-cassandra-3.11.8
EN

Stack Overflow用户
提问于 2020-10-07 04:07:01
回答 1查看 4.2K关注 0票数 2

当我在cmd上输入cassandra时,我会得到这个错误模型。

代码语言:javascript
运行
复制
WARNING! Powershell script execution unavailable.
   Please use 'powershell Set-ExecutionPolicy Unrestricted'
   on this user-account to run cassandra with fully featured
   functionality on this platform.
Starting with legacy startup options
Starting Cassandra Server
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

我的java版本是

代码语言:javascript
运行
复制
java version "15" 2020-09-15
Java(TM) SE Runtime Environment (build 15+36-1562)
Java HotSpot(TM) 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)

我使用的是windows 10,两者都安装在C驱动器上。有人能帮我解决这个问题吗?

EN

回答 1

Stack Overflow用户

发布于 2020-10-07 06:05:24

你有两个问题:

  1. Windows明确表示要执行powershell Set-ExecutionPolicy Unrestricted才能运行启动脚本。
  2. 您使用的是Cassandra 3.11不支持的Java 15 --它只适用于Java 8,因此需要降低Java的级别

我建议在Windows中运行Cassandra --您将避免许多问题,因为Windows并不是非常支持Cassandra和它的支持可能会在未来被取消。的平台。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64237048

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档