【问题标题】:why can´t I install Cassandra 3.0?为什么我不能安装 Cassandra 3.0?
【发布时间】:2020-05-12 17:26:36
【问题描述】:

我正在尝试安装 Cassandra 3.0,但是,当我尝试在我的 PC 上安装它时,它给了我这个错误:

Cassandra 3.0 install error

上面写着:

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
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap 

谁能帮我解决这个错误?谢谢!

【问题讨论】:

    标签: cassandra cassandra-3.0


    【解决方案1】:

    通过安全手段,并非所有脚本都可以在 powershell 上运行。因此,您应该通过运行以下命令启用 powershell 来执行该脚本: Set-ExecutionPolicy Unrestricted

    【讨论】:

      【解决方案2】:

      无法为 2097152KB 对象堆预留足够的空间

      这意味着 Cassandra 的 Java VM 尝试从操作系统分配大约 2G 的堆内存,但您的操作系统无法提供那么多。

      您要么必须以较小的堆大小设置运行 C*,要么在机器上释放更多 RAM,添加 RAM 硬件,要么启用/增加交换。对于后一种情况,请注意如果操作系统必须将内存交换到磁盘,C* 的性能会很差。

      【讨论】:

        【解决方案3】:

        我在 Windows 10 上遇到了完全相同的问题,我通过在管理员命令提示符下运行 cassandra 解决了这个问题。

        【讨论】:

          猜你喜欢
          • 2018-05-14
          • 2021-02-26
          • 2018-02-27
          • 2016-10-11
          • 1970-01-01
          • 1970-01-01
          • 2010-09-30
          • 2018-12-12
          • 2019-03-10
          相关资源
          最近更新 更多