Name: quasar-spark-connector
Owner: Software Defined Buildings
Description: Quasar - Spark Connector
Created: 2015-05-23 20:49:02.0
Updated: 2015-05-25 00:52:03.0
Pushed: 2015-12-04 02:32:48.0
Homepage: null
Size: 151
Language: Scala
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
BTrDB - Spark Connector
† You should setup rados-java support across the entire cluster prior to running the connector.
Ubuntu
sudo apt-get install librados-dev libjna-java
Centos
sudo yum install librados2-devel jna
git clone --recursive https://github.com/ceph/rados-java.git
cd rados-java
ant
sudo cp target/rados-0.1.3.jar /usr/share/java/rados-1.0-SNAPSHOT.jar
sudo ln -s /usr/share/java/jna-3.2.7.jar /usr/lib/jvm/default-java/jre/lib/ext/jna-3.2.7.jar
sudo ln -s /usr/share/java/rados-1.0-SNAPSHOT.jar /usr/lib/jvm/default-java/jre/lib/ext/rados-1.0-SNAPSHOT.jar
# documentation
ant docs
sbt assembly
§ Current implementation only works when all Spark executors are Ceph monitor at the same time.
Start spark shell with the adapter
$ spark-shell --jars <path to the adapter jar>/quasar-spark-connector-assembly-1.0.jar
sc.quasarStatQuery(“uuid”, start-time, end-time, “unit-time”, point-width)
scala> import edu.berkeley.eecs.btrdb.sparkconn._
scala> val qrdd = sc.quasarStatQuery("2e43475f-5359-5354-454d-5f5245414354", 1364823796L, 1398437046L, "ns", 16)
scala> qrdd.map(i => i.toString).collect.foreach(println)