Zeppelin Notebook

This section describes how to use the interactive Web Notebook.

Starting Web Notebook

There are several options how you can start the Web Notebook:

  • in a demo mode, Web Notebook is started automatically at Refer to a Quick Start for demo mode details.
  • when running a remote cluster, Web Notebook is started on a master host on port 8090

You can also start and stop Web Notebook any time manually with:


Web Notebook configuration

Any InsightEdge specific settings can be configured in Interpreter menu -> Spark interpreter. The important settings include details on connecting Spark with the Data Grid:

  • insightedge.group
  • insightedge.locator
  • insightedge.spaceName

These properties are transparently translated into GigaSpaceConfig to establish a connection between Spark and the Data Grid.

See also:

Please refer to Connecting to Data Grid for more details on the connection properties.

Using Web Notebook

The Web Notebook comes with example notes, so we recommend to start exploring them and use them as a template for your own notes. There are several things you should take into account.

Data Grid model can be declared in a notebook using %define interpreter:

package model.v1

import org.insightedge.scala.annotation._
import scala.beans.{BeanProperty, BooleanBeanProperty}

case class Product(
    var id: Long,

    var description: String,

    var quantity: Int,

    var featuredProduct: Boolean
    ) {
  def this() = this(-1, null, -1, false)
import model.v1._

You can also load external jars from the Spark interpreter settings or with z.load("/path/to.jar"):

See also:

For more details, please, refer to Zeppelin Dependency Management

Note that you have to load your dependencies before you start using the SparkContext (sc). If you want to redefine the model or load another jar while SparkContext has already started, you have to reload the Spark interpreter.