Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A very simple wrapper around cascading.hbase for use in Cascalog
Clojure
branch: develop

This branch is 3 commits ahead, 1 commit behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/clj/hbase/cascalog
.gitignore
README
project.clj

README

# 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.
Something went wrong with that request. Please try again.