diff options
author | Chandan Rajah <chandan.rajah@gmail.com> | 2013-06-06 12:50:30 +0100 |
---|---|---|
committer | Chandan Rajah <chandan.rajah@gmail.com> | 2013-06-06 12:50:30 +0100 |
commit | 5a2965bfcb5d6944d661dff7b05e8b89dc629342 (patch) | |
tree | 952013bc6d5faa399903ea31dd21baf1b58e4ea3 /src/main/scala/parallelai/spyglass/hbase/example | |
parent | cb34790ac23210bbed815847b8732e0ad657ec6b (diff) | |
download | SpyGlass-5a2965bfcb5d6944d661dff7b05e8b89dc629342.tar.gz SpyGlass-5a2965bfcb5d6944d661dff7b05e8b89dc629342.zip |
Updated examples
Diffstat (limited to 'src/main/scala/parallelai/spyglass/hbase/example')
-rw-r--r-- | src/main/scala/parallelai/spyglass/hbase/example/HBaseExampleRunner.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/scala/parallelai/spyglass/hbase/example/HBaseExampleRunner.scala b/src/main/scala/parallelai/spyglass/hbase/example/HBaseExampleRunner.scala index d6b762e..890d2be 100644 --- a/src/main/scala/parallelai/spyglass/hbase/example/HBaseExampleRunner.scala +++ b/src/main/scala/parallelai/spyglass/hbase/example/HBaseExampleRunner.scala @@ -25,10 +25,14 @@ object HBaseExampleRunner extends App { } case _ => "" } + + val quorum = System.getenv("BIGDATA_QUORUM_NAMES") + assert (quorum != null, {"Environment Variable BIGDATA_QUORUM_NAMES is undefined or Null"}) + println( "Quorum is [%s]".format(quorum) ) val output = "HBaseTest.%s.tsv" Tool.main(Array(classOf[HBaseExample].getName, modeString, "--app.conf.path", appPath, - "--output", output, "--debug", "true", "--job.lib.path", jobLibPath )) + "--output", output, "--debug", "true", "--job.lib.path", jobLibPath, "--quorum", quorum )) }
\ No newline at end of file |