2010-08-30 153 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版本

相關問題