Skip to content

Using the Docker Container

jtbarbetta edited this page Jan 28, 2016 · 25 revisions

The docker container provides you with the following:

  • Notebook Server/Jupyter Gateway
  • Apache Toree
  • EclairJS Nashorn JAR

EclairJS can be run in a docker container using Docker 1.8+. You can 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. Please note that since this is a pre-built image it may not include everything that is in development on github.

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.6.0 (Javascript)

In addition you can use EclairJS Node with the pre-built Docker image:

git clone git@github.com:cfa/eclair-node.git
cd eclair-node
npm install
node --harmony examples/rddtop10.js

Clone this wiki locally