【发布时间】:2023-03-30 01:20:02
【问题描述】:
我刚刚开始使用 Cassandra(自制安装)3.7 版和 cqlsh 5.0.1 版。 , OS X El Capitan
Cassandra 启动良好,集群立即运行。
Cqlsh 不工作(在任何节点上)并发出以下错误:
Connection error: ('Unable to connect to any servers', {'127.0.0.1': error(61, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")})
【问题讨论】:
-
您是否仔细检查了端口是否正确?
-
检查您的
nodetool status。您看到的 IP 地址是您应该使用 cqlsh 命令指定的地址(它可能不是 127.0.0.1)。