May 17, 2021 Spark Programming guide
Congratulations on your successful run of your first Spark app!
examples
of
Scala,
Java,
and
Python
in the examples file directory that you can run directly with:
# For Scala and Java, use run-example:
./bin/run-example SparkPi
# For Python examples, use spark-submit directly:
./bin/spark-submit examples/src/main/python/pi.py