From 5a2965bfcb5d6944d661dff7b05e8b89dc629342 Mon Sep 17 00:00:00 2001 From: Chandan Rajah Date: Thu, 6 Jun 2013 12:50:30 +0100 Subject: Updated examples --- .../parallelai/spyglass/hbase/example/HBaseExampleRunner.scala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/scala/parallelai/spyglass/hbase/example') 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 -- cgit v1.2.3