我只是在运行Cassandra的EC2上运行一台机器,遵循下面链接中的说明,但我不知道它是什么版本。我怎么解决这个问题?我知道我错过了一件非常简单的事情,只是不知道在哪里看。如何判断我正在运行的Cassandra版本?
http://wiki.apache.org/cassandra/CloudConfig
我只是在运行Cassandra的EC2上运行一台机器,遵循下面链接中的说明,但我不知道它是什么版本。我怎么解决这个问题?我知道我错过了一件非常简单的事情,只是不知道在哪里看。如何判断我正在运行的Cassandra版本?
http://wiki.apache.org/cassandra/CloudConfig
审查您所列出的指令后,它看起来像你是一个Debian(基于)系统上。特别是,“卡珊德拉基本设置”部分中,它说:
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.
如果按照这个步骤来安装卡桑德拉,你可以简单地使用Debian的软件包管理工具来打听你安装的软件包:
% dpkg -s cassandra
尝试describe_version()
方法。
这可能是更容易使用nodetools
./nodetool -h localhost version
太棒了!我的示例输出是'$ ./nodetool -h
你可以使用cqlsh。在CQL
$ 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.
也可以使用 “显示版本” 命令:
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
转到Cqlsh命令提示符并键入show version
获取您正在使用的cassandra版本
这将为您带来Debian软件包版本。 – GregB 2013-12-12 17:22:36