Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update docs to use spark-submit for python applications
  • Loading branch information
andrewor14 committed May 16, 2014
commit c362f69afa6c04bf75633783e112dc5c6e07033e
12 changes: 7 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ The `--master` option specifies the
locally with one thread, or `local[N]` to run locally with N threads. You should start by using
`local` for testing. For a full list of options, run Spark shell with the `--help` option.

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

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

or simply `bin/pyspark` without any arguments to run Spark interactively in a python interpreter.
As in Spark shell, you can also pass in the `--master` option to configure your master URL.
Example applications are also provided in Python. For example,

./bin/spark-submit examples/src/main/python/pi.py 10

# Launching on a Cluster

Expand Down