NICTA / scoobi

A Scala productivity framework for Hadoop.
http://nicta.github.com/scoobi/
482 stars 97 forks source link

Quick Start running example doesn't run #277

Closed jastice closed 11 years ago

jastice commented 11 years ago

I was trying to run the Quick Start example in the form

sbt run-main 'mypackage.myapp.WordCount input-files output'

But this will give the error:

[error] Not a valid command: run-main
[error] Expected whitespace character
[error] run-main

If I run it with the regular sbt syntax for this:

sbt 'run-main mypackage.myapp.WordCount input-files output'

... it will run, but only the first argument seems to be written to args.

etorreborre commented 11 years ago

Thanks for noticing this. The correct syntax is:

sbt "run-main mypackage.myapp.WordCount input-files output"
jastice commented 11 years ago

I did try that, and it starts, but still only passes a single argument. For instance when running

> sbt "run-main com.clueda.finance.semarunner.ScoobiExample inputfile outputfile"

a println(args) will only show: ArrayBuffer(inputfile)

Another minor syntax error in the example: persist(counts.toTextFile(args(1)) is missing a )