Skip to content

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

26 lines (15 sloc) 0.797 kb
# hbase-cascalog
A very simple wrapper around cascading.hbase for use in cascalog.
## Usage
Using HBase as a sink is straightforward. Reading out of HBase as a source requires deserializing the bytes on the way back out. Helper functions are included under hbase.cascalog.ops
Like so at a repl (assuming hbase is running on localhost):
(use '[cascalog api playground])
(use '[hbase.cascalog core ops])
;; write to hbase as sink
(?<- (hbase-tap "age-table" "?person" "cf" "?age") [?person ?age] (age ?person ?age))
;; read from hbase as source
(let [age-table (hbase-tap "age-table" "?person" "cf" "?age")]
(?<- (stdout) [?p ?a] (age-table ?p ?age) (as-string ?age :> ?a)))
## License
Copyright (C) 2011 Soren Macbeth
Distributed under the Eclipse Public License, the same as Clojure.
Jump to Line
Something went wrong with that request. Please try again.