cassandra - 用Cassandra和cqlsh检查CQL版本吗?

标签 cassandra cql cqlsh

您如何检查cqlsh当前使用的是哪个cql版本?

在sql中,您可以这样做:

Select @@version

最佳答案

有两种方法可以解决此问题。

在cqlsh中,您可以简单地使用show version

aploetz@cqlsh> show version
[cqlsh 5.0.1 | Cassandra 2.1.8 | CQL spec 3.2.0 | Native protocol v3]

但是,这仅在cqlsh内部有效。幸运的是,您也可以查询system.local以获得该信息。
aploetz@cqlsh> SELECT cql_version FROM system.local;

 cql_version
-------------
       3.2.0

(1 rows)
system.local表还包含有关当前节点,集群和Cassandra工具版本的其他有用信息。有关更多信息,请使用SELECT * FROM system.local;(仅具有1行)或desc table system.local进行检查。

关于cassandra - 用Cassandra和cqlsh检查CQL版本吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31502442/

相关文章:

node.js - 使用 Nodejs 重试 Cassandra 中的策略

maven - java.lang.VerifyError : AbstractEpollUnsafe exception on Vertx, Dse应用程序

Cassandra 使用聚合函数,然后按该聚合排序

cassandra - 在 cassandra 上禁用压缩和 gc 宽限期

php - 时间序列数据的 Cassandra 分区键

cassandra - 如何列出键空间中的列族?

cassandra - Cassandra 节点负载高

cassandra - CQL 是否支持 WHERE 子句中的 "OR"运算符?

Cassandra cqlsh 不适用于非分区键的 where 子句

cassandra - 如何获取Cassandra中键空间中的表数量?