我在Windows 10中安装了datastax-ddc-64bit-3.8.0,并尝试通过在bin文件夹中运行cassandra.bat来启动该服务。该服务未启动并失败,并显示以下消息。
Detected powershell execution permissions. Running with enhanced startup scripts.
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
WARNING! Automatic page file configuration detected.
It is recommended that you disable swap when running Cassandra
for performance and stability reasons.
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
Failed 64-bit check. Re-running to get version from 32-bit
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
WARNING! Detected a power profile other than High Performance.
Performance of this node will suffer.
Modify conf\cassandra.env.ps1 to suppress this warning.
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
Cassandra 3.0 and later require Java 8u40 or later.
怎么解决?
我通过将JAVA_HOME
指向jre1.8.0_212
而不是JDK来解决了这个问题。
Cassandra没有使用64位版本的JDK,我不得不将我的JAVA_HOME
指向64位版本的JRE。另外建议cqlsh也不能使用最新的Python,试试Python 2.7
您需要将JAVA x64目录作为JAVA_HOME环境变量中的值。
更改JAVA_HOME目录时,重新启动控制台(终端,CMD,PowerShell等)