-
Notifications
You must be signed in to change notification settings - Fork 37
Using the Docker Container
The docker container provides you with the following:
- Jupyter Gateway
- Apache Toree
- Apache Spark
- EclairJS Nashorn JAR
- EclairJS example data
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 eclairjs/minimal-gateway) by running:
docker pull eclairjs/minimal-gateway
docker run -p 8888:8888 eclairjs/minimal-gateway
This will download the pre-built Docker image and start the kernel gateway 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
If you wish run something which accesses data other than the eclairjs example data, you need pass the appropriate docker parameters to allow the docker container access to your data.
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 (EclairJS)
In addition you can use EclairJS Node with the pre-built Docker image:
git clone [email protected]:EclairJS/eclairjs-node.git
cd eclair-node
npm install
node --harmony examples/rddtop10.js