Everything is the same as in test,
private val log = Logger.get(this.getClass)
def main(args: Array[String]) {
// create a cluster with a single seed from which to map keyspaces
val cluster = new Cluster("<IP>") with ClusterBase
// create a keyspace object (does nothing on the server)
val keyspace = cluster.keyspace("test3").connect()
// create a column family object (does nothing on the server)
val cass = keyspace.columnFamily("Standard1", Utf8Codec, Utf8Codec, Utf8Codec)
println("removing a row")
cass.removeRow("yay for me").apply()
println("Batching up some stuff")
cass.batch()
.removeColumn("yay for you", "name")
.removeColumns("yay for us", Set("name", "motto"))
.insert("yay for nobody", Column("name", "Burt"))
.insert("yay for nobody", Column("motto", "'S funny."))
.execute().apply()
println("inserting some columns")
cass.insert("yay for me", Column("name", "Coda")).apply()
cass.insert("yay for me", Column("motto", "Moar lean.")).apply()
.................
Maybe it just because of the server idle time...
Cheers.
On Sunday, 8 July 2012 23:54:00 UTC+6, Ryan King wrote:
So you get these errors when running the cassie tests?
Can you show us the code where you create your cassie clients?
-ryan