cassandra version Error

梦想的初衷 提交于 2019-12-11 06:07:28

问题


Hi anyone instruct me which version of cassandra should I use to run cqlsh-3.4.3, So that i will be able to run GROUP BY queries.

Currently My environment is

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

Error on trying 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']",)})

Please Suggest.Thanks.

Same Error while tried with cassandra 3.7 Also.


回答1:


You can try to force cqlsh to use a specific cql version using the option

--cqlversion="#.#.#"

example: cqlsh 127.0.0.1 9042 --cqlversion="3.2.0" (in your case: 3.4.2)

example of mine:

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 will be supported in CQL 3.4.3 and Cassandra 3.10.

(2) It is not recommended to upgrade CQL spec for Cassandra of specific version. OR it is impossible to upgrade CQL spec version for one Cassandra version (here).

(3) In order to use group by, you should upgrade cassandra to 3.10, OR user defined functions, OR change your table design...



来源:https://stackoverflow.com/questions/41142540/cassandra-version-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!