我只是在運行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