本文介绍了Cassandra cqlsh - 连接被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用Cassandra(datastax),版本2.1.3和cqlsh版本5.0.1。

I've just started working with Cassandra (datastax), version 2.1.3 and cqlsh version 5.0.1.

Cassandra启动正常,

Cassandra starts up fine and the cluster is operational instantly.

Cqlsh不工作(在任何节点上),并发出以下错误:

Cqlsh is not working (on any of the nodes) and emits the following error:



我已经尝试启动cqlsh与主机自己的ip,其他主机ip,不同的端口

I have tried starting cqlsh up with the hosts own ip, other hosts ip, different ports yet the result remains the same - always connection refused.

推荐答案

尝试更改 rpc_address 指向节点的IP而不是0.0.0.0,并在连接到cqlsh时指定IP,如同IP是10.0.1.34和 rpc_port 左到默认值9160,那么以下应该工作:

Try to change the rpc_address to point to the node's IP instead of 0.0.0.0 and specify the IP while connecting to the cqlsh, as if the IP is 10.0.1.34 and the rpc_port left to the default value 9160 then the following should work:

cqlsh 10.0.1.34 9160

或:

cqlsh 10.0.1.34

这篇关于Cassandra cqlsh - 连接被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 02:27