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 protocol v3]
Use HELP for help.
cqlsh> SELECT release_version from system.local;

 release_version
-----------------
           2.1.1

(1 rows)
cqlsh>

[root@beta-new:/usr/local/apache-cassandra-2.1.2] #nodetool gossipinfo  |
grep RELEASE_VERSION
  RELEASE_VERSION:2.1.1

But I definitely launched cassandra from a cassandra-2.1.2 directory.

Could this be because I rsync'd the data directory from a cassandra 2.1.1
directory over to the 2.1.2 directory??

Thanks
Tim

On Thu, Nov 13, 2014 at 10:55 AM, Chris Lohfink <clohfin...@gmail.com>
wrote:

> 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
>>
>
>


-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

Reply via email to