【发布时间】:2015-11-28 15:49:10
【问题描述】:
我无法 cqlsh 到远程主机
./cqlsh xx.xx.x.xxx 9042
Connection error: ('Unable to connect to any servers', {'10.101.33.163':
ConnectionException(u'Did not get expected SupportedMessage response;
instead, got: <ErrorMessage code=0000 [Server error]
message="io.netty.handler.codec.DecoderException:
org.apache.cassandra.transport.ProtocolException: Invalid or unsupported
protocol version: 4">',)})
我正在使用 cqlsh 5.0.1 和 python 2.7.10
./cqlsh --version
cqlsh 5.0.1
python -V
Python 2.7.10
我在 mac 上使用 http://www.datastax.com/2012/01/working-with-apache-cassandra-on-mac-os-x 的说明下载了 cassandra。
我本地的 Cassandra 是 2.2.1(我从 zip 文件中了解到),看起来远程主机上的 cassandra 不是 2.2.1(我假设它是 2.0 或 2.1)。在不明确知道远程主机上的版本的情况下,如何尝试连接到远程主机上的 cassandra
【问题讨论】: