Re: Trying to insert a TimeUUID via Java/Thrift -- "UUIDs must be exactly 16 bytes"

2010-08-27 Thread Jonathan Ellis
I recommend starting with http://www.rackspacecloud.com/blog/2010/05/12/cassandra-by-example/, then reading the other Recommended articles at http://wiki.apache.org/cassandra/ArticlesAndPresentations On Fri, Aug 27, 2010 at 3:07 AM, Sean Bowman wrote: > Do I not want to get the key to be the UUID

Re: Trying to insert a TimeUUID via Java/Thrift -- "UUIDs must be exactly 16 bytes"

2010-08-27 Thread Sean Bowman
Do I not want to get the key to be the UUID, so I can slice based on timestamp? If so, the only thing the insert statement takes is a String for a key. Why would I place the UUID into a column value? Doesn't it belong as the key if I want to be able to slice and sort on it? I guess I'm just

Re: Trying to insert a TimeUUID via Java/Thrift -- "UUIDs must be exactly 16 bytes"

2010-08-27 Thread Benjamin Black
You are using the wrong part of the example. That code sample just produces the string representation. Scroll down in that FAQ entry to the sample labeled: "When you want to actually place the UUID into the Column then you'll want to convert it like this. This method is often used in conjuntion

Trying to insert a TimeUUID via Java/Thrift -- "UUIDs must be exactly 16 bytes"

2010-08-27 Thread Sean Bowman
I'm at my wits end with Cassandra; is 0.6.4 just broken? I've created a very simple keyspace: Using the Thrift sample code for 0.6 on the wiki, and the FAQ about TimeUUID's and Java, I tried to generate a GUID using this method: String key = new com.eaio.uuid.UUID().toString() Sin