filipecorrea / spark

Simple Spark example build with Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spark

Simple Spark example build with Docker.

Prerequisites

Build

At root directory, run:

docker build -t filipecorrea/spark .

This will take a while for the first time since it downloads and installs Maven and downloads all the project’s dependencies. Every subsequent start of this build will only take a few seconds, as again everything will be already cached.

Run

Once the image is built, start it with:

docker run -d -p 4567:4567 filipecorrea/spark

And test it with:

curl http://localhost:4567

In Mac OS, you should first get the Docker machine IP. Test it with:

open "http://$(docker-machine ip default):4567/"

About

Simple Spark example build with Docker

License:MIT License


Languages

Language:Dockerfile 68.3%Language:Java 31.7%