Partitioner type

2013-07-04 Thread Vivek Mishra
Hi, Is it possible to know, type of partitioner programmitcally at runtime? -Vivek

Custom Partitioner Type

2012-08-13 Thread A J
Is it possible to use a custom Partitioner type (other than RP or BOP) ? Say if my rowkeys are all Integers and I want all even keys to go to node1 and odd keys to node2, is it feasible ? How would I go about ? Thanks.

Re: Partitioner type

2013-07-04 Thread Shubham Mittal
Yeah its possible, It depends on which client you're using. e,g. In pycassa(python client for cassandra), I use >> import pycassa >> from pycassa.system_manager import * >> sys = SystemManager('hostname:portnumber') >> sys.describe_partitioner() On Thu, Jul 4, 2013 at 5:32 PM, Vivek Mishra wr

Re: Partitioner type

2013-07-04 Thread Haithem Jarraya
yes, you can query local CF in system keyspace: select partitioner from system.local; H On 4 July 2013 13:02, Vivek Mishra wrote: > Hi, > Is it possible to know, type of partitioner programmitcally at runtime? > > -Vivek >

Re: Partitioner type

2013-07-04 Thread Vivek Mishra
Just saw , thrift apis describe_paritioner() method. Thanks for quick suggestions. -Vivek On Thu, Jul 4, 2013 at 5:40 PM, Haithem Jarraya wrote: > yes, you can query local CF in system keyspace: > > select partitioner from system.local; > > > H > > > On 4 July 2013 13:02, Vivek Mishra wrote:

Re: Custom Partitioner Type

2012-08-13 Thread aaron morton
ww.thelastpickle.com On 14/08/2012, at 7:33 AM, A J wrote: > Is it possible to use a custom Partitioner type (other than RP or BOP) ? > Say if my rowkeys are all Integers and I want all even keys to go to > node1 and odd keys to node2, is it feasible ? How would I go about ? > > Thanks.

about the partitioner type

2011-01-23 Thread raoyixuan (Shandy)
whether the random/order partitioner specify the token for the node ,not for key? 华为技术有限公司 Huawei Technologies Co., Ltd.[Company_logo] Phone: 28358610 Mobile: 13425182943 Email: raoyix...@huawei.com 地址:深圳市龙岗区坂田华为基地 邮编:518129 Huawei Technologies Co., Ltd. Bantian

Re: about the partitioner type

2011-01-23 Thread Tyler Hobbs
http://www.datastax.com/docs/0.7/operations/clustering#tokens-partitioners-and-the-ring - Tyler 2011/1/23 raoyixuan (Shandy) > whether the random/order partitioner specify the token for the node > ,not for key? > > > > 华为技术有限公司 Huawei Technologies Co., Ltd.[image: Company_logo] > > > > > > >

RE: about the partitioner type

2011-01-23 Thread raoyixuan (Shandy)
: user@cassandra.apache.org Subject: Re: about the partitioner type http://www.datastax.com/docs/0.7/operations/clustering#tokens-partitioners-and-the-ring - Tyler 2011/1/23 raoyixuan (Shandy) mailto:raoyix...@huawei.com>> whether the random/order partitioner specify the token for the node ,n

Re: about the partitioner type

2011-01-24 Thread aaron morton
rtitioner > > From: Tyler Hobbs [mailto:ty...@riptano.com] > Sent: Monday, January 24, 2011 11:43 AM > To: user@cassandra.apache.org > Subject: Re: about the partitioner type > > http://www.datastax.com/docs/0.7/operations/clustering#tokens-partitioners-and-the-ring > > - Ty

Choosing a Partitioner Type for Random java.util.UUID Row Keys

2011-12-19 Thread Drew Kutcharian
Hey Guys, I just came across http://wiki.apache.org/cassandra/ByteOrderedPartitioner and it got me thinking. If the row keys are java.util.UUID which are generated randomly (and securely), then what type of partitioner would be the best? Since the key values are already random, would it make a

Re: Choosing a Partitioner Type for Random java.util.UUID Row Keys

2011-12-20 Thread Filipe Gonçalves
Generally, RandomPartitioner is the recommended one. If you already provide randomized keys it doesn't make much of a difference, the nodes should be balanced with any partitioner. However, unless you have UUID in all keys of all column families (highly unlikely) ByteOrderedPartitioner and OrderPre

Re: Choosing a Partitioner Type for Random java.util.UUID Row Keys

2011-12-20 Thread Bryce Allen
I think it comes down to how much you benefit from row range scans, and how confident you are that going forward all data will continue to use random row keys. I'm considering using BOP as a way of working around the non indexes super column limitation. In my current schema, row keys are random UU

Re: Choosing a Partitioner Type for Random java.util.UUID Row Keys

2011-12-20 Thread aaron morton
Bryce, Have you considered using CompositeColumns and a standard CF? Row key is the UUID column name is (timestamp : dir_entry) you can then slice all columns with a particular time stamp. Even if you have a random key, I would use the RP unless you have an extreme use case.

Re: Choosing a Partitioner Type for Random java.util.UUID Row Keys

2011-12-20 Thread Bryce Allen
I wasn't aware of CompositeColumns, thanks for the tip. However I think it still doesn't allow me to do the query I need - basically I need to do a timestamp range query, limiting only to certain file names at each timestamp. With BOP and a separate row for each timestamp, prefixed by a random UUID

Re: Choosing a Partitioner Type for Random java.util.UUID Row Keys

2011-12-21 Thread aaron morton
AFAIK there are no plans kill the BOP, but I would still try to make your life easier by using the RP. . My understanding of the problem is at certain times you snapshot the files in a dir; and the main query you want to handle is "At what points between time t0 and time t1 did files x,y and z

Re: Choosing a Partitioner Type for Random java.util.UUID Row Keys

2011-12-22 Thread Bryce Allen
Thanks, that definitely has advantages over using a super column. We ran into thrift timeouts when the super column got large, and with the super column range query there is no way (AFAIK) to batch the request at the subcolumn level. -Bryce On Thu, 22 Dec 2011 10:06:58 +1300 aaron morton wrote:

Re: Choosing a Partitioner Type for Random java.util.UUID Row Keys

2011-12-23 Thread aaron morton
No problems. IMHO you should develop a sizable bruise banging your head against a using Standard CF's and the Random Partitioner before using something else. Cheers - Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 23/12/2011, at 6:29 AM, Bryce A