Cassandra 安装 64 位检查失败.重新运行以从 Windows 32 上的 10 位获取版本



我已经在Windows 64中安装了datastax-ddc-3.8.0 10,并尝试通过在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 confcassandra.env.ps1 to suppress this warning.
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
Cassandra 3.0 and later require Java 8u40 or later.

如何解决?

我通过将JAVA_HOME指向jre1.8.0_212而不是JDK来解决此问题。

您需要将 JAVA x64 目录作为 JAVA_HOME 环境变量中的值。

更改JAVA_HOME目录时,请重新启动控制台(终端、CMD、PowerShell 等(

Cassandra 不适用于 64 位版本的 JDK,我不得不将JAVA_HOME指向 64 位版本的 JRE。cqlsh不适用于最新的 Python,请尝试 Python 2.7

最新更新