File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,15 @@ The `--master` option specifies the
4343locally 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
You can’t perform that action at this time.
0 commit comments