Skip to content

Instantly share code, notes, and snippets.

class SuperSliceSelector(
rows: List[Array[Byte]],
slice: Slice) extends SuperReadable with Deletable {
def toRead(cf: String) =
new Read(rows, cf, slice = Some(slice))
def toDelete(cf: String, clock: Clock) =
new Delete(rows, cf, slice = Some(slice), clock = clock)
Code,
object EnterTheDragon {
def main(args: Array[String]) {
val conf = Map(
"seedHost" -> "127.0.0.1",
"seedPort" -> 9160,
"maxIdle" -> 10,
java.lang.ExceptionInInitializerError
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:34)
at scala.collection.mutable.ArrayOps.foreach(ArrayOps.scala:34)
at scala.actors.Actor$class.receive(Actor.scala:524)
at scala.actors.Reactor$class.seq(Reactor.scala:280)
at scala.actors.Reactor$$anon$3.andThen(Reactor.scala:258)
at scala.actors.Combinators$class.loop(Combinators.scala:26)
at scala.actors.Reactor$$anonfun$dostart$1.apply(Reactor.scala:222)
at scala.actors.Reactor$$anonfun$dostart$1.apply(Reactor.scala:222)
at scala.actors.ReactorTask.run(ReactorTask.scala:36)
val conf = Map("connectionPool" -> "scromium.connection.CommonsConnectionPool",
"host" -> "127.0.0.1",
"port" -> 9160,
"maxIdle" -> 10,
"initCapacity" -> 10,
"clientProvider" -> "scromium.thrift.ThriftClientProvider")
val cassandra = Cassandra.start(conf)
java.lang.reflect.InvocationTargetException
val conf = Map("connectionPool" -> "scromium.thrift.ThriftClientPool",
"host" -> "127.0.0.1",
"port" -> 9160,
"maxIdle" -> 10,
"initCapacity" -> 10,
"clientProvider" -> "scromium.thrift.ThriftClientProvider")
java.lang.ClassNotFoundException: scromium.thrift.ThriftClientPool
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
5 [run-main] INFO scromium.Cassandra$ - config file cassandra.json does not exist
java.lang.ClassNotFoundException: CommonsConnectionPool
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at scromium.reflect.Reflect$.string2Class(Reflect.scala:13)
/**
* Copyright 2009 T Jake Luciani
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at