Skip to content

Spark in TAP

Daniel Smith edited this page Sep 13, 2016 · 12 revisions

Apache Spark is a general engine for cluster scale computing. It provides APIs for multiple languages including Python, Scala, and SQL.

Getting started with Spark

The easiest way to get started with Spark on TAP is within a Jupyter notebook, as follows:

  1. First, create a Jupyter notebook.

  2. Open Jupyter and navigate to examples/spark/README.ipynb

Accessing Readme files

The README notebook demonstrates how to create a SparkContext and some simple Spark code.

Readme files in Jupyter Sample

The other example notebooks show how to use Spark dataframes, RDDs, streaming, SQL, and machine learning with K-Means and Linear Regression.

Readme files in Jupyter Sample

More information about Spark is available on the Spark website

###Accessing a terminal from Jupyter 1 From the Jupyter dashboard, select the >New button located in the upper right.

Accessing a Terminal from Jupyter

2 Select >Terminal from the sub menu to open a new terminal within Jupyter.

Jupyter Terminal

You can enter Spark commands (spark-shell, spark-submit, etc.) in the terminal window.

Clone this wiki locally