incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: error using get_range_slice with random partitioner
Date Thu, 05 Aug 2010 18:03:54 GMT
That's puzzling, because we have a bunch of system tests that do range
scans with randompartitioner.  If you can open a ticket with the code
to reproduce, I'll have a look.  Thanks!

On Thu, Aug 5, 2010 at 1:24 PM, Adam Crain
<adam.crain@greenenergycorp.com> wrote:
> I can. I'm using the debian distro.  I assume that all that is required is wiping the
data/commitlog directories.
>
> If I do that, I still get the same result.
>
> Here's my CF:
>
> <ColumnFamily Name ="Meas" CompareWith="LongType" />
>
> I'm using this to time series measurement data where the keys are measurement names and
the columns are Long unix epoch timestamps in millisecs. My use case is then to do a range_slice
that asks for the first X number of rows, but only the most recent measurement by using a
descending order column predicate with a limit of 1.
>
> I have no trouble using this predicate to retrieve columns within a specified row, but
the get_range_slice fails.
>
> -Adam
>
> -----Original Message-----
> From: Jonathan Ellis [mailto:jbellis@gmail.com]
> Sent: Thursday, August 05, 2010 12:22 PM
> To: user@cassandra.apache.org
> Subject: Re: error using get_range_slice with random partitioner
>
> can you reproduce starting with a fresh install, no existing data?
>
> On Thu, Aug 5, 2010 at 12:09 PM, Adam Crain
> <adam.crain@greenenergycorp.com> 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
>> <adam.crain@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
>>>
>>>
>>
>>
>>
>> --
>> Jonathan Ellis
>> Project Chair, Apache Cassandra
>> co-founder of Riptano, the source for professional Cassandra support
>> http://riptano.com
>>
>>
>>
>>
>
>
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of Riptano, the source for professional Cassandra support
> http://riptano.com
>
>
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Mime
View raw message