spark-instrumented-optimizer/docs
Yuhao Yang 66d87c1d76 [SPARK-7583] [MLLIB] User guide update for RegexTokenizer
jira: https://issues.apache.org/jira/browse/SPARK-7583

User guide update for RegexTokenizer

Author: Yuhao Yang <hhbyyh@gmail.com>

Closes #7828 from hhbyyh/regexTokenizerDoc.
2015-08-12 09:35:32 -07:00
..
_layouts [SPARK-8353] [DOCS] Show anchor links when hovering over documentation headers 2015-06-18 15:10:09 -07:00
_plugins [SPARK-1564] [DOCS] Added Javascript to Javadocs to create badges for tags like :: Experimental :: 2015-07-02 13:55:53 -07:00
css [SPARK-1564] [DOCS] Added Javascript to Javadocs to create badges for tags like :: Experimental :: 2015-07-02 13:55:53 -07:00
img [SPARK-6343] Doc driver-worker network reqs 2015-04-09 06:37:20 -04:00
js [SPARK-1564] [DOCS] Added Javascript to Javadocs to create badges for tags like :: Experimental :: 2015-07-02 13:55:53 -07:00
_config.yml [SPARK-7801] [BUILD] Updating versions to SPARK 1.5.0 2015-06-03 10:11:27 -07:00
api.md [SPARK-8639] [DOCS] Fixed Minor Typos in Documentation 2015-06-27 08:47:00 +03:00
bagel-programming-guide.md [SPARK-5608] Improve SEO of Spark documentation pages 2015-02-05 11:12:50 -08:00
building-spark.md [SPARK-9521] [DOCS] Addendum. Require Maven 3.3.3+ in the build 2015-08-04 13:48:22 +09:00
cluster-overview.md [SPARK-6343] Doc driver-worker network reqs 2015-04-09 06:37:20 -04:00
configuration.md [SPARK-9641] [DOCS] spark.shuffle.service.port is not documented 2015-08-06 19:29:42 +01:00
contributing-to-spark.md Work in progress: 2013-09-08 00:29:11 -07:00
ec2-scripts.md [SPARK-6402][DOC] - Remove some refererences to shark in docs and ec2 2015-03-19 08:02:06 -04:00
graphx-programming-guide.md Pregel example type fix 2015-07-28 01:33:31 +09:00
hadoop-provided.md [SPARK-6511] [docs] Fix example command in hadoop-provided docs. 2015-06-11 15:29:03 -07:00
hadoop-third-party-distributions.md [SPARK-7249] Updated Hadoop dependencies due to inconsistency in the versions 2015-05-14 15:22:58 +01:00
hardware-provisioning.md Change port from 3030 to 4040 2013-09-11 10:01:38 -07:00
index.md [SPARK-6511] [DOCUMENTATION] Explain how to use Hadoop provided builds 2015-06-09 16:14:21 -07: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-4286] Add an external shuffle service that can be run as a daemon. 2015-04-28 12:08:18 -07:00
ml-ensembles.md [SPARK-7574] [ML] [DOC] User guide for OneVsRest 2015-05-22 13:18:08 -07:00
ml-features.md [SPARK-7583] [MLLIB] User guide update for RegexTokenizer 2015-08-12 09:35:32 -07:00
ml-guide.md [SPARK-9490] [DOCS] [MLLIB] MLlib evaluation metrics guide example python code uses deprecated print statement 2015-07-31 13:45:28 -07:00
ml-linear-methods.md [SPARK-7555] [DOCS] Add doc for elastic net in ml-guide and mllib-guide 2015-07-15 12:10:53 -07:00
mllib-classification-regression.md [SPARK-7830] [DOCS] [MLLIB] Adding logistic regression to the list of Multiclass Classification Supported Methods documentation 2015-05-22 18:03:12 -07:00
mllib-clustering.md [SPARK-5989] [MLLIB] Model save/load for LDA 2015-07-21 10:31:31 -07:00
mllib-collaborative-filtering.md [SPARK-8308] [MLLIB] add missing save load for python example 2015-07-01 11:17:56 -07:00
mllib-data-types.md [SPARK-6486] [MLLIB] [PYTHON] Add BlockMatrix to PySpark. 2015-08-05 07:40:50 -07:00
mllib-decision-tree.md [SPARK-6097][MLLIB] Support tree model save/load in PySpark/MLlib 2015-03-02 22:27:01 -08:00
mllib-dimensionality-reduction.md [SPARK-5521] PCA wrapper for easy transform vectors 2015-05-10 13:34:00 -07:00
mllib-ensembles.md [SPARK-6025] [MLlib] Add helper method evaluateEachIteration to extract learning curve 2015-03-20 17:14:09 -07:00
mllib-evaluation-metrics.md [SPARK-9490] [DOCS] [MLLIB] MLlib evaluation metrics guide example python code uses deprecated print statement 2015-07-31 13:45:28 -07:00
mllib-feature-extraction.md [SPARK-9490] [DOCS] [MLLIB] MLlib evaluation metrics guide example python code uses deprecated print statement 2015-07-31 13:45:28 -07:00
mllib-frequent-pattern-mining.md [SPARK-8274] [DOCUMENTATION-MLLIB] Fix wrong URLs in MLlib Frequent Pattern Mining Documentation 2015-06-09 15:02:18 +01:00
mllib-guide.md [SPARK-6129] [MLLIB] [DOCS] Added user guide for evaluation metrics 2015-07-29 18:23:07 -07:00
mllib-isotonic-regression.md [SPARK-7949] [MLLIB] [DOC] update document with some missing save/load 2015-05-31 11:51:49 -07:00
mllib-linear-methods.md [SPARK-7555] [DOCS] Add doc for elastic net in ml-guide and mllib-guide 2015-07-15 12:10:53 -07:00
mllib-migration-guides.md [SPARK-7715] [MLLIB] [ML] [DOC] Updated MLlib programming guide for release 1.4 2015-06-21 16:25:25 -07:00
mllib-naive-bayes.md [SPARK-8308] [MLLIB] add missing save load for python example 2015-07-01 11:17:56 -07:00
mllib-optimization.md [SPARK-6336] LBFGS should document what convergenceTol means 2015-03-17 12:11:57 -07:00
mllib-pmml-model-export.md [SPARK-7272] [MLLIB] User guide for PMML model export 2015-05-18 08:46:33 -07:00
mllib-statistics.md [SPARK-9490] [DOCS] [MLLIB] MLlib evaluation metrics guide example python code uses deprecated print statement 2015-07-31 13:45:28 -07: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-5836] [DOCS] [STREAMING] Clarify what may cause long-running Spark apps to preserve shuffle files 2015-06-19 11:03:04 -07: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 [SPARK-9490] [DOCS] [MLLIB] MLlib evaluation metrics guide example python code uses deprecated print statement 2015-07-31 13:45:28 -07: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-9575] [MESOS] Add docuemntation around Mesos shuffle service. 2015-08-11 23:33:22 -07:00
running-on-yarn.md [SPARK-8405] [DOC] Add how to view logs on Web UI when yarn log aggregation is enabled 2015-07-27 08:02:40 -05: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-5342] [YARN] Allow long running Spark apps to run on secure YARN/HDFS 2015-05-01 15:32:09 -05: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-9713] [ML] Document SparkR MLlib glm() integration in Spark 1.5 2015-08-11 21:26:03 -07:00
sql-programming-guide.md [SPARK-9228] [SQL] use tungsten.enabled in public for both of codegen/unsafe 2015-08-06 19:42:02 -07: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-8343] [Streaming] [Docs] Improve Spark Streaming Guides. 2015-06-13 21:22:46 -07:00
streaming-flume-integration.md [SPARK-8378] [STREAMING] Add the Python API for Flume 2015-07-01 11:59:24 -07:00
streaming-kafka-integration.md Fixed AtmoicReference<> Example 2015-08-10 13:02:01 -07:00
streaming-kinesis-integration.md [SPARK-8564] [STREAMING] Add the Python API for Kinesis 2015-07-31 12:09:48 -07:00
streaming-programming-guide.md [SPARK-5155] [PYSPARK] [STREAMING] Mqtt streaming support in Python 2015-08-10 16:33:23 -07:00
submitting-applications.md [SPARK-7515] [DOC] Update documentation for PySpark on YARN with cluster mode 2015-05-11 14:19:11 -07:00
tuning.md Fix doc typo 2015-08-06 21:03:47 -07: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.