我试图通过 cqlsh 连接到我的远程 cassandra DB,

Connection error: ('Unable to connect to any servers', {'XX.XX.XX.XX': ProtocolError("cql_version '3.4.0' is not supported by remote (w/ native protocol). Supported versions: [u'3.2.1']",)})

我从这个 link 安装了 Planet Cassandra 3.2.1 版。

我运行命令:nodetool version 它显示 3.2.1 版本。

我发现了类似的问题 here ,但这对我没有帮助。

最佳答案

尽管如此,如果您想通过旧版本进行连接,您可以:

$ cqlsh --cqlversion=3.2.1 host_ip

例如:$ cqlsh --cqlversion=3.2.1 192.168.0.172其中 192.168.0.172 是您要连接的机器。

关于python - Cassandra cqlsh 连接错误 : 'Unable to connect to any servers' , .cql_version '3.4.0' is not supported by remote,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35308378/

10-11 22:29