gpt4 book ai didi

cassandra - 无法运行 cqlsh;创建连接超时

转载 作者:行者123 更新时间:2023-12-05 05:26:24 25 4
gpt4 key购买 nike

我无法运行 cqlsh:

$ cqlsh  10.230.34.16 9160
Connection error: ('Unable to connect to any servers', {'10.230.34.16': OperationTimedOut('errors=Timed out creating connection, last_host=None',)})

rpc服务监听9160,cqlsh还是连接不上?

$ netstat -an |grep 9160| grep LISTEN
tcp 0 0 10.230.34.16:9160 0.0.0.0:* LISTEN

有什么我可以检查的想法吗?

我正在使用 datastax cassandra 2.1.0

最佳答案

  1. 检查带有 rpc_port 的行上的 cassandra.yaml 文件:通常默认情况下 = 9160
  2. 登录到托管cassandra的机器
  3. 尝试 cqlsh 127.0.0.1 9160 :无论如何应该没问题
  4. 尝试 cqlsh [主机的 IP] 9160:如果正常,则 cassandra 可从 lan 访问,如果 ko,则 cassandra 无法从 lan 访问,但只能访问本地主机 127.0.0.1

关于cassandra - 无法运行 cqlsh;创建连接超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26556644/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com