spark-instrumented-optimizer/docs
Mark Hamstra c2341c92bb Merge pull request #542 from markhamstra/versionBump. Closes #542.
Version number to 1.0.0-SNAPSHOT

Since 0.9.0-incubating is done and out the door, we shouldn't be building 0.9.0-incubating-SNAPSHOT anymore.

@pwendell

Author: Mark Hamstra <markhamstra@gmail.com>

== Merge branch commits ==

commit 1b00a8a7c1a7f251b4bb3774b84b9e64758eaa71
Author: Mark Hamstra <markhamstra@gmail.com>
Date:   Wed Feb 5 09:30:32 2014 -0800

    Version number to 1.0.0-SNAPSHOT
2014-02-08 16:00:43 -08:00
..
_layouts Merge pull request #552 from martinjaggi/master. Closes #552. 2014-02-08 11:39:13 -08:00
_plugins Merge pull request #497 from tdas/docs-update 2014-01-28 21:51:05 -08:00
css Merge pull request #552 from martinjaggi/master. Closes #552. 2014-02-08 11:39:13 -08:00
img Merge pull request #497 from tdas/docs-update 2014-01-28 21:51:05 -08:00
js Merge pull request #497 from tdas/docs-update 2014-01-28 21:51:05 -08:00
_config.yml Merge pull request #542 from markhamstra/versionBump. Closes #542. 2014-02-08 16:00:43 -08:00
api.md Soften wording about GraphX superseding Bagel 2014-01-10 23:48:32 -08:00
bagel-programming-guide.md Soften wording about GraphX superseding Bagel 2014-01-10 23:48:32 -08:00
building-with-maven.md Removed repl-bin and updated maven build doc. 2014-01-14 22:17:24 -08:00
cluster-overview.md more docs 2013-12-06 16:54:06 -08:00
configuration.md Merge pull request #533 from andrewor14/master. Closes #533. 2014-02-06 22:05:53 -08:00
contributing-to-spark.md Work in progress: 2013-09-08 00:29:11 -07:00
ec2-scripts.md fix persistent-hdfs 2013-11-01 17:47:37 -07:00
graphx-programming-guide.md Merge pull request #436 from ankurdave/VertexId-case 2014-01-14 23:17:05 -08:00
hadoop-third-party-distributions.md Code review feedback 2014-01-05 22:05:30 -08:00
hardware-provisioning.md Change port from 3030 to 4040 2013-09-11 10:01:38 -07:00
index.md Merge pull request #497 from tdas/docs-update 2014-01-28 21:51:05 -08:00
java-programming-guide.md run-example -> bin/run-example 2014-01-02 18:41:21 +05:30
job-scheduling.md Add way to limit default # of cores used by applications on standalone mode 2014-01-07 14:35:52 -05:00
mllib-classification-regression.md Merge pull request #552 from martinjaggi/master. Closes #552. 2014-02-08 11:39:13 -08:00
mllib-clustering.md Merge pull request #552 from martinjaggi/master. Closes #552. 2014-02-08 11:39:13 -08:00
mllib-collaborative-filtering.md Merge pull request #552 from martinjaggi/master. Closes #552. 2014-02-08 11:39:13 -08:00
mllib-guide.md Merge pull request #552 from martinjaggi/master. Closes #552. 2014-02-08 11:39:13 -08:00
mllib-linear-algebra.md Merge pull request #552 from martinjaggi/master. Closes #552. 2014-02-08 11:39:13 -08:00
mllib-optimization.md Merge pull request #552 from martinjaggi/master. Closes #552. 2014-02-08 11:39:13 -08:00
monitoring.md Updated docs for SparkConf and handled review comments 2013-12-30 22:17:28 -05:00
python-programming-guide.md Clarify that Python 2.7 is only needed for MLlib 2014-01-15 14:20:39 -08:00
quick-start.md Code review feedback 2014-01-05 22:05:30 -08:00
README.md Merge pull request #552 from martinjaggi/master. Closes #552. 2014-02-08 11:39:13 -08:00
running-on-mesos.md Updated docs for SparkConf and handled review comments 2013-12-30 22:17:28 -05:00
running-on-yarn.md Incorporate Tom's comments - update doc and code to reflect that core requests may not always be honored 2014-01-21 00:38:02 -08:00
scala-programming-guide.md Deprecate mapPartitionsWithSplit in PySpark. 2014-01-23 20:01:36 -08:00
spark-debugger.md spark-shell -> bin/spark-shell 2014-01-02 18:37:40 +05:30
spark-standalone.md Merge pull request #497 from tdas/docs-update 2014-01-28 21:51:05 -08:00
streaming-custom-receivers.md More fixes 2013-09-01 14:13:16 -07:00
streaming-programming-guide.md Merge pull request #497 from tdas/docs-update 2014-01-28 21:51:05 -08:00
tuning.md remove "-XX:+UseCompressedStrings" option 2014-01-15 22:26:15 +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.incubator.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.

To make things quite a bit prettier and make the links easier to follow, generate the html version of the documentation based on the src directory by running jekyll build in the docs directory. Use the command SKIP_SCALADOC=1 jekyll build to skip building and copying over the scaladoc which can be timely. To use the jekyll command, you will need to have Jekyll installed, the easiest way to do this is via a Ruby Gem, see the jekyll installation instructions. This will create a directory called _site containing index.html as well as the rest of the compiled files. Read more about Jekyll at https://github.com/mojombo/jekyll/wiki.

In addition to generating the site as html from the markdown files, jekyll can serve up the site via a webserver. To build and run a local webserver use the command jekyll serve (or the faster variant SKIP_SCALADOC=1 jekyll serve), which runs the webserver on port 4000, then visit the site at http://localhost:4000.

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 easy_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 %}

API Docs (Scaladoc and Epydoc)

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

Similarly, you can build just the PySpark epydoc by running epydoc --config epydoc.conf from the SPARK_PROJECT_ROOT/pyspark directory.

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 sbt/sbt doc 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 using epydoc.

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