spark-instrumented-optimizer/docs
jose.cambronero 9c5075775d [SPARK-8598] [MLLIB] Implementation of 1-sample, two-sided, Kolmogorov Smirnov Test for RDDs
This contribution is my original work and I license it to the project under it's open source license.

Author: jose.cambronero <jose.cambronero@cloudera.com>

Closes #6994 from josepablocam/master and squashes the following commits:

bbb30b1 [jose.cambronero] renamed KSTestResult to KolmogorovSmirnovTestResult, to stay consistent with method name
0d0c201 [jose.cambronero] kstTest -> kolmogorovSmirnovTest in statistics.md
1f56371 [jose.cambronero] changed ksTest in public API to kolmogorovSmirnovTest for clarity
a48ae7b [jose.cambronero] refactor code to account for serializable RealDistribution. Reuse testOneSample( _, cdf)
1bb44bd [jose.cambronero]  style and doc changes. Factored out ks test into 2 separate tests
2ec2aa6 [jose.cambronero] initialize to stdnormal when no params passed (and log). Change unit tests to approximate equivalence rather than strict
a4bc0c7 [jose.cambronero] changed ksTest(data, distName) to ksTest(data, distName, params*) after api discussions. Changed tests and docs accordingly
7e66f57 [jose.cambronero] copied implementation note to public api docs, and added @see for links to wiki info
e760ebd [jose.cambronero] line length changes to fit style check
3288e42 [jose.cambronero] addressed style changes, correctness change to simpler approach, and fixed edge case for foldLeft in searchOneSampleCandidates when a partition is empty
9026895 [jose.cambronero] addressed style changes, correctness change to simpler approach, and fixed edge case for foldLeft in searchOneSampleCandidates when a partition is empty
1226b30 [jose.cambronero] reindent multi-line lambdas, prior intepretation of style guide was wrong on my part
9c0f1af [jose.cambronero] additional style changes incorporated and added documentation to mllib statistics docs
3f81ad2 [jose.cambronero] renamed ks1 sample test for clarity
992293b [jose.cambronero] Style changes as per comments and added implementation note explaining the distributed approach.
6a4784f [jose.cambronero] specified what distributions are available for the convenience method ksTest(data, name) (solely standard normal)
4b8ba61 [jose.cambronero] fixed off by 1/N in cases when post-constant adjustment ecdf is above cdf, but prior to adj it was below
0b5e8ec [jose.cambronero] changed KS one sample test to perform just 1 distributed pass (in addition to the sorting pass), operates on each partition separately. Implementation of Sandy Ryza's algorithm
16b5c4c [jose.cambronero] renamed dat to data and eliminated recalc of RDD size by sharing as argument between empirical and evalOneSampleP
c18dc66 [jose.cambronero] removed ksTestOpt from API and changed comments in HypothesisTestSuite accordingly
f6951b6 [jose.cambronero] changed style and some comments based on feedback from pull request
b9cff3a [jose.cambronero] made small changes to pass style check
ce8e9a1 [jose.cambronero] added kstest testing in HypothesisTestSuite
4da189b [jose.cambronero] added user facing ks test functions
c659ea1 [jose.cambronero] created KS test class
13dfe4d [jose.cambronero] created test result class for ks test
2015-07-10 20:55:45 -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-7733] [CORE] [BUILD] Update build, code to use Java 7 for 1.5.0+ 2015-06-07 20:18:13 +01:00
cluster-overview.md [SPARK-6343] Doc driver-worker network reqs 2015-04-09 06:37:20 -04:00
configuration.md [SPARK-8958] Dynamic allocation: change cached timeout to infinity 2015-07-10 09:48:17 -07: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 [SPARK-6510][GraphX]: Add Graph#minus method to act as Set#difference 2015-03-26 19:08:09 -07: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-8457] [ML] NGram Documentation 2015-07-08 14:49:52 -07:00
ml-guide.md [SPARK-7715] [MLLIB] [ML] [DOC] Updated MLlib programming guide for release 1.4 2015-06-21 16:25:25 -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-5562] [MLLIB] LDA should handle empty document. 2015-07-06 21:53:55 -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-8570] [MLLIB] [DOCS] Improve MLlib Local Matrix Documentation. 2015-07-07 08:24:52 -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-feature-extraction.md [SPARK-7739] [MLLIB] Improve ChiSqSelector example code in user guide 2015-06-30 16:28:25 -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-7715] [MLLIB] [ML] [DOC] Updated MLlib programming guide for release 1.4 2015-06-21 16:25:25 -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-8308] [MLLIB] add missing save load for python example 2015-07-01 11:17:56 -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-8598] [MLLIB] Implementation of 1-sample, two-sided, Kolmogorov Smirnov Test for RDDs 2015-07-10 20:55:45 -07:00
monitoring.md [HOTFIX] History Server API docs error fix. 2015-06-03 16:53:57 -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-6806] [SPARKR] [DOCS] Fill in SparkR examples in programming guide 2015-05-23 00:01:40 -07:00
README.md [SPARK-8639] [DOCS] Fixed Minor Typos in Documentation 2015-06-27 08:47:00 +03:00
running-on-mesos.md [SPARK-6707] [CORE] [MESOS] Mesos Scheduler should allow the user to specify constraints based on slave attributes 2015-07-06 16:04:57 -07:00
running-on-yarn.md [SPARK-3629] [YARN] [DOCS]: Improvement of the "Running Spark on YARN" document 2015-06-27 09:07:10 +03: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-8395] [DOCS] start-slave.sh docs incorrect 2015-06-17 13:31:10 -07:00
sparkr.md [SPARK-8900] [SPARKR] Fix sparkPackages in init documentation 2015-07-08 12:39:32 -07:00
sql-programming-guide.md [SPARK-8909][Documentation] Change the scala example in sql-programmi… 2015-07-08 14:51:18 -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 [SPARK-8390] [STREAMING] [KAFKA] fix docs related to HasOffsetRanges 2015-06-19 17:18:31 -07:00
streaming-kinesis-integration.md [SPARK-7284] [STREAMING] Updated streaming documentation 2015-06-12 15:22:59 -07:00
streaming-programming-guide.md [DOCS] Added important updateStateByKey details 2015-07-09 19:54:21 -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 [SPARK-5112] Expose SizeEstimator as a developer api 2015-05-05 12:38:46 +01: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.

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.

The markdown code can be compiled to HTML using the Jekyll tool. Jekyll and a few dependencies must be installed for this to work. We recommend installing via the Ruby Gem dependency manager. Since the exact HTML output varies between versions of Jekyll and its dependencies, we list specific versions here in some cases:

$ sudo gem install jekyll
$ sudo gem install jekyll-redirect-from

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.

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

Pygments

We also use pygments (http://pygments.org) for syntax highlighting in documentation markdown pages, so you will also need to install that (it requires Python) by running sudo pip install Pygments.

To mark a block of code in your markdown to be syntax highlighted by jekyll during the compile phase, use the following sytax:

{% highlight scala %}
// Your scala code goes here, you can replace scala with many other
// supported languages too.
{% endhighlight %}

Sphinx

We use Sphinx to generate Python API docs, so you will need to install it by running sudo pip install sphinx.

knitr, devtools

SparkR documentation is written using roxygen2 and we use knitr, devtools to generate documentation. To install these packages you can run install.packages(c("knitr", "devtools")) from a R console.

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.