Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 20 lines (16 sloc) 0.785 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
(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")))
Something went wrong with that request. Please try again.