Cassandra版本错误



嗨,有人指示我要使用哪种版本的cassandra运行cqlsh-3.4.3,以便我能够通过查询运行组。

目前我的环境是

[cqlsh 5.0.1 | Cassandra 3.9 | CQL spec 3.4.2 | Native protocol v4]

尝试bin/cqlsh时错误 - cqlversion = 3.4.3

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

请建议。谢谢

在使用Cassandra 3.7尝试的同样错误。

您可以尝试强迫CQLSH使用选项

使用特定的CQL版本

-cqlversion ="#。#。#。"

示例:cqlsh 127.0.0.1 9042 -cqlversion =" 3.2.0"(在您的情况下:3.4.2)

我的示例:

me@XXX:~$ cqlsh <cassandra_ip>
Connection error: ('Unable to connect to any servers', {<cassandra_ip>: ProtocolError("cql_version '3.4.2' is not supported by remote (w/ native protocol). Supported versions: [u'3.3.1']",)})
me@XXX:~$ cqlsh <cassandra_ip> --cqlversion="3.3.1"
Connected to UAT Analytics Cluster at <cassandra_ip>:9042.
[cqlsh 5.0.1 | Cassandra 2.2.8 | CQL spec 3.3.1 | Native protocol v4]
Use HELP for help.
cqlsh> 

update

(1)group by将在CQL 3.4.3和Cassandra 3.10中得到支持。

(2)不建议升级特定版本的Cassandra的CQL规格。或者不可能升级一个Cassandra版本的CQL Spec版本(此处)。

(3)为了使用group by,您应该将Cassandra升级为3.10或用户定义的功能,或更改表设计...

最新更新