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

问题描述 投票:-2回答:1

我正在设置一个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
cassandra
1个回答
0
投票

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

cqlsh 10.142.0.75

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

© www.soinside.com 2019 - 2024. All rights reserved.