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 <mich...@pbandjelly.org>
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 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 work:
>>
>>    SELECT release_version from system.local;
>>
>
> I asked the devs about where I might find the version in jmx and got the
> hint that I could cheat and look at `nodetool gossipinfo`.
>
> It looks like RELEASE_VERSION is reported as a field in
> org.apache.cassandra.net FailureDetector AllEndpointStates.
>
> --
> Michael
>

Reply via email to