我怎么知道我正在运行什么版本的Cassandra?

Bia*_*cki 21 debian amazon-ec2 cassandra

我只是按照下面链接中的说明运行运行Cassandra的EC2上的机器,但我不知道它是什么版本.我怎么知道这个?我知道我错过了一些非常简单的东西,只是不知道在哪里看.

http://wiki.apache.org/cassandra/CloudConfig

Cra*_*eel 46

使用nodetools可能更容易

./nodetool -h localhost version
Run Code Online (Sandbox Code Playgroud)


Cos*_*aru 15

你可以使用cqlsh.

$ cqlsh

Connected to Test Cluster at localhost:9160.
[cqlsh 3.1.8 | Cassandra 1.2.18 | CQL spec 3.0.5 | Thrift protocol 19.36.2]
Use HELP for help.
Run Code Online (Sandbox Code Playgroud)


Hai*_*ang 8

也可以在CQL中使用"SHOW VERSION"命令:

cqlsh:mydb> SHOW VERSION ;
[cqlsh 5.0.1 | Cassandra 2.1.2 | CQL spec 3.2.0 | Native protocol v3]
Run Code Online (Sandbox Code Playgroud)


chu*_*ckx 5

在查看了您列出的说明之后,看起来您正在使用Debian(基于)的系统.特别是在"Cassandra Basic Setup"部分中,它说:

Step 3. Install the Debian package for Cassandra

% apt-get update % apt-get install cassandra

At this point, Cassandra will be installed and running. However, it's not configured for a multi-node cluster. So we need to continue.
Run Code Online (Sandbox Code Playgroud)

如果您按照此步骤安装Cassandra,您只需使用Debian的软件包管理工具来查询您安装的软件包:

% dpkg -s cassandra
Run Code Online (Sandbox Code Playgroud)