diff --git a/docs/building-spark.md b/docs/building-spark.md index 4d929ee10a33fb8c88d6203771c3c54b021a6a7c..743643cbcc62f77ef7f5e7feb1fed7e755db8bf7 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: