Permalink
Browse files

Format 80 chars, update readme and remote server template example

  • Loading branch information...
mudphone committed Dec 14, 2009
1 parent 158d00a commit e2bc2dd597a7763bda6baae81a37abe614df745d
Showing with 28 additions and 5 deletions.
  1. +7 −0 README
  2. +9 −0 config/connections.template.clj
  3. +12 −5 src/mudphone/hbase_runner/hbase_repl.clj
View
7 README
@@ -5,6 +5,13 @@ Do not feed the bears.
Author: Kyle Oba ;; mudphone ;; koba <zat-yo> mudphone.com
---------------------- -- -- -- - - ---- -- - -- -- --- -- - -- --- - - -- -- - - - -
+OOPS:
+"truncate-table" is currently broken when running it from a remote server.
+I should be creating the table descriptor using the existing hbase-admin object.
+In the meantime, if you put a valid hbase-site.xml in your classpath, it will
+work.
+
+
QUICK START:
- - - - - -
1) clone the repo
@@ -11,4 +11,13 @@
:hbase.master "localhost:60000"
:hbase.zookeeper.quorum "localhost"
}
+ :sample-distributed
+ {
+ :hbase.client.retries.number 5
+ :ipc.client.connect.max.retries 3
+ :hbase.master "remote-server:60000"
+ :hbase.zookeeper.quorum "remote-server"
+ :hbase.cluster.distributed true
+ :hbase.rootdir "hdfs://remote-server:50001/hbase"
+ }
}
@@ -42,11 +42,18 @@
(let [merged-config (merge (:default user-configs) (system user-configs))
hbase-config (HBaseConfiguration.)]
(doto hbase-config
- (.setInt "hbase.client.retries.number" (:hbase.client.retries.number merged-config))
- (.setInt "ipc.client.connect.max.retires" (:ipc.client.connect.max.retries merged-config))
- (.set "hbase.master" (:hbase.master merged-config))
- (.set "hbase.zookeeper.quorum" (:hbase.zookeeper.quorum merged-config))
- (.setBoolean "hbase.cluster.distributed" (:hbase.cluster.distributed merged-config))
+ (.setInt "hbase.client.retries.number"
+ (:hbase.client.retries.number merged-config))
+ (.setInt "ipc.client.connect.max.retires"
+ (:ipc.client.connect.max.retries merged-config))
+ (.set "hbase.master"
+ (:hbase.master merged-config))
+ (.set "hbase.zookeeper.quorum"
+ (:hbase.zookeeper.quorum merged-config))
+ (.setBoolean "hbase.cluster.distributed"
+ (:hbase.cluster.distributed merged-config))
+ (.set "hbase.rootdir"
+ (:hbase.rootdir merged-config))
))))))
(declare *HBaseConfiguration*)

0 comments on commit e2bc2dd

Please sign in to comment.