访问远程cassandra数据库
我正在尝试通过命令访问远程cassendra数据库:访问远程cassandra数据库,cassandra,Cassandra,我正在尝试通过命令访问远程cassendra数据库: cqlsh xx:x:x:x xxxx got below error: Connection error: ('Unable to connect to any servers', {'xx:x:x:x': ConnectionShutdown('Connection to xx:x:x:x was closed',) } ) 当我尝试访问本地主机时,出现错误: command: cql
cqlsh xx:x:x:x xxxx
got below error:
Connection error:
('Unable to connect to any servers',
{'xx:x:x:x': ConnectionShutdown('Connection to xx:x:x:x was closed',)
}
)
当我尝试访问本地主机时,出现错误:
command: cqlsh
error:
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")}
)
您需要检查在命令行中指定的给定IP和端口上是否可以访问Cassandra。如果未更改默认端口,则可以使用
cqlsh IP
。如果它不起作用,请检查您的防火墙是否不允许流量到达给定IP上的9042端口