Clojure / HBase: How to Import HBaseTestingUtility in v0.94.6.1

Posted by David Williams on Stack Overflow See other posts from Stack Overflow or by David Williams
Published on 2013-07-01T18:06:37Z Indexed on 2013/07/02 17:05 UTC
Read the original article Hit count: 327

Filed under:
|
|

In Clojure, if I want to start a test cluster using the hbase testing utility, I have to annotate my dependencies with:

[org.apache.hbase/hbase "0.92.2" :classifier "tests" :scope "test"]

First of all, I have no idea what this means. According to leiningens sample project.clj

;; Dependencies are listed as [group-id/name version]; in addition
;; to keywords supported by Pomegranate, you can use :native-prefix
;; to specify a prefix. This prefix is used to extract natives in
;; jars that don't adhere to the default "<os>/<arch>/" layout that
;; Leiningen expects.

Question 1: What does that mean?

Question 2: If I upgrade the version:

[org.apache.hbase/hbase "0.94.6.1" :classifier "tests" :scope "test"]

Then I receive a ClassNotFoundException

Exception in thread "main" java.lang.ClassNotFoundException: org.apache.hadoop.hbase.HBaseConfiguration

Whats going on here and how do I fix it?

© Stack Overflow or respective owner

Related posts about unit-testing

Related posts about clojure