Skip to content

Commit

Permalink
added test mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
saad373 committed Feb 20, 2014
1 parent 3f2642d commit e068f01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import org.apache.log4j.{Level, Logger}
import parallelai.spyglass.hbase.{HBasePipeConversions, HBaseSource}
import parallelai.spyglass.hbase.HBaseConstants.SourceMode
import cascading.tuple.Fields
import cascading.property.AppProps
import java.util.Properties

/**
* Simple example of HBaseSource usage
Expand All @@ -17,7 +19,10 @@ class SimpleHBaseSourceExample(args: Args) extends JobBase(args) with HBasePipeC
if (isDebug) Logger.getRootLogger.setLevel(Level.DEBUG)

val output = args("output")


val properties = new Properties()
AppProps.setApplicationJarClass( properties, classOf[SimpleHBaseSourceExample] );

val hbs = new HBaseSource(
"table_name",
"quorum_name:2181",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SimpleHBaseSourceExampleTest extends FunSpec with TupleConversions {
)

JobTest("parallelai.spyglass.hbase.example.SimpleHBaseSourceExample")
.arg("local", "")
.arg("test", "")
.arg("app.conf.path", "app.conf")
.arg("output", output)
.arg("debug", "true")
Expand Down

0 comments on commit e068f01

Please sign in to comment.