You can see some [example Spark programs](http://www.spark-project.org/examples.html) on the Spark website.
You can see some [example Spark programs](https://github.com/apache/incubator-spark/tree/master/examples) on the Spark website.
In addition, Spark includes several samples in `examples/src/main/scala`. Some of them have both Spark versions and local (non-parallel) versions, allowing you to see what had to be changed to make the program run on a cluster. You can run them using by passing the class name to the `run-example` script included in Spark; for example: