Re: Output of "select token from system.local where key = 'local' "

2016-08-31 Thread Moshe Levy
. P On Wednesday, 31 August 2016, Alexander DEJANOVSKI wrote: > Hi Siddharth, > > yes, we are sure token ranges will never overlap (I think the start token > in describering output is excluded and the end token included). > > You can get per host information in the

Re: Output of "select token from system.local where key = 'local' "

2016-08-30 Thread Alexander DEJANOVSKI
Hi Siddharth, yes, we are sure token ranges will never overlap (I think the start token in describering output is excluded and the end token included). You can get per host information in the Datastax Java driver using : Set rangesForKeyspace = cluster.getMetadata().getTokenRanges(

Re: Output of "select token from system.local where key = 'local' "

2016-08-30 Thread Siddharth Verma
Hi , Can we be sure that, token ranges in nodetool describering will be non overlapping? Thanks Siddharth Verma

Re: Output of "select token from system.local where key = 'local' "

2016-08-30 Thread Siddharth Verma
Hi Alex, Thanks for your reply. I saw describering yesterday, but didn't know "the first endpoint being the primary". Thanks for that. Is there anyway to get the same information in application? If there isn't any way to get the same information at application layer, I would be using this as a

Re: Output of "select token from system.local where key = 'local' "

2016-08-30 Thread Alexander DEJANOVSKI
Hi Siddarth, I would recommend running "nodetool describering keyspace_name" as its output is much simpler to reason about : Schema Version:9a091b4e-3712-3149-b187-d2b09250a19b TokenRange: TokenRange(start_token:1943978523300203561, end_token:2137919499801737315, endpoints:[127.0.0.3,

Re: Output of "select token from system.local where key = 'local' "

2016-08-30 Thread Siddharth Verma
Hi, I saw that in cassandra-driver-core,(3.1.0) Metadata.TokenMap has primaryToTokens which has the value for ALL the nodes. I tried to find (primary)range ownership for nodes in one DC. And executed the following in debug mode in IDE. TreeMap primaryTokenMap = new TreeMap<>();

Re: Output of "select token from system.local where key = 'local' "

2016-08-29 Thread Siddharth Verma
Hi Eric, Thanks for your reply. I know about V nodes, and token ownership. If I want to find the token range, how do i do that from this data? For eg, the 1st entry is -1035756551821816651. which range is it, i.e. is this the start/end, and how to find the other extremity of this range. Thanks,

Re: Output of "select token from system.local where key = 'local' "

2016-08-29 Thread Eric Zietlow
Siddharth, This is the tokens assigned to your local node. It looks from this that you have 256 vnodes set. The system.local only stored information on the local node. Thanks, Eric Zietlow On Mon, Aug 29, 2016 at 5:32 PM, Siddharth Verma < verma.siddha...@snapdeal.com> wrote: > Hi, > Could

Output of "select token from system.local where key = 'local' "

2016-08-29 Thread Siddharth Verma
Hi, Could someone help me understand the output of the following command select token from system.local where key = 'local'; I guess, it shows a set of tokens, How to interpret the primary token range owned by that particular node. Sample output {'-1035756551821816651', '-108957861241888777',