Thomas, That was indeed the source of the problem. I naively assumed that the token range would help me avoid retrieving duplicate rows.
If you iterate over the keys, how do you avoid retrieving duplicate keys? I tried this morning and I seem to get odd results. Maybe this is just a consequence of the random partitioner. I really don't care about the order of the iteration, but only each key once and that I see all keys is important. -Adam -----Original Message----- From: th.hel...@gmail.com on behalf of Thomas Heller Sent: Fri 8/6/2010 7:27 AM To: user@cassandra.apache.org Subject: Re: error using get_range_slice with random partitioner Wild guess here, but are you using start_token/end_token here when you should be using start_key? Looks to me like you are trying end_token = ''. HTH, /thomas On Thursday, August 5, 2010, Adam Crain <adam.cr...@greenenergycorp.com> wrote: > Hi, > > I'm on 0.6.4. Previous tickets in the JIRA in searching the web indicated > that iterating over the keys in keyspace is possible, even with the random > partitioner. This is mostly desirable in my case for testing purposes only. > > I get the following error: > > [junit] Internal error processing get_range_slices > [junit] org.apache.thrift.TApplicationException: Internal error processing > get_range_slices > > and the following server traceback: > > java.lang.NumberFormatException: Zero length BigInteger > at java.math.BigInteger.<init>(BigInteger.java:295) > at java.math.BigInteger.<init>(BigInteger.java:467) > at > org.apache.cassandra.dht.RandomPartitioner$1.fromString(RandomPartitioner.java:100) > at > org.apache.cassandra.thrift.CassandraServer.getRangeSlicesInternal(CassandraServer.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 > > > > > >
<<winmail.dat>>