【问题标题】:cqlsh "Unable to connect to any servers" on Windows installationcqlsh“无法连接到任何服务器”在 Windows 安装
【发布时间】:2022-06-10 20:57:55
【问题描述】:

我在 Windows 10 上安装了 Cassandra。当我尝试从 /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: No connection could be made because the target machine \
    actively refused it")})

我从 apache.org 官方网站安装了 Cassandra。我也得到了参考 https://phoenixnap.com/kb/install-cassandra-on-windows - 从参考资料来看,一切都很好。

谁能帮我解决这个问题?提前致谢。

【问题讨论】:

  • 您确定 Cassandra 正在运行吗?你在进程列表中看到了吗?
  • 另外,您安装了哪个 C* 版本? 3.11 还是 4.0?
  • 最后,提供Cassandra启动时打印的日志。
  • 不,我看不到进程列表,cassandra 的版本是 3.11.13,java 的版本是我使用的 JDK 1.8
  • 我得到的只是我已经与你分享的错误

标签: cassandra cqlsh


【解决方案1】:

当您尝试连接时,您是否保持此终端打开并运行 Cassandra?请注意,您必须从不同的终端窗口启动 cqlsh

请再次检查步骤,很可能 Cassandra 根本无法运行。请特别注意p.4。

【讨论】:

    猜你喜欢
    • 2016-01-05
    • 2017-02-16
    • 2016-12-17
    • 2017-11-08
    • 2023-04-06
    • 2015-01-16
    • 2016-05-20
    • 2018-10-08
    • 2017-04-13
    相关资源
    最近更新 更多