New Contributor
Posts: 1
Registered: ‎10-24-2014

Run .scala file



I just started using spark on the Cloudera Virtual Machine 5.1 and have problems running a .scala file. 


It cannot be the content of the file, since it works when I type it in row by row into the spark-shell. Also, "scala example.scala" doesn't work in the terminal.


Any help appreciated!! Thanks a lot! 

Posts: 1,825
Kudos: 406
Solutions: 292
Registered: ‎07-31-2013

Re: Run .scala file

What error do you get when you attempt a "scala example.scala"?

You may also want to ask this over the general Scala community for better answers, unless it is a Spark-specific question.

If your program does carry Spark-specific imports/elements, please also ensure you set the classpath appropriately for Scala to discover Spark's own classes under.