Re: Cassandra Demo/Tutorial Applications

2010-03-14 Thread Vick Khera
On Sat, Mar 13, 2010 at 1:46 AM, Jonathan Ellis wrote: > I'd probably go with "virtualbox images" as being simpler for people > who don't have an AWS key already.  (VB can read vmware player images, > i think.  But there is no free vmware for OS X, so you'd want to check > that before going w/ vmw

Re: serialized vector clock as global counter?

2010-03-14 Thread David Strauss
On 2010-03-15 00:57, Toby DiPasquale wrote: > I'm actually just trying to build a little URL shortener to use as a > demo for an upcoming presentation I'm doing on Cassandra. The counter > is to be used as the short key for a new URL submitted to the system: > increment the counter and then use the

Re: serialized vector clock as global counter?

2010-03-14 Thread Toby DiPasquale
On Sun, Mar 14, 2010 at 7:47 PM, David Strauss wrote: > On 2010-03-14 16:46, Toby DiPasquale wrote: >> My question would be: assuming we're using both quorum reads and >> writes, is it possible that clients A and B could race in the >> following manner: >> >> * A updates its counter >> * B updates

Re: serialized vector clock as global counter?

2010-03-14 Thread David Strauss
On 2010-03-14 16:46, Toby DiPasquale wrote: > My question would be: assuming we're using both quorum reads and > writes, is it possible that clients A and B could race in the > following manner: > > * A updates its counter > * B updates its counter > * A reads the keys to get sum X > * B reads the

Re: serialized vector clock as global counter?

2010-03-14 Thread Benjamin Black
Whether or not it can be made to work, it seems a poor fit for Cassandra. Why not use Zookeeper? On Sun, Mar 14, 2010 at 9:46 AM, Toby DiPasquale wrote: > Hi all, > > I'm trying to write an application using Cassandra which requires the > use of a global, monotonically-increasing counter. I've s

Re: serialized vector clock as global counter?

2010-03-14 Thread Toby DiPasquale
On Sun, Mar 14, 2010 at 6:37 PM, Dwight Merriman wrote: > yes - take a look at this app engine blog post: > > http://googleappengine.blogspot.com/2009/09/migration-to-better-datastore.html > > if i read this correctly, app engine data store is pretty much in the > "strongly consistent" camp while

Re: serialized vector clock as global counter?

2010-03-14 Thread Dwight Merriman
yes - take a look at this app engine blog post: http://googleappengine.blogspot.com/2009/09/migration-to-better-datastore.html if i read this correctly, app engine data store is pretty much in the "strongly consistent" camp while cassandra is more eventually consistent -- so really quite differen

Re: serialized vector clock as global counter?

2010-03-14 Thread Fred Wulff
Hey Toby, I'm not an expert on Cassandra's infrastructure, but I believe the thing the AppEngine datastore has that Cassandra doesn't is a transaction between the read and write of a sharded counter. That means that while the read of the various counters may be inconsistent, the actual update of t

Re: Embedded Cassandra for Integration testing

2010-03-14 Thread Ran Tavory
I have a writeup just for that from a while ago http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/ This addresses version 0.5.0, not 0.6 but I believe the diff isn't that big. And as mentioned, you may also browse hector to get the list of dependencies. Please also see http:

Re: Embedded Cassandra for Integration testing

2010-03-14 Thread Ryan Daum
Thanks Tom; I am working with 0.6 beta2 now, so not immediately applicable, but this is helpful. Maybe we ought to consider taking what you've done and putting it up in a generic way accessible on a public repo. R On Sun, Mar 14, 2010 at 2:16 PM, Tom Chen wrote: > Hi Ryan, > > I have been runn

Re: Grails Cassandra plugin

2010-03-14 Thread Ned Wolpert
Sure, I'll create a bug for it on github. But basically if you get a client from a pool of servers with one server (["localhost:9160"]) and make a request, then restart cassandra, then make another, it fails for me. Let me do a bit more testing then I'll file a bug with details. On Sat, Mar 13, 20

Re: Embedded Cassandra for Integration testing

2010-03-14 Thread Jonas Bonér
Here is an util class from the Akka test suite, embedding Cassandra: import org.apache.cassandra.service.CassandraDaemon object EmbeddedCassandraService { System.setProperty("storage-config", "src/test/resources"); val cassandra = new Runnable { val cassandraDaemon = new CassandraDaemon

Re: Embedded Cassandra for Integration testing

2010-03-14 Thread Tom Chen
Hi Ryan, I have been running some tests locally, and I've been using. http://github.com/rantav/hector If you look at the pom.xml you can get a pretty good idea of the dependencies required to run a cassandra client for version 5. I usually combine it with the maven one jar to create one jar file

Embedded Cassandra for Integration testing

2010-03-14 Thread Ryan Daum
I know people have been successful embedding Cassandra, and I've seen code for how to bootstrap it, but I'm wondering what people have done to manage its 3rd party dependencies at build time? Especially for Maven projects, Cassandra is highly uncooperative as a dependency, as many of its 3rd party

serialized vector clock as global counter?

2010-03-14 Thread Toby DiPasquale
Hi all, I'm trying to write an application using Cassandra which requires the use of a global, monotonically-increasing counter. I've seen the previous threads on this subject which basically say that this can't be done in Cassandra as is, but I think I've come up with a method that might work. I

Re: question about deleting from cassandra

2010-03-14 Thread Ryan Daum
+1, I'd like to try this patch but am running into error: patch failed: src/java/org/apache/cassandra/utils/FBUtilities.java:342 Alternatively, someone could create a github fork which incorporates this patch? Ryan On Sat, Mar 13, 2010 at 3:36 PM, Jonathan Ellis wrote: > since they are separat