当我打字时,我收到了这个错误消息 cassandra
在我的命令上。
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版本是
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)
我使用的是Windows10,两个都安装在c盘上。有人能帮我解决这个问题吗?
1条答案
按热度按时间vdzxcuhz1#
您有两个问题:
windows明确要求你执行
powershell Set-ExecutionPolicy Unrestricted
能够运行启动脚本您使用的是Cassandra3.11不支持的Java15—它只适用于Java8,因此您需要降级java
p、 我建议在docker的windows平台上运行cassandra,这样可以避免很多问题,因为windows平台对cassandra的支持不是很积极,而且将来可能会取消它的支持。