无法登录Google Cloud Platform中托管的3个节点的Cassandra集群中的cqlsh

时间:2019-04-13 14:59:14

标签: cassandra

我正在设置一个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

1 个答案:

答案 0 :(得分:0)

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

cqlsh 10.142.0.75

netstat -tulpn将向您显示节点是否在监听而不是回送。