Quick Start example in README. #95
Quick Start example in README. #95eightysteele wants to merge 4 commits intostripe-archive:masterfrom
Conversation
|
This is great, thanks! I think the reason that |
|
Good catch! The sbt-assembly docs offers a clue on how to resolve this. If we add this to run in Compile <<= Defaults.runTask(fullClasspath in Compile, mainClass in (Compile, run), runner in (Compile, run))
runMain in Compile <<= Defaults.runMainTask(fullClasspath in Compile, runner in(Compile, run))Then we can run it locally (with all the dependencies) like this: $ sbt "brushfireScalding/runMain com.twitter.scalding.Tool com.stripe.brushfire.scalding.IrisJob --local --input example/iris.data --output example/iris.output"Boom! I wrapped the above command in a new script called There might be an even BETTER way to resolve this. Happy to pivot. Tell me what you think. :) |
|
eightysteele seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This PR adds some love to the Quick Start example in README. :)
example/irisdidn't match what was inversion.sbt.org.apache.hadoopwas excluded from runtime by sbt-assembly, causing aClassNotFoundExceptionto be thrown byexample/iris. Basically thehadoopClientinDeps.scalawas "provided" so it wasn't getting included intarget/scala-2.11/brushfire-scalding-0.7.5-SNAPSHOT-jar-with-dependencies.jarduring builds.