spark-instrumented-optimizer/docs
Josh Rosen 289373b28c [SPARK-6363][BUILD] Make Scala 2.11 the default Scala version
This patch changes Spark's build to make Scala 2.11 the default Scala version. To be clear, this does not mean that Spark will stop supporting Scala 2.10: users will still be able to compile Spark for Scala 2.10 by following the instructions on the "Building Spark" page; however, it does mean that Scala 2.11 will be the default Scala version used by our CI builds (including pull request builds).

The Scala 2.11 compiler is faster than 2.10, so I think we'll be able to look forward to a slight speedup in our CI builds (it looks like it's about 2X faster for the Maven compile-only builds, for instance).

After this patch is merged, I'll update Jenkins to add new compile-only jobs to ensure that Scala 2.10 compilation doesn't break.

Author: Josh Rosen <joshrosen@databricks.com>

Closes #10608 from JoshRosen/SPARK-6363.
2016-01-30 00:20:28 -08:00
..
_data [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
_includes [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
_layouts [SPARK-12735] Consolidate & move spark-ec2 to AMPLab managed repository. 2016-01-09 20:28:20 -08:00
_plugins [SPARK-6363][BUILD] Make Scala 2.11 the default Scala version 2016-01-30 00:20:28 -08:00
css [SPARK-12324][MLLIB][DOC] Fixes the sidebar in the ML documentation 2015-12-16 10:12:33 -08:00
img [SPARK-6343] Doc driver-worker network reqs 2015-04-09 06:37:20 -04:00
js [SPARK-12324][MLLIB][DOC] Fixes the sidebar in the ML documentation 2015-12-16 10:12:33 -08:00
_config.yml Bump master version to 2.0.0-SNAPSHOT. 2015-12-19 15:13:05 -08:00
api.md [SPARK-8639] [DOCS] Fixed Minor Typos in Documentation 2015-06-27 08:47:00 +03:00
building-spark.md [SPARK-6363][BUILD] Make Scala 2.11 the default Scala version 2016-01-30 00:20:28 -08:00
cluster-overview.md [SPARK-7997][CORE] Remove Akka from Spark Core and Streaming 2016-01-22 21:20:04 -08:00
configuration.md [SPARK-1680][DOCS] Explain environment variables for running on YARN in cluster mode 2016-01-27 09:31:44 +00:00
contributing-to-spark.md Work in progress: 2013-09-08 00:29:11 -07:00
graphx-programming-guide.md [SPARK-12211][DOC][GRAPHX] Fix version number in graphx doc for migration from 1.1 2015-12-09 17:16:01 -08:00
hadoop-provided.md [SPARK-6511] [docs] Fix example command in hadoop-provided docs. 2015-06-11 15:29:03 -07:00
hardware-provisioning.md Change port from 3030 to 4040 2013-09-11 10:01:38 -07:00
index.md [SPARK-12735] Consolidate & move spark-ec2 to AMPLab managed repository. 2016-01-09 20:28:20 -08:00
java-programming-guide.md [SPARK-1566] consolidate programming guide, and general doc updates 2014-05-30 00:34:33 -07:00
job-scheduling.md [SPARK-12534][DOC] update documentation to list command line equivalent to properties 2016-01-21 16:30:20 +01:00
ml-advanced.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
ml-ann.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
ml-classification-regression.md [SPARK-12570][ML][DOC] DecisionTreeRegressor: provide variance of prediction: user guide update 2016-01-05 14:24:32 -08:00
ml-clustering.md [SPARK-12215][ML][DOC] User guide section for KMeans in spark.ml 2015-12-16 10:43:45 -08:00
ml-decision-tree.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
ml-ensembles.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
ml-features.md [SPARK-11965][ML][DOC] Update user guide for RFormula feature interactions 2016-01-25 11:52:26 -08:00
ml-guide.md [SPARK-12722][DOCS] Fixed typo in Pipeline example 2016-01-16 10:41:40 +00:00
ml-linear-methods.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
ml-survival-regression.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-classification-regression.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-clustering.md [SPARK-12703][MLLIB][DOC][PYTHON] Fixed pyspark.mllib.clustering.KMeans user guide example 2016-01-13 18:01:29 -08:00
mllib-collaborative-filtering.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-data-types.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-decision-tree.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-dimensionality-reduction.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-ensembles.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-evaluation-metrics.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-feature-extraction.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-frequent-pattern-mining.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-guide.md [SPARK-11608][MLLIB][DOC] Added migration guide for MLlib 1.6 2015-12-16 11:53:04 -08:00
mllib-isotonic-regression.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-linear-methods.md [SPARK-5273][MLLIB][DOCS] Improve documentation examples for LinearRegression 2016-01-12 12:13:32 +00:00
mllib-migration-guides.md [SPARK-11608][MLLIB][DOC] Added migration guide for MLlib 1.6 2015-12-16 11:53:04 -08:00
mllib-naive-bayes.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-optimization.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-pmml-model-export.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-statistics.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
monitoring.md [SPARK-9558][DOCS]Update docs to follow the increase of memory defaults. 2015-08-03 12:53:44 -07:00
programming-guide.md [SPARK-12760][DOCS] inaccurate description for difference between local vs cluster mode in closure handling 2016-01-23 11:45:12 +00:00
python-programming-guide.md [SPARK-1566] consolidate programming guide, and general doc updates 2014-05-30 00:34:33 -07:00
quick-start.md [DOC] Added R to the list of languages with "high-level API" support in the… 2015-09-08 14:36:34 +01:00
README.md Update docs/README.md to put all prereqs together. 2015-08-04 22:17:14 -07:00
running-on-mesos.md [SPARK-12805][MESOS] Fixes documentation on Mesos run modes 2016-01-13 11:45:13 -08:00
running-on-yarn.md [SPARK-12534][DOC] update documentation to list command line equivalent to properties 2016-01-21 16:30:20 +01:00
scala-programming-guide.md [SPARK-1566] consolidate programming guide, and general doc updates 2014-05-30 00:34:33 -07:00
security.md [SPARK-7997][CORE] Remove Akka from Spark Core and Streaming 2016-01-22 21:20:04 -08:00
spark-standalone.md [SPARK-9558][DOCS]Update docs to follow the increase of memory defaults. 2015-08-03 12:53:44 -07:00
sparkr.md [SPARK-12232][SPARKR] New R API for read.table to avoid name conflict 2016-01-19 18:31:03 -08:00
sql-programming-guide.md [SPARK-12204][SPARKR] Implement drop method for DataFrame in SparkR. 2016-01-20 21:08:15 -08:00
storage-openstack-swift.md [SPARK-938][doc] Add OpenStack Swift support 2014-09-07 20:56:04 -07:00
streaming-custom-receivers.md [SPARK-7799][STREAMING][DOCUMENT] Add the linking and deploying instructions for streaming-akka project 2016-01-26 11:31:54 -08:00
streaming-flume-integration.md [SPARK-12814][DOCUMENT] Add deploy instructions for Python in flume integration doc 2016-01-18 15:38:03 -08:00
streaming-kafka-integration.md [SPARK-12814][DOCUMENT] Add deploy instructions for Python in flume integration doc 2016-01-18 15:38:03 -08:00
streaming-kinesis-integration.md [SPARK-12894][DOCUMENT] Add deploy instructions for Python in Kinesis integration doc 2016-01-18 16:50:05 -08:00
streaming-programming-guide.md [SPARK-3369][CORE][STREAMING] Java mapPartitions Iterator->Iterable is inconsistent with Scala's Iterator->Iterator 2016-01-26 11:55:28 +00:00
submitting-applications.md Provide same info as in spark-submit --help 2016-01-28 10:50:50 +00:00
tuning.md [SPARK-12081] Make unified memory manager work with small heaps 2015-12-01 19:51:12 -08:00

Welcome to the Spark documentation!

This readme will walk you through navigating and building the Spark documentation, which is included here with the Spark source code. You can also find documentation specific to release versions of Spark at http://spark.apache.org/documentation.html.

Read on to learn more about viewing documentation in plain text (i.e., markdown) or building the documentation yourself. Why build it yourself? So that you have the docs that corresponds to whichever version of Spark you currently have checked out of revision control.

Prerequisites

The Spark documentation build uses a number of tools to build HTML docs and API docs in Scala, Python and R. To get started you can run the following commands

$ sudo gem install jekyll
$ sudo gem install jekyll-redirect-from
$ sudo pip install Pygments
$ sudo pip install sphinx
$ Rscript -e 'install.packages(c("knitr", "devtools"), repos="http://cran.stat.ucla.edu/")'

Generating the Documentation HTML

We include the Spark documentation as part of the source (as opposed to using a hosted wiki, such as the github wiki, as the definitive documentation) to enable the documentation to evolve along with the source code and be captured by revision control (currently git). This way the code automatically includes the version of the documentation that is relevant regardless of which version or release you have checked out or downloaded.

In this directory you will find textfiles formatted using Markdown, with an ".md" suffix. You can read those text files directly if you want. Start with index.md.

Execute jekyll build from the docs/ directory to compile the site. Compiling the site with Jekyll will create a directory called _site containing index.html as well as the rest of the compiled files.

$ cd docs
$ jekyll build

You can modify the default Jekyll build as follows:

# Skip generating API docs (which takes a while)
$ SKIP_API=1 jekyll build
# Serve content locally on port 4000
$ jekyll serve --watch
# Build the site with extra features used on the live page
$ PRODUCTION=1 jekyll build

API Docs (Scaladoc, Sphinx, roxygen2)

You can build just the Spark scaladoc by running build/sbt unidoc from the SPARK_PROJECT_ROOT directory.

Similarly, you can build just the PySpark docs by running make html from the SPARK_PROJECT_ROOT/python/docs directory. Documentation is only generated for classes that are listed as public in __init__.py. The SparkR docs can be built by running SPARK_PROJECT_ROOT/R/create-docs.sh.

When you run jekyll in the docs directory, it will also copy over the scaladoc for the various Spark subprojects into the docs directory (and then also into the _site directory). We use a jekyll plugin to run build/sbt unidoc before building the site so if you haven't run it (recently) it may take some time as it generates all of the scaladoc. The jekyll plugin also generates the PySpark docs Sphinx.

NOTE: To skip the step of building and copying over the Scala, Python, R API docs, run SKIP_API=1 jekyll.