Re: Error in TBaseHelper compareTo(byte [] a , byte [] b)

2010-05-04 Thread Erik Holstad
Thanks Jonathan! Yeah, I will just wait until we are ready for upgrade and hold of on that project for now. Erik

Error in TBaseHelper compareTo(byte [] a , byte [] b)

2010-05-03 Thread Erik Holstad
Hey! We are currently using Cassandra 0.5.1 and I'm getting a StackOverflowError when comparing two ColumnOrSuperColumn objects. It turns out the the comparTo function for byte [] has an infinite loop in libthrift-r820831.jar. We are planning to upgrade to 0.6.1 but not ready to do it today', so j

Re: The Difference Between Cassandra and HBase

2010-04-24 Thread Erik Holstad
I would say that HBase is a little bit more focused on reads and Cassandra on writes. HBase has better scans and Cassandra better multi datacenter functionality. Erik

Re: Best way to store millisecond-accurate data

2010-04-23 Thread Erik Holstad
On Fri, Apr 23, 2010 at 5:54 PM, Miguel Verde wrote: > TimeUUID's time component is measured in 100-nanosecond intervals. The > library you use might calculate it with poorer accuracy or precision, but > from a storage/comparison standpoint in Cassandra millisecond data is easily > captured by it.

Re: PropertyFileEndPointSnitch

2010-04-19 Thread Erik Holstad
Thanks Jonathan!

PropertyFileEndPointSnitch

2010-04-19 Thread Erik Holstad
When building the PropertyFileEndPointSnitch into the jar cassandra-propsnitch.jar the files in the jar end up on src/java/org/apache/cassandra/locator/PropertyFileEndPointSnitch.class instead of org/apache/cassandra/locator/PropertyFileEndPointSnitch.class. Am I doing something wrong , is this int

Re: Replicating data over the wan?

2010-03-30 Thread Erik Holstad
Thanks David and Jonathan for the info. Those two links were pretty much the only thing that I did find about this issue, but is wasn't sure that only because it works for different zones it would also work for different regions. -- Regards Erik

Replicating data over the wan?

2010-03-30 Thread Erik Holstad
Is anyone using datacenter aware replication where the replication takes place over the wan and not over super fast optical cable between the centers? Tried to look at all posts related to the topic but haven't really found too much, only some things about not doing that if using ZooKeeper and som

Re: Auto Increament

2010-03-24 Thread Erik Holstad
On Wed, Mar 24, 2010 at 11:00 AM, Jesus Ibanez wrote: > You can generate UUIDs based on time with http://jug.safehaus.org/ if you > use Java. And its easy to use, just have to insert one line: > UUID uuid = UUIDGenerator.getInstance().generateTimeBasedUUID(); > > Maybe a solution to your cuestion:

Re: Timestamp for versioning?

2010-03-23 Thread Erik Holstad
If I'm not totally mistaken the timestamp is used for conflict resolution on the server. Have a look at: http://wiki.apache.org/cassandra/DataModel for more info 2010/3/23 Waaij, B.D. (Bram) van der > Can you explain then to me what the purpose is of the timestamp? > > > > -Original Messa

Re: Model to store biggest score

2010-03-18 Thread Erik Holstad
Another approach you can take is to add the userid to the score like, => (column=140_uid2, value=[], timestamp=1268841641979) and f you need the score time sorted you can add => (column=140_268841641979_uid2, value=[], timestamp=1268841641979) But I do think that in any case you need to remove the