我无法在 datastax 消息中建立连接:无法打开连接

问题描述 投票:0回答:1

I have this problem with the connection because I have tried every way and it doesn't connect meenter image description here [其他选项(https://i.stack.imgur.com/Scw8J.jpg)我尝试执行多个进程,但不知道为什么它无法连接。请帮助我!

cassandra localhost datastax cql multipeer-connectivity
1个回答
0
投票

您似乎正在尝试通过默认端口 9042 连接到本地计算机上的 Cassandra。

如果这不起作用,我会检查以下内容:

  • Cassandra 确实在您的本地计算机上运行(使用
    nodetool status
    进行验证)。
  • listen_address
    rpc_address
    都绑定到
    localhost
    nodetool status
    输出中显示的地址是应该用于连接的地址。
  • 如果使用
    CassandraAuthorizer
    PasswordAuthenticator
    ,则您提供了正确的用户名和密码。
  • 如果启用了客户端到节点 SSL,您将提供正确的 SSL/TLS 证书。
  • 此外,从 Cassandra 4.0 开始,启用客户端到节点 SSL 的连接现在发生在端口 9142 上,而常规的未加密流量仍在 9042 上。
© www.soinside.com 2019 - 2024. All rights reserved.