无法登录到Google云平台中托管的3个节点的Cassandra集群中的cqlsh

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了无法登录到Google云平台中托管的3个节点的Cassandra集群中的cqlsh相关的知识,希望对你有一定的参考价值。

我正在设置一个3节点的Cassandra集群,在安装cassandra之后我尝试使用'cqlsh'连接到cassandra

I'm not able to connect to cassandra db terminal. 
rammady@deb-cassandra-ram-1:~$ cqlsh 10.142.0.76 Connection error:
('Unable to connect to any servers', {'127.0.0.1': error(111, "Tried
connecting to [('127.0.0.1', 9042)]. Last error: Connection
refused")})

I've modified cassandra.yaml file and provided 1: private ip address
under seed    -seed:10.142.0.75,10.142.0.76,10.142.0.77 2:
listen_address: 10.142.0.75  3: rpc_address: 10.142.0.75
答案

您需要连接到您在配置中定义的ip:

cqlsh 10.142.0.75

netstat -tulpn会告诉你,节点正在监听环回,如果。

以上是关于无法登录到Google云平台中托管的3个节点的Cassandra集群中的cqlsh的主要内容,如果未能解决你的问题,请参考以下文章

google云游戏stadia

使用 Go 在 Google Container/Compute Engine 中登录到 Google Cloud

通过 VPC/*** 的 Google 托管服务(BigQuery、云存储等)

Docker私有云管理平台————Docker Shipyard

Docker私有云管理平台————Docker Shipyard

Docker私有云管理平台————Docker Shipyard