Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (16 sloc) 0.785 kB
(ns clojurewerkz.titanium.conf
(:import (org.apache.commons.io FileUtils)))
(def cs-dir (str (clojure.java.io/as-url
(clojure.java.io/as-file
(str (System/getProperty "user.dir")
"/resources/test-cassandra.yaml")))))
(def conf {;; Embedded cassandra settings
"storage.backend" "embeddedcassandra"
"storage.cassandra-config-dir" cs-dir
;; Embedded elasticsearch settings
"storage.index.search.backend" "elasticsearch"
"storage.index.search.directory" "/tmp/cassandra/elasticsearch"
"storage.index.search.client-only" false
"storage.index.search.local-mode" true})
(defn clear-db []
(FileUtils/deleteDirectory (java.io.File. "/tmp/titanium-test")))
Jump to Line
Something went wrong with that request. Please try again.