Provides a Scala wrapper for Hector https://github.com/hector-client/hector, a Java client library for Cassandra http://cassandra.apache.org/ Getting Started
- Assumptions
- Cassandra 1.0.8 is running locally - http://wiki.apache.org/cassandra/GettingStarted
-
Get Skeletor
git clone git@github.com:joestein/skeletor.git cd skeletor
-
Update the schema for Skeletor's Specification Tests
schema/bootstrap.txt contains the schema for Skeletor's Specification Tests
~/apache-cassandra-1.0.8/bin/cassandra-cli -host localhost -port 9160 -f schema/bootstrap.txt
-
Run Skeletor's test
./sbt test
The tests are also examples of how to use Skeletor. Take a look at them.
You can package Skeletor as a jar within your project
./sbt package
And in your
build.sbt
file add to
libraryDependencies ++= Seq
so you get the Hector library and related dependencies
"me.prettyprint" % "hector-core" % "1.0-3",
"org.apache.cassandra" % "cassandra-all" % "1.0.8",
"org.slf4j" % "slf4j-log4j12" % "1.6.4"
Thanx =) Joe Stein