cassandra-cqlsh 连接不了

阅读更多
cassandra 的 cqlsh 客户端进不了,狂看各种教程,终于在stackoverflow 找到灵感。
开始报错:Connection error: Could not connect to 192.168.1.254:9160

原因是 IP 不对,IP 应该是 rpc_address ,这是在cassandra.yaml 里配置的。
我这里的 rpc_address:192.168.1.254
所以,在终端输入: cqlsh 192.168.1.254 9160
就可以登进去了。

来源:http://stackoverflow.com/questions/29121904/cassandra-cqlsh-connection-refused

灵感来源:You need to edit cassandra.yaml on the node you are trying to connect to and set the node ip address for rpc_address and listen_address and restart Cassandra.

rpc_address is the address on which Cassandra listens to the client calls.

listen_address is the address on which Cassandra listens to the other Cassandra nodes.

你可能感兴趣的:(cassandra,cqlsh,linux)