Showing posts with label Scala. Show all posts
Showing posts with label Scala. Show all posts

Wednesday, March 15, 2017

How to run Scala or Python scripts in Spark

How to run Python script in Spark?
$ spark-submit test.py

How to run scala script in Spark?
$ spark-shell -i test.scala