Zeppelin notebooks are web-based notebooks that enable data-driven, interactive data analytics and collaborative documents with SQL, Scala, Spark and much more. Zeppelin also offers built-in visualizations and allows multiple users when configured on a cluster. In this article, I am going to go through the basic steps that allow you to configure Zeppelin the easy way, locally.

The following procedure was tested on macOS.


First of all, let’s install the dependencies we will later on need. If you do not have homebrew installed, start by running this line in your terminal :

$ /usr/bin/ruby -e "$(curl -fsSL"

Then, we need to install Java, Scala, Spark, and Zeppelin.

$ brew cask install java8
$ brew install scala
$ brew install apache-spark
$ brew install apache-zeppelin

Your Zeppelin will be installed here :


Running Zeppelin

To run Zeppelin and create a Zeppelin notebook, run the following command :

$ start

If everything goes well, you should see this :

Zeppelin start                                             [  OK  ]

There are some useful Zeppelin commands one should know :

$ start -> To start the Daemon
$ stop -> To stop the Daemon
$ restart -> To restart the Daemon

Your Zeppelin Notebook should be accessible from the following link : http://localhost:8080/

At that point, you should see this : image

Click on “Create new note”, leave the Spark interpreter as the default one. image

Test your Zeppelin configuration

The default interpreter language is Spark-Scala. In the first cell, simply type :

val i = 1

It should return :

i: Int = 1

There are also Python interpreters in Zeppelin. You can try it the following way :

import numpy as np

If no error is displayed, well, congrats! Your Zeppelin notebook is ready!

**Conclusion **: Your Zeppelin is now configured locally. The next article will include the next step of our road to big data analysis: starting a Zeppelin Notebook on an AWS EMR instance!