Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sephiroth-Lin committed Apr 16, 2015
1 parent 052e288 commit 3a0ec77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/submitting-applications.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ files to be distributed with your application. If you depend on multiple Python
packaging them into a `.zip` or `.egg`.

As Python can not read files from assembly jar which packaged by JDK1.7+, so packaging pyspark into a
`.zip`(the name contains "spark-pyspark") and use `--py-files` argument of `spark-submit` to distribute it.
`.zip`(the name contains "pyspark") and use `--py-files` argument of `spark-submit` to distribute it.

# Launching Applications with spark-submit

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class ExecutorRunnable(
// From SPARK-1920 and SPARK-1520 we know PySpark on Yarn can not work when the assembly jar are
// package by JDK 1.7+, so we ship PySpark archives to executors by Yarn with --py-files, and
// add this path to PYTHONPATH.
for ((k, v) <- localResources if k.contains("spark-pyspark")) {
env("PYSPARK_ARCHIVES_PATH") = k
for ((resPath, res) <- localResources if resPath.contains("pyspark")) {
env("PYSPARK_ARCHIVES_PATH") = resPath
}
ctx.setEnvironment(env)

Expand Down

0 comments on commit 3a0ec77

Please sign in to comment.