Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Spark README (installation and usage) #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions TSpark/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
====
Spark
====

.. contents:: **Table of Contents**

How to install Spark: JDK and Spark
====

You first need the Java Development Kit (JDK). Be aware that Spark is not
running with the latest JDK (9), so you need JDK 8 or earlier. You can
download the JDK from Oracle web site, and follow instruction. Once installed,
check it works by just typing in the terminal:

::

java -version

If you have several java versions installed, you can set it using

::

export JAVA_HOME=`/path/to/java_home -v <version number>`

Once JDK is installed (again JDK 8 or earlier), you can install Spark.
The easiest and cleanest way is via pip

::

pip install pyspark

Alternatively, you can `download <https://spark.apache.org/downloads.html>`_
Spark and link it (or use you favourite package installer).
You can test Spark by launching it interactively

::

pyspark # python

or

::

spark-shell # scala

How to use Spark: basics
====

See `here <http://spark.apache.org/docs/latest/quick-start.html>`_.