spark-instrumented-optimizer/docs
Shixiong Zhu 721845c1b6 [SPARK-12894][DOCUMENT] Add deploy instructions for Python in Kinesis integration doc
This PR added instructions to get Kinesis assembly jar for Python users in the Kinesis integration page like Kafka doc.

Author: Shixiong Zhu <shixiong@databricks.com>

Closes #10822 from zsxwing/kinesis-doc.
2016-01-18 16:50:05 -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 [HOTFIX][SPARK-12000] Add missing quotes in Jekyll API docs plugin. 2015-11-30 18:25:59 -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-12842][TEST-HADOOP2.7] Add Hadoop 2.7 build profile 2016-01-15 17:07:24 -08:00
cluster-overview.md [SPARK-12735] Consolidate & move spark-ec2 to AMPLab managed repository. 2016-01-09 20:28:20 -08:00
configuration.md [SPARK-12507][STREAMING][DOCUMENT] Expose closeFileAfterWrite and allowBatching configurations for Streaming 2016-01-07 17:37:46 -08: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 [DOCUMENTATION] doc fix of job scheduling 2016-01-08 11:38:46 -08: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 [MINOR][DOC] Fix broken word2vec link 2015-12-14 13:50:30 +00: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-12429][STREAMING][DOC] Add Accumulator and Broadcast example for Streaming 2015-12-22 16:39:10 -08: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-2930] clarify docs on using webhdfs with spark.yarn.access.nam… 2016-01-15 13:11:27 +00: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-12588] Remove HttpBroadcast in Spark 2.0. 2015-12-30 18:07:07 -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 [SPARKR][DOC] minor doc update for version in migration guide 2016-01-05 08:39:58 +05:30
sql-programming-guide.md [SPARK-12758][SQL] add note to Spark SQL Migration guide about TimestampType casting 2016-01-11 14:21:50 -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 [STREAMING][DOCS][EXAMPLES] Minor fixes 2016-01-07 00:27:13 -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-4819] Remove Guava's "Optional" from public API 2016-01-08 13:02:30 -08:00
submitting-applications.md [SPARK-12351][MESOS] Add documentation about submitting Spark with mesos cluster mode. 2015-12-15 18:20:00 -08: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.