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
Fix docs
  • Loading branch information
sryza committed Apr 29, 2014
commit 5165a02cfa2f9e982edaa6d5edda77d3e748a5d6
4 changes: 1 addition & 3 deletions docs/python-programming-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ The script automatically adds the `bin/pyspark` package to the `PYTHONPATH`.

# Running PySpark on YARN

Running PySpark on a YARN-managed cluster requires a few extra steps. The client must reference a ZIP file containing PySpark and its dependencies. To create this file, run "make" inside the `python/` directory in the Spark source. This will generate `pyspark-assembly.zip` under `python/build/`. Then, set the PYSPARK_ZIP environment variable to point to the location of this file. Lastly, set MASTER=yarn-client.

`pyspark-assembly.zip` can be placed either on local disk or on HDFS. If in a public location on HDFS, YARN will be able to cache it on each node so that it doesn't need to be transferred each time an app is run.
To run PySpark against a YARN cluster, simply set the MASTER environment variable to "yarn-client".

# Interactive Use

Expand Down