Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find out which version of Cassandra a specific DSE is running?

So far, I haven't found a place on Datastax documentation website that sums this up. Can I easily check the version some other way on a server?

like image 624
Ztyx Avatar asked Jan 07 '15 14:01

Ztyx


People also ask

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.

What is DSE in Cassandra?

DataStax Enterprise (DSE) is the always-on, scalable data platform built on Apache Cassandra and designed for hybrid Cloud. DSE integrates graph, search, analytics, administration, developer tooling, and monitoring into a unified platform.

What is the difference between Apache Cassandra and DataStax Cassandra?

It is a NoSQL database written in Java that provides unique utilities that can't be matched by the other NoSQL databases. On the other hand, DataStax is basically a database platform that is based on Apache Cassandra. It has been designed to meet the availability and performance demands of mobile, web, and IoT apps.


2 Answers

Open cqlsh and type show VERSION.

This gives all the versions of cqlsh, DSE, Cassandra etc.

Version details

admin@cqlsh> SELECT cql_version FROM system.local;   cql_version -------------        3.4.0 

Also, nodetool version shows the Cassandra version

like image 178
Arun Avatar answered Oct 08 '22 23:10

Arun


I'm not sure if there is an explicit page that shows cassandra version by DSE release, but the 'Release Notes' page of each DSE release shows the versions that are installed. For example, here are the Release Notes for 4.5 which show all versions including cassandra that are upgraded at each minor version.

One way to check against running Cassandra instances by running the following queries in cqlsh:

select peer, release_version from system.peers; select release_version from system.local; 

This first query will return all hosts and their release version except for the local node being queried. The second query will return it for the local node being queried.

Example output:

cqlsh> select peer, release_version from system.peers;   peer      | release_version -----------+-----------------  127.0.0.3 |  2.1.2-SNAPSHOT  127.0.0.1 |  2.1.2-SNAPSHOT  (2 rows)  cqlsh> select release_version from system.local;   release_version -----------------  2.1.2-SNAPSHOT  (1 rows) 
like image 32
Andy Tolbert Avatar answered Oct 08 '22 23:10

Andy Tolbert