File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,12 @@ For its Scala API, Spark {{site.SPARK_VERSION}} depends on Scala {{site.SCALA_BI
23
23
24
24
# Running the Examples and Shell
25
25
26
- Spark comes with several sample programs in the ` examples ` directory.
27
- To run one of the samples , use ` ./bin/run-example <class> <params> ` in the top-level Spark directory
26
+ Spark comes with several sample programs. Scala and Java examples are in the ` examples ` directory, and Python examples are in the ` python/examples ` .
27
+ To run one of the Java or Scala sample programs , use ` ./bin/run-example <class> <params> ` in the top-level Spark directory
28
28
(the ` bin/run-example ` script sets up the appropriate paths and launches that program).
29
29
For example, try ` ./bin/run-example org.apache.spark.examples.SparkPi local ` .
30
+ To run a Python sample program, use ` ./bin/pyspark <sample-program> <params> ` . For example, try ` ./bin/pyspark ./python/examples/pi.py local ` .
31
+
30
32
Each example prints usage help when run with no parameters.
31
33
32
34
Note that all of the sample programs take a ` <master> ` parameter specifying the cluster URL
You can’t perform that action at this time.
0 commit comments