Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 45442 invoked from network); 5 Aug 2010 16:17:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Aug 2010 16:17:02 -0000 Received: (qmail 18330 invoked by uid 500); 5 Aug 2010 16:17:01 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 18291 invoked by uid 500); 5 Aug 2010 16:17:00 -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 18283 invoked by uid 99); 5 Aug 2010 16:17:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 16:17:00 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 16:16:54 +0000 Received: by wwj40 with SMTP id 40so9312180wwj.25 for ; Thu, 05 Aug 2010 09:16:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=yNT7En4iIYdjYMvl/X4cJn4a9YqP2K7rDUQjSS/piSI=; b=cwI+WSPMF9cowzh0zQlBDDEj5ETe2Nj+vUTJotYAd5S6R736xdK2MopTKi5oY7RLf1 ssfEVqHahLnL+in+XzkLgw2cvubSvi7kyTGh+yGCoMgr291wxbisRLo02EiZp8fxxZXK xpweJul1DNXKREaout7h4oNVptL8aCYRucAog= 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=vo7j//eoaChMcyf7pxIAmofYV1rxT2c8pWHTB1cxeHK1C4fZtUNi2Z8vH8OvAEztKK jHddE+DVT+oy8H4VGcUGfcBoBQen40MvVjNosn0I+mkliRqbEWtCKIX3gc4QXyUw42yF cT7Q4G8u3RYmQyMC7dgHYEMkzxpldzrwGvMTQ= Received: by 10.216.164.71 with SMTP id b49mr3729315wel.1.1281024993701; Thu, 05 Aug 2010 09:16:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.63.196 with HTTP; Thu, 5 Aug 2010 09:16:12 -0700 (PDT) In-Reply-To: References: <9F71E9D0EB214A5894F2194E0E4F1185@PSIINC.local> From: Jonathan Ellis Date: Thu, 5 Aug 2010 12:16:12 -0400 Message-ID: Subject: Re: error using get_range_slice with random partitioner To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org can you reproduce starting with a fresh install, no existing data? On Thu, Aug 5, 2010 at 12:09 PM, Adam Crain wrote: > I've never changed the partitioner from the default random. Other ideas? > > I can insert and do column queries using a single key but not range on CF= . > > -Adam > > -----Original Message----- > From: Jonathan Ellis [mailto:jbellis@gmail.com] > Sent: Thursday, August 05, 2010 11:33 AM > To: user@cassandra.apache.org > Subject: Re: error using get_range_slice with random partitioner > > Yes, you should be able to use get_range_slices with RP. > > This stack trace looks like you changed your partitioner after the > node already had data in it. > > On Thu, Aug 5, 2010 at 10:06 AM, Adam Crain > wrote: >> Hi, >> >> I'm on 0.6.4. Previous tickets in the JIRA in searching the web indicate= d >> that iterating over the keys in keyspace is possible, even with the rand= om >> partitioner. This is mostly desirable in my case for testing purposes on= ly. >> >> I get the following error: >> >> [junit] Internal error processing get_range_slices >> [junit] org.apache.thrift.TApplicationException: Internal error processi= ng >> get_range_slices >> >> and the following server traceback: >> >> java.lang.NumberFormatException: Zero length BigInteger >> =A0=A0=A0=A0=A0=A0=A0 at java.math.BigInteger.(BigInteger.java:295= ) >> =A0=A0=A0=A0=A0=A0=A0 at java.math.BigInteger.(BigInteger.java:467= ) >> =A0=A0=A0=A0=A0=A0=A0 at >> org.apache.cassandra.dht.RandomPartitioner$1.fromString(RandomPartitione= r.java:100) >> =A0=A0=A0=A0=A0=A0=A0 at >> org.apache.cassandra.thrift.CassandraServer.getRangeSlicesInternal(Cassa= ndraServer.java:575) >> >> I am using the scala cascal client, but am sure that get_range_slice is >> being called with start and stop set to "". >> >> 1) Is batch iteration possible with random partioner? >> >> This isn't clear from the FAQ entry on the subject: >> >> http://wiki.apache.org/cassandra/FAQ#iter_world >> >> 2) The FAQ states that start argument should be "". What should the end >> argument be? >> >> thanks! >> Adam >> >> > > > > -- > Jonathan Ellis > Project Chair, Apache Cassandra > co-founder of Riptano, the source for professional Cassandra support > http://riptano.com > > > > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com