cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: How to invoke getNaturalEndpoints with jconsole?
Date Wed, 11 May 2011 15:23:21 GMT
Thanks!

On Wed, May 11, 2011 at 10:20 AM, Maki Watanabe <watanabe.maki@gmail.com> wrote:
> Add a new faq:
> http://wiki.apache.org/cassandra/FAQ#jconsole_array_arg
>
> 2011/5/11 Nick Bailey <nick@datastax.com>:
>> Yes.
>>
>> On Wed, May 11, 2011 at 8:25 AM, Maki Watanabe <watanabe.maki@gmail.com> wrote:
>>> Thanks,
>>>
>>> So my options are:
>>> 1. Write a thrift client code to call describe_ring with hashed key
>>> or
>>> 2. Write a JMX client code to call getNaturalEndpoints
>>>
>>> right?
>>>
>>> 2011/5/11 Nick Bailey <nick@datastax.com>:
>>>> As far as I know you can not call getNaturalEndpoints from jconsole
>>>> because it takes a byte array as a parameter and jconsole doesn't
>>>> provide a way for inputting a byte array. You might be able to use the
>>>> thrift call 'describe_ring' to do what you want though. You will have
>>>> to manually hash your key to see what range it falls in however.
>>>>
>>>> On Wed, May 11, 2011 at 6:14 AM, Maki Watanabe <watanabe.maki@gmail.com>
wrote:
>>>>> Hello,
>>>>> It's a question on jconsole rather than cassandra, how can I invoke
>>>>> getNaturalEndpoints with jconsole?
>>>>>
>>>>> org.apache.cassandra.service.StorageService.Operations.getNaturalEndpoints
>>>>>
>>>>> I want to run this method to find nodes which are responsible to store
>>>>> data for specific row key.
>>>>> I can find this method on jconsole but I can't invoke it because the
>>>>> button is gray out and doesn't accept
>>>>> click.
>>>>>
>>>>> Thanks,
>>>>> --
>>>>> maki
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> w3m
>>>
>>
>
>
>
> --
> w3m
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Mime
View raw message