Re: Programmatic Cassandra version detection/extraction

2014-11-13 Thread Alex Popescu
On Wed, Nov 12, 2014 at 2:44 PM, Otis Gospodnetic < otis.gospodne...@gmail.com> wrote: > Hi, > > Is there a way to detect which version of Cassandra one is running? > Is there an API for that, or a constant with this value, or maybe an MBean > or some other way to get to this info? > > Here's the

Re: Programmatic Cassandra version detection/extraction

2014-11-13 Thread Tim Dunphy
This is interesting. If I do a SELECT release_version from system.local; on my system it's telling me that I'm using 2.1.1 [root@beta-new:/usr/local/apache-cassandra-2.1.2] #cqlsh Connected to Jokefire Cluster at beta-new.jokefire.com:9042. [cqlsh 5.0.1 | Cassandra 2.1.1 | CQL spec 3.2.0 | Native

Re: Programmatic Cassandra version detection/extraction

2014-11-13 Thread Chris Lohfink
There is a "ReleaseVersion" attribute in the org.apache.cassandra.db:StorageService bean --- Chris Lohfink On Wed, Nov 12, 2014 at 5:57 PM, Michael Shuler wrote: > On 11/12/2014 04:58 PM, Michael Shuler wrote: > >> On 11/12/2014 04:44 PM, Otis Gospodnetic wrote: >> >>> Is there a way to detect

Re: Programmatic Cassandra version detection/extraction

2014-11-12 Thread Michael Shuler
On 11/12/2014 04:58 PM, Michael Shuler wrote: On 11/12/2014 04:44 PM, Otis Gospodnetic wrote: Is there a way to detect which version of Cassandra one is running? Is there an API for that, or a constant with this value, or maybe an MBean or some other way to get to this info? I'm not sure if th

Re: Programmatic Cassandra version detection/extraction

2014-11-12 Thread Michael Shuler
On 11/12/2014 04:44 PM, Otis Gospodnetic wrote: Is there a way to detect which version of Cassandra one is running? Is there an API for that, or a constant with this value, or maybe an MBean or some other way to get to this info? I'm not sure if there are other methods, but this should always w

Programmatic Cassandra version detection/extraction

2014-11-12 Thread Otis Gospodnetic
Hi, Is there a way to detect which version of Cassandra one is running? Is there an API for that, or a constant with this value, or maybe an MBean or some other way to get to this info? Here's the use case: SPM monitors Cassandra , but Cassandra MBeans and metrics have o