Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I tell what version of Cassandra I'm running?

Tags:

I just spun up a machine on EC2 running Cassandra following the instructions in the link below, but I have no idea what version it is. How do I figure this out? I know I'm missing something incredibly simple, just don't know where to look.

http://wiki.apache.org/cassandra/CloudConfig

like image 825
Bialecki Avatar asked Aug 30 '10 23:08

Bialecki


People also ask

What version of Cassandra am I running?

Open cqlsh and type show VERSION . This gives all the versions of cqlsh, DSE, Cassandra etc.

How do I check my Cassandra?

Check the status of the Cassandra nodes in your cluster - Go to the /<Install_Dir>/apache-cassandra/bin/ directory and type the ./nodetool status command. If the status for all the nodes shows as UN , then the nodes are up and running. If the status for any node shows as DN , then that particular node is down.

How do I know what version of Cassandra I have on my Mac?

You can know the version from running cassandra by connecting it via CQLSH. The prompt displays the version of cassandra it connected to. Show activity on this post. Once you know the location of your Cassandra instance(s) you can simply execute the cassandra binary with the -v option.


1 Answers

It might be easier to use nodetools

./nodetool -h localhost version 
like image 140
CrazyPheel Avatar answered Oct 04 '22 17:10

CrazyPheel