Return-Path: Delivered-To: apmail-incubator-cassandra-dev-archive@minotaur.apache.org Received: (qmail 23821 invoked from network); 30 Oct 2009 16:46:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Oct 2009 16:46:27 -0000 Received: (qmail 2179 invoked by uid 500); 30 Oct 2009 16:46:27 -0000 Delivered-To: apmail-incubator-cassandra-dev-archive@incubator.apache.org Received: (qmail 2163 invoked by uid 500); 30 Oct 2009 16:46:27 -0000 Mailing-List: contact cassandra-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-dev@incubator.apache.org Received: (qmail 2153 invoked by uid 99); 30 Oct 2009 16:46:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 16:46:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 209.85.219.205 as permitted sender) Received: from [209.85.219.205] (HELO mail-ew0-f205.google.com) (209.85.219.205) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 16:46:16 +0000 Received: by ewy1 with SMTP id 1so2953986ewy.27 for ; Fri, 30 Oct 2009 09:45:56 -0700 (PDT) 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=GRH/DBsJqEF9nETqGieqV6hj0dNI4eBGd94PVREnThI=; b=IMoJXW3i0Cxc870NnsL32v+DW7fj76FX910Z8U6scdfKP6mgVIzNknvLHvyxnM8fjA k0Z92pEdUwy4zETJXtpIVHBCR5fE1U8ajmtiJlD6HXVxAZd8fITnc3/smmkbMce/8mX1 XLXSNUxWG+A+My97no73DwIc6N2ubSgZ7DjFY= 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=gSqVpx4IrRlE0Z2HqI4zfWuOCpB0+cLqBx/jv9pJhr1WtoZF9d29k6ziHAHebDxWzT W1StuH5zvCJHgGkl/k9e2gtOcr9hzlIA9Cwj/KbEd8yDlnQYWtn5qo5qk82/xhqHEX9H /oJM6NVi1qyFNAYKGvRFPKlNOqkN1jgdOizI0= MIME-Version: 1.0 Received: by 10.216.87.3 with SMTP id x3mr632695wee.132.1256921155094; Fri, 30 Oct 2009 09:45:55 -0700 (PDT) In-Reply-To: <2B50A74A83055C4CA676E4F7D4149650FFCBC1@YMAIL03.yoox.net> References: <2B50A74A83055C4CA676E4F7D4149650FFCAF7@YMAIL03.yoox.net> <2B50A74A83055C4CA676E4F7D4149650FFCBC1@YMAIL03.yoox.net> From: Jonathan Ellis Date: Fri, 30 Oct 2009 10:45:35 -0600 Message-ID: Subject: Re: bootstrap & rack aware on Cassandra4.1 To: cassandra-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Oh, I misunderstood -- you're not trying to bootstrap, but getting this error anyway. I'd probably call this "wontfix" for 0.4 since the fix is basically all the work on ReplicationStrategy that's been done for 0.5, which shouldn't be backported to a stable release imo. The silver lining is that 0.5 will be out soon. If you want a workaround in the meantime, make getWriteStorageEndPoints just return getReadStorageEndPoints(token) which will not treat bootstrap nodes correctly but it should work fine otherwise. :) -Jonathan On Fri, Oct 30, 2009 at 10:39 AM, Paderno Giampaolo wrote: > Thanks for the reply, in the meantime it's possible to manage replica bet= ween two datacenter with 0.4.1 even without bootstrap? In other words is it= possible to write on a rack-aware node? If so can you post me a sample con= figuration? > > Thanks > > -----Original Message----- > From: Jonathan Ellis [mailto:jbellis@gmail.com] > Sent: venerd=EC 30 ottobre 2009 17.28 > To: cassandra-dev@incubator.apache.org > Subject: Re: bootstrap & rack aware on Cassandra4.1 > > Right, rack-aware (really, endpointsnitch-aware) bootstrap isn't supporte= d > until 0.5, which trunk will become probably some time in November. > > On Fri, Oct 30, 2009 at 9:26 AM, Paderno Giampaolo < > Giampaolo.Paderno@yoox.com> wrote: > >> =A0Hi all, we experienced that writing on a rack aware node we get the >> following error: >> >> >> >> ERROR [pool-1-thread-1] 2009-10-30 15:48:55,467 StorageProxy.java (line >> 179) error writing key 13345671 >> >> java.lang.UnsupportedOperationException: Rack-aware bootstrapping not >> supported >> >> =A0 =A0 =A0 =A0 =A0 =A0 at >> org.apache.cassandra.locator.RackAwareStrategy.getWriteStorageEndPoints(= RackAwareStrategy.java:132) >> >> =A0 =A0 =A0 =A0 =A0 =A0 at >> org.apache.cassandra.locator.AbstractReplicationStrategy.getHintedStorag= eEndPoints(AbstractReplicationStrategy.java:69) >> >> =A0 =A0 =A0 =A0 =A0 =A0 at >> org.apache.cassandra.service.StorageService.getHintedStorageEndpointMap(= StorageService.java:982) >> >> =A0 =A0 =A0 =A0 =A0 =A0 at >> org.apache.cassandra.service.StorageProxy.insertBlocking(StorageProxy.ja= va:151) >> >> =A0 =A0 =A0 =A0 =A0 =A0 at >> org.apache.cassandra.service.CassandraServer.doInsert(CassandraServer.ja= va:468) >> >> =A0 =A0 =A0 =A0 =A0 =A0 at >> org.apache.cassandra.service.CassandraServer.insert(CassandraServer.java= :421) >> >> =A0 =A0 =A0 =A0 =A0 =A0 at >> org.apache.cassandra.service.Cassandra$Processor$insert.process(Cassandr= a.java:824) >> >> =A0 =A0 =A0 =A0 =A0 =A0 at >> org.apache.cassandra.service.Cassandra$Processor.process(Cassandra.java:= 627) >> >> =A0 =A0 =A0 =A0 =A0 =A0 at >> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPool= Server.java:253) >> >> =A0 =A0 =A0 =A0 =A0 =A0 at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) >> >> =A0 =A0 =A0 =A0 =A0 =A0 at java.util.concurrent.ThreadPoolExecutor$Worke= r.run(Unknown >> Source) >> >> =A0 =A0 =A0 =A0 =A0 =A0 at java.lang.Thread.run(Unknown Source) >> >> >> >> We haven't understand how bootstrap works in Cassandra and how to enable= or >> disable it. >> >> With trunk version everything works properly. >> >> >> >> Thanks >> >> >> >> Giampaolo Paderno >> >> Software Factory Developer >> >> YOOX Group >> >> Via Nannetti 1, 40069 Zola Predosa, Bologna, Italia >> >> T =A0+39 051 6184211 >> >> F =A0+39 051 6184215 >> >> giampaolo.paderno@yoox.com >> >> >> >> [image: http://cdn2.yoox.biz/signature/yooxygen.jpg] >> >> Please consider the environment before printing this e-mail. >> >> >> >> *NOTICE: The information contained in this message is confidential, >> intended only for the use of the individual or entity named above.* >> >> *If you are not the intended recipient, please notify us immediately by >> telephone or e-mail and destroy this communication. Thank you**.* >> >