2010-08-30 154 views

回答

6

审查您所列出的指令后,它看起来像你是一个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 
+0

这将为您带来Debian软件包版本。 – GregB 2013-12-12 17:22:36

45

这可能是更容易使用nodetools

./nodetool -h localhost version 
+1

太棒了!我的示例输出是'$ ./nodetool -h 版本 ReleaseVersion:1.2.6.6' – asgs 2013-10-12 05:55:04

15

你可以使用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. 
8

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

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

你可以查询你的包管理器:

dpkg -l cassandra 

yum info cassandra 
2

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

相关问题