aboutsummaryrefslogtreecommitdiff
path: root/docs/building-spark.md
diff options
context:
space:
mode:
authorKay Ousterhout <kayousterhout@gmail.com>2015-10-12 14:23:29 -0700
committerKay Ousterhout <kayousterhout@gmail.com>2015-10-12 14:23:29 -0700
commit091c2c3ecd69803d78c2b15a1487046701059d38 (patch)
tree24a59af46d5414a0497d43708931699ed7aee60e /docs/building-spark.md
parent8a354bef55ce9cc0fa77fa1c3a9d62c16438ca1b (diff)
downloadspark-091c2c3ecd69803d78c2b15a1487046701059d38.tar.gz
spark-091c2c3ecd69803d78c2b15a1487046701059d38.tar.bz2
spark-091c2c3ecd69803d78c2b15a1487046701059d38.zip
[SPARK-11056] Improve documentation of SBT build.
This commit improves the documentation around building Spark to (1) recommend using SBT interactive mode to avoid the overhead of launching SBT and (2) refer to the wiki page that documents using SPARK_PREPEND_CLASSES to avoid creating the assembly jar for each compile. cc srowen Author: Kay Ousterhout <kayousterhout@gmail.com> Closes #9068 from kayousterhout/SPARK-11056.
Diffstat (limited to 'docs/building-spark.md')
-rw-r--r--docs/building-spark.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/building-spark.md b/docs/building-spark.md
index 4d929ee10a..743643cbcc 100644
--- a/docs/building-spark.md
+++ b/docs/building-spark.md
@@ -216,6 +216,11 @@ can be set to control the SBT build. For example:
build/sbt -Pyarn -Phadoop-2.3 assembly
+To avoid the overhead of launching sbt each time you need to re-compile, you can launch sbt
+in interactive mode by running `build/sbt`, and then run all build commands at the command
+prompt. For more recommendations on reducing build time, refer to the
+[wiki page](https://cwiki.apache.org/confluence/display/SPARK/Useful+Developer+Tools#UsefulDeveloperTools-ReducingBuildTimes).
+
# Testing with SBT
Some of the tests require Spark to be packaged first, so always run `build/sbt assembly` the first time. The following is an example of a correct (build, test) sequence: