Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EDD689E4B for ; Tue, 29 Nov 2011 00:51:50 +0000 (UTC) Received: (qmail 4956 invoked by uid 500); 29 Nov 2011 00:51:48 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 4933 invoked by uid 500); 29 Nov 2011 00:51:48 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 4925 invoked by uid 99); 29 Nov 2011 00:51:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 00:51:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of benoit@noisette.ch designates 209.85.213.172 as permitted sender) Received: from [209.85.213.172] (HELO mail-yx0-f172.google.com) (209.85.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 00:51:41 +0000 Received: by yenl2 with SMTP id l2so120557yen.31 for ; Mon, 28 Nov 2011 16:51:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.232.38 with SMTP id tl6mr12919446obc.22.1322527879424; Mon, 28 Nov 2011 16:51:19 -0800 (PST) Received: by 10.182.56.161 with HTTP; Mon, 28 Nov 2011 16:51:19 -0800 (PST) In-Reply-To: <4ED3AB7F.6000806@gmail.com> References: <4ECE148A.1070303@cs.bgu.ac.il> <4ED3AB7F.6000806@gmail.com> Date: Tue, 29 Nov 2011 01:51:19 +0100 Message-ID: Subject: Re: need help with choosing correct tokens for ByteOrderedPartitioner From: Benoit Perroud To: "user@cassandra.apache.org" Content-Type: multipart/alternative; boundary=f46d044472c175695a04b2d50411 X-Virus-Checked: Checked by ClamAV on apache.org --f46d044472c175695a04b2d50411 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You may want to add 29991231 instead of appending. Le lundi 28 novembre 2011, Piavlo a =C3=A9crit : > Anyone can help with this? > > Thanks > > On 11/24/2011 11:55 AM, Piavlo wrote: >> >> Hi, >> >> We need help with choosing correct tokens for ByteOrderedPartitioner >> Originally the key where supposed to be member_id-yyyymmdd >> but since we need to male rage scans on same member_id and varying date ranges yyyymmdd >> we decided to use ByteOrderedPartitioner, so we need that same member will be assigned to same token range. >> So we decided that the keys will be md5(member_id)yyyymmdd >> Since md5 on member_id should give even distribution or member_id across tokens. >> >> We have 4 nodes, and don't understand how to choose the tokens. >> We tried the following tokens >> >> # ./tokengentool 4 >> token 0: 0 >> token 1: 42535295865117307932921825928971026432 >> token 2: 85070591730234615865843651857942052864 >> token 3: 127605887595351923798765477786913079296 >> >> and appended 29991231 >> >> so we ended up with the following tokens >> >> token 0: 0 >> token 1: 4253529586511730793292182592897102643229991231 >> token 2: 8507059173023461586584365185794205286429991231 >> token 3: 12760588759535192379876547778691307929629991231 >> >> But the key end up not evenly distributed. >> >> So any help is appreciated. >> >> Thanks >> Alex > > --=20 sent from my Nokia 3210 --f46d044472c175695a04b2d50411 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You may want to add 29991231 instead of appending.

Le lundi 28 novem= bre 2011, Piavlo <lolitushka@gma= il.com> a =C3=A9crit=C2=A0:
> Anyone can help with this?
&g= t;
> Thanks
>
> On 11/24/2011 11:55 AM, Piavlo wrote:
>>
>> = =C2=A0Hi,
>>
>> We need help with choosing =C2=A0correct = tokens for ByteOrderedPartitioner
>> Originally the key where supp= osed to be member_id-yyyymmdd
>> but since we need to male rage scans on same member_id and varying= date ranges yyyymmdd
>> we decided to use ByteOrderedPartitioner,= so we need that same member will be assigned to same token range.
>&= gt; So we decided that the keys will be md5(member_id)yyyymmdd
>> Since md5 on member_id should give even distribution or member_id = across tokens.
>>
>> We have 4 nodes, and don't under= stand how to choose the tokens.
>> We tried the following tokens >>
>> # ./tokengentool 4
>> token 0: 0
>> = token 1: 42535295865117307932921825928971026432
>> token 2: 850705= 91730234615865843651857942052864
>> token 3: 127605887595351923798= 765477786913079296
>>
>> and appended 29991231
>>
>> so we en= ded up with the following tokens
>>
>> token 0: 0
>= > token 1: 4253529586511730793292182592897102643229991231
>> to= ken 2: 8507059173023461586584365185794205286429991231
>> token 3: 12760588759535192379876547778691307929629991231
>&g= t;
>> But the key end up not evenly distributed.
>>
&g= t;> So any help is appreciated.
>>
>> Thanks
>&g= t; Alex
>
>

--
sent from my Nokia 3210
--f46d044472c175695a04b2d50411--