Skip to content

Commit 20d9458

Browse files
Diana Carrollmateiz
Diana Carroll
authored andcommitted
[Spark-1261] add instructions for running python examples to doc overview page
Author: Diana Carroll <dcarroll@cloudera.com> Closes #162 from dianacarroll/SPARK-1261 and squashes the following commits: 14ac602 [Diana Carroll] typo in python example text 5121e3e [Diana Carroll] Add explanation of how to run Python examples to main doc overview page
1 parent 4562140 commit 20d9458

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ For its Scala API, Spark {{site.SPARK_VERSION}} depends on Scala {{site.SCALA_BI
2323

2424
# Running the Examples and Shell
2525

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 `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
2828
(the `bin/run-example` script sets up the appropriate paths and launches that program).
2929
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+
3032
Each example prints usage help when run with no parameters.
3133

3234
Note that all of the sample programs take a `<master>` parameter specifying the cluster URL

0 commit comments

Comments
 (0)