Amazon ec2 我如何判断卡桑德拉I';我在跑步?

Amazon ec2 我如何判断卡桑德拉I';我在跑步?,amazon-ec2,debian,cassandra,Amazon Ec2,Debian,Cassandra,我只是按照下面链接中的说明在EC2上启动了一台运行Cassandra的机器,但我不知道它是什么版本。我怎么知道呢?我知道我错过了一些非常简单的东西,只是不知道该去哪里找 查看您列出的说明后,您似乎正在使用基于Debian的系统。特别是在“Cassandra基本设置”部分,它说: Step 3. Install the Debian package for Cassandra % apt-get update % apt-get install cassandra At this point,

我只是按照下面链接中的说明在EC2上启动了一台运行Cassandra的机器,但我不知道它是什么版本。我怎么知道呢?我知道我错过了一些非常简单的东西,只是不知道该去哪里找


查看您列出的说明后,您似乎正在使用基于Debian的系统。特别是在“Cassandra基本设置”部分,它说:

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.
如果您按照此步骤安装Cassandra,只需使用Debian的软件包管理工具查询您安装的软件包:

% dpkg -s cassandra

尝试
description\u version()
方法

使用nodetools可能更容易

你可以使用cqlsh

也可以在CQL中使用“显示版本”命令:

cqlsh:mydb> SHOW VERSION ;
[cqlsh 5.0.1 | Cassandra 2.1.2 | CQL spec 3.2.0 | Native protocol v3]

您可以查询包管理器:

dpkg -l cassandra


转到Cqlsh命令提示符并键入
show version
以获取您正在使用的cassandra版本

Awesome!我的一个示例输出是
$./nodetool-h版本ReleaseVersion:1.2.6.6
,这将为您提供debian软件包版本。
cqlsh:mydb> SHOW VERSION ;
[cqlsh 5.0.1 | Cassandra 2.1.2 | CQL spec 3.2.0 | Native protocol v3]
dpkg -l cassandra
yum info cassandra