Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 4827 invoked from network); 10 Nov 2009 17:12:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Nov 2009 17:12:03 -0000 Received: (qmail 8056 invoked by uid 500); 10 Nov 2009 17:12:03 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 8040 invoked by uid 500); 10 Nov 2009 17:12:03 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 8031 invoked by uid 99); 10 Nov 2009 17:12:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 17:12:03 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 74.125.78.147 as permitted sender) Received: from [74.125.78.147] (HELO ey-out-1920.google.com) (74.125.78.147) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 17:12:00 +0000 Received: by ey-out-1920.google.com with SMTP id 26so57799eyw.8 for ; Tue, 10 Nov 2009 09:11:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=VzwSlM/d6O1BD/T+7Sgkzfy5aRwsGamLoBTVZaJIEPg=; b=KRgtqRHGPCc19DSd7WnFb8LIKFZx6Zo5CRpSMk/fispd5qMQi+2UZ0qxgXPLBYVWOL BgVlCLxLrptPZowTiH/8D5ldyTKzGZBbzbjq91LnctrH45AREj2TLcTuFSr7QFfy+ADT 6/uQDkCfEyPcVG62GmpY4scH50WcJOUyUhCnE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=S11Ejz8IrVMbYlmMDeVnptOg2JRUo0jcIvagPt4A5uk9AqGhQ71slexdsSjJSS3hoU yOCMz2RhGwpCyF9xClbvKCLsZ+hKjgZKLMUeY1jY2IOD0TWkD45CFs4/gCpJeKlIV8o7 ArddRR07P795hikEUrf5ZBuAFwgc6h3ACBRwE= MIME-Version: 1.0 Received: by 10.216.88.1 with SMTP id z1mr106115wee.49.1257873099114; Tue, 10 Nov 2009 09:11:39 -0800 (PST) In-Reply-To: References: <468b21170911100738u4e183063p8d6224d4799510dd@mail.gmail.com> <468b21170911100755lf846f18v68d83815aaf79db@mail.gmail.com> <468b21170911100837w60aa43c5vd9a281d6212a9f33@mail.gmail.com> <468b21170911100859q35aeec27w9d3d4faeb46bce43@mail.gmail.com> From: Jonathan Ellis Date: Tue, 10 Nov 2009 11:11:19 -0600 Message-ID: Subject: Re: Strange Data distribution in 0.4.2 To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable ... of course this will change over time, which is why we're adding active load balancing in 0.5, but the closer you can get to a reasonable starting point, the better. On Tue, Nov 10, 2009 at 11:08 AM, Jonathan Ellis wrote: > yup, so you need to decide what dates are actually going to appear in you= r data > > On Tue, Nov 10, 2009 at 10:59 AM, Richard grossman = wrote: >> ok but If it's not defined ? for example 1 field is a date there is no e= nd >> for date ? >> >> On Tue, Nov 10, 2009 at 6:57 PM, Jonathan Ellis wrot= e: >>> >>> no. >>> >>> for randompartitioner, you use integers from 0 to 2**127, but for OPP >>> you use strings from your key universe. >>> >>> On Tue, Nov 10, 2009 at 10:37 AM, Richard grossman >>> wrote: >>> > If I understand good if I transform my String key :: >>> > to >>> > some long value and If I've 3 server then I put on the first server >>> > initialToken : 0 >>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 second : Long.max() /2 >>> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 third : Long.max() >>> > >>> > Is it correct ?? or there is something better ? >>> > >>> > thanks >>> > >>> > On Tue, Nov 10, 2009 at 6:01 PM, Jonathan Ellis >>> > wrote: >>> >> >>> >> for OPP, tokens are equivalent to keys so pick keys evenly spaced ap= art >>> >> >>> >> On Tue, Nov 10, 2009 at 9:55 AM, Richard grossman >>> >> wrote: >>> >> > hi >>> >> > >>> >> > I've understand this but I don't know what to write into initialto= ken >>> >> > is >>> >> > it >>> >> > "1" or "a" or something else ? >>> >> > as I've said in a previous post My keys are build like >>> >> > :: >>> >> > Is there any link ? >>> >> > >>> >> > Thanks, >>> >> > >>> >> > On Tue, Nov 10, 2009 at 5:48 PM, Jonathan Ellis >>> >> > wrote: >>> >> >> >>> >> >> if you're not specifying initialtoken, every time you wipe your >>> >> >> installation it will generate new tokens. =A0for a small number o= f >>> >> >> machines you'll definitely see some random tokens better balanced >>> >> >> than >>> >> >> others. >>> >> >> >>> >> >> On Tue, Nov 10, 2009 at 9:38 AM, Richard grossman >>> >> >> >>> >> >> wrote: >>> >> >> > Hi >>> >> >> > >>> >> >> > I've build the 0.4.2 from the tags in SVN. >>> >> >> > I've made exactly the same cluster with same configuration as >>> >> >> > 0.4.1 >>> >> >> > I've delete all the data in all server >>> >> >> > >>> >> >> > Now I send the data to first server and the data is not more >>> >> >> > distributed >>> >> >> > across the other server as previously. >>> >> >> > I've configured replica to 1 >>> >> >> > >>> >> >> > here is my storage-conf.xml >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > =A0 BeeCluster >>> >> >> > >>> >> >> > >>> >> >> > =A0 >>> >> >> > =A0=A0=A0 >>> >> >> > >>> >> >> > =A0=A0=A0=A0=A0 >> >> >> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Name= =3D"channelShowLink" >>> >> >> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Flush= PeriodInMinutes=3D"15"/> >>> >> >> > >>> >> >> > =A0=A0=A0=A0=A0 >> >> >> > =A0=A0=A0=A0=A0 =A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0Name=3D= "channelShow" >>> >> >> > =A0=A0=A0=A0=A0 =A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0FlushPe= riodInMinutes=3D"15"/> >>> >> >> > >>> >> >> > =A0=A0=A0=A0=A0 >> >> >> > =A0=A0=A0=A0=A0 =A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 Name= =3D"userAction" >>> >> >> > =A0=A0=A0=A0=A0 =A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 FlushP= eriodInMinutes=3D"15"/> >>> >> >> > >>> >> >> > =A0=A0=A0=A0=A0 >> >> >> > =A0=A0=A0=A0=A0 =A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 Name= =3D"headends" >>> >> >> > =A0=A0=A0=A0=A0 =A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 FlushP= eriodInMinutes=3D"15"/> >>> >> >> > >>> >> >> > =A0=A0=A0=A0=A0 >> >> >> > =A0=A0=A0=A0=A0 =A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 Name= =3D"similarity" >>> >> >> > =A0=A0=A0=A0=A0 =A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 FlushP= eriodInMinutes=3D"500"/> >>> >> >> > >>> >> >> > =A0 >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > org.apache.cassandra.dht.OrderPreservingPartitione= r >>> >> >> > >>> >> >> > =A0 >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > org.apache.cassandra.locator.EndPointSnitch >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > org.apache.cassandra.locator.RackUnaw= areStrategy >>> >> >> > >>> >> >> > =A0 1 >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > /home/beecloud/cassandrapart/commitlog >>> >> >> > =A0 >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > /home/beecloud/cassandrapart/data >>> >> >> > =A0 >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > /home/beecloud/cassandrapart/callouts >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > /home/beecloud/cassandrapart/bootstrap<= /BootstrapFileDirectory> >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > /home/beecloud/cassandrapart/staging >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > =A0 >>> >> >> > =A0=A0=A0=A0=A0 192.168.249.200 >>> >> >> > =A0=A0=A0=A0=A0 192.168.249.222 >>> >> >> > =A0=A0=A0=A0=A0 192.168.249.95 >>> >> >> > =A0 >>> >> >> > >>> >> >> > >>> >> >> > =A0 >>> >> >> > >>> >> >> > =A0 >>> >> >> > =A0 50000 >>> >> >> > =A0 >>> >> >> > >>> >> >> > >>> >> >> > 128 >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > =A0 192.168.249.200 >>> >> >> > =A0 >>> >> >> > =A0 7000 >>> >> >> > =A0 >>> >> >> > =A0 7001 >>> >> >> > >>> >> >> > >>> >> >> > =A0 0.0.0.0 >>> >> >> > =A0 >>> >> >> > =A0 9160 >>> >> >> > =A0 >>> >> >> > =A0 false >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > =A0 64 >>> >> >> > >>> >> >> > >>> >> >> > =A0 32 >>> >> >> > =A0 8 >>> >> >> > >>> >> >> > >>> >> >> > =A0 64 >>> >> >> > >>> >> >> > >>> >> >> > =A0 64 >>> >> >> > >>> >> >> > >>> >> >> > 0.1 >>> >> >> > >>> >> >> > >>> >> >> > =A0 8 >>> >> >> > =A0 32 >>> >> >> > >>> >> >> > >>> >> >> > =A0 periodic >>> >> >> > >>> >> >> > =A0 1000 >>> >> >> > >>> >> >> > =A0 >>> >> >> > >>> >> >> > >>> >> >> > =A0 864000 >>> >> >> > >>> >> >> > >>> >> >> > =A0 1 >>> >> >> > =A0 1 >>> >> >> > >>> >> >> > >>> >> >> > =A0 256 >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > Is there anyone with the same problem ?? >>> >> >> > >>> >> >> > Thanks >>> >> >> > >>> >> > >>> >> > >>> > >>> > >> >> >