【问题标题】:cassandra.bat -f -- issue to start cassandra in windows 8.1 procassandra.bat -f -- 在 windows 8.1 pro 中启动 cassandra 的问题
【发布时间】:2019-07-14 22:15:18
【问题描述】:

我正在 Windows 8.1 pro 中设置 cassandra。我已经尝试过使用 JDK 8、Open JDK 12 和 JDK 12。我在 windows 中安装 cassandra 时缺少什么。

C:\apache\apache-cassandra-3.11.4\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.

我希望 CASSANDRA 应该开始。

【问题讨论】:

  • WARNING! Detected a power profile other than High Performance. 另一个不在 Windows 上运行 Cassandra 的原因。

标签: cassandra cassandra-3.0


【解决方案1】:

通过将 JAVA_HOME 指向 jre1.8.0_212/ 而不是 jdk1.8.0_212/ 解决了这个问题。我试图理解为什么它只适用于 JRE 1.8 为什么它不能工作高级 JDK (JDK12)。 谁能分析一下?

【讨论】:

  • 在 Cassandra 4.0 发布之前,Cassandra 不支持超过 1.8 的 JRE。我相信您知道,Java 版本 8 和 12 之间已经弃用/添加/更改了许多内容。让底层代码在 Java 11 上运行需要付出很大的努力:issues.apache.org/jira/browse/CASSANDRA-9608
猜你喜欢
  • 2011-09-05
  • 2016-07-05
  • 2013-07-25
  • 1970-01-01
  • 1970-01-01
  • 2011-09-28
  • 2011-11-21
  • 2021-11-26
相关资源
最近更新 更多