incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mick Semb Wever <>
Subject Re: KeyRange in the CoumnFamilyInputFormat
Date Mon, 05 Sep 2011 17:02:26 GMT
On Mon, 2011-09-05 at 18:18 +0300, Vitaly Vengrov wrote:
> See these rows in the ColumnFamilyInputFormat.getSplits method : 
> assert jobKeyRange.start_key == null : "only start_token supported";                

> assert jobKeyRange.end_key == null : "only end_token supported"; 
> So, the question is why start_key and end_key aren't supported ? 
> What I actually need is the ability to specify exact rowKey (UUID).
> Not a key range.  I believe I can do this with same start and end keys
> but not with tokes. 

The background to this is CASSANDRA-1125 and specifically this comment

Tokens are used here to be consistent with the thrift API.

What you want is:


In fact this would not be possible if you were using range.start_key and
range.end_key since that would exclude the one row you are trying to

Out of curiosity why are you using hadoop to process one row?
Won't this be solely processed by one split and therefore only one task?


"The only thing I know, is that I know nothing." Socrates 

| | |
|   | Java XSS Filter |

View raw message