Skip to content

Commit c362f69

Browse files
committed
Update docs to use spark-submit for python applications
1 parent 7072c6a commit c362f69

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/index.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ The `--master` option specifies the
4343
locally with one thread, or `local[N]` to run locally with N threads. You should start by using
4444
`local` for testing. For a full list of options, run Spark shell with the `--help` option.
4545

46-
Spark also provides a Python interface. To run an example Spark application written in Python, use
47-
`bin/pyspark <program> [params]`. For example,
46+
Spark also provides a Python interface. To run Spark interactively in a Python interpreter, use
47+
`bin/pyspark`. As in Spark shell, you can also pass in the `--master` option to configure your
48+
master URL.
4849

49-
./bin/pyspark examples/src/main/python/pi.py 10
50+
./bin/pyspark --master local[2]
5051

51-
or simply `bin/pyspark` without any arguments to run Spark interactively in a python interpreter.
52-
As in Spark shell, you can also pass in the `--master` option to configure your master URL.
52+
Example applications are also provided in Python. For example,
53+
54+
./bin/spark-submit examples/src/main/python/pi.py 10
5355

5456
# Launching on a Cluster
5557

0 commit comments

Comments
 (0)