Skip to content

Using the Docker Container

jtbarbetta edited this page Nov 12, 2015 · 25 revisions

The docker container provides you with the following:

  • Spark Kernel
  • EclairJS Nashorn JAR
  • Notebook Server/Jupyter Gateway

EclairJS can be run in a docker container using Docker 1.8+. You can either download a Docker image from DockerHub (the docker image on docker hub is cloudet/eclairjs) by running:

docker pull cloudet/eclairjs
docker run -p 8888:8888 -i -t cloudet/eclairjs:latest ipython notebook --no-browser --NotebookApp.ip=0.0.0.0

This will download the pre-built Docker image and start the Notebook server.

To run the rddtop10 against a local docker image

export JUPYTER_HOST=??.??.??.?? (your docker ip)
export JUPYTER_PORT=8888
node examples/rddtop10.js ./dream.txt

You can also access the Notebook GUI by pointing a browser to {docker ip}:8888. Create a new notebook by selected New -> Spark 1.4.1 (JavaScript).

Clone this wiki locally