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.
开始报错: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客户端无法连接的问题时,通过调整cassandra.yaml文件中rpc_address和listen_address的配置,成功解决了IP地址错误导致的连接失败。此经验分享了在StackOverflow上找到的解决方案,帮助开发者正确配置Cassandra节点,实现客户端的正常连接。
8730

被折叠的 条评论
为什么被折叠?



