首页 > 解决方案 > cassandra 和 cqlsy 的错误和警告

问题描述

当我运行 cassandra 时,我得到如下输出:

D:\STUDIA\cassandra\apache-cassandra-3.11.9\bin>cassandra
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.

当我输入 cqlsh 时:

D:\STUDIA\cassandra\apache-cassandra-3.11.9\bin>cqlsh
Connection error: ('Unable to connect to any servers', {'127.0.0.1': error(10061, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Nie mo\xbfna nawi\xb9za\xe6 po\xb3\xb9czenia, poniewa\xbf komputer docelowy aktywnie go odmawia")})

它说“无法建立连接,因为目标计算机正在积极拒绝它”

标签: cassandracqlsh

解决方案


该错误表明 Cassandra 没有运行。您需要检查 Cassandrasystem.log以了解原因。

它可能无法启动或关闭。不查看日志就不可能知道原因。干杯!


推荐阅读