Skip to content

fhuertas/docker-spark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spark docker

This repository contain the files needed to generate docker images for spark in any spark version. Some images have been generated and they are disponible in docker hub:

Build

To generate image for other versions it is needed to run the following commands

# Set spark version. E.g: 2.4.4
export SPARK_VERSION=2.4.4
# Set haddop version E.g. 2.7
export HADOOP_VERSION=2.7
# Base
docker build base/ --build-arg SPARK_VERSION=$SPARK_VERSION --build-arg HADOOP_VERSION=${HADOOP_VERSION} -t fhuertas/spark-base:${SPARK_VERSION}-hadoop${HADOOP_VERSION}
# Worker
docker build worker/ --build-arg SPARK_VERSION=$SPARK_VERSION --build-arg HADOOP_VERSION=${HADOOP_VERSION} -t fhuertas/spark-worker:${SPARK_VERSION}-hadoop${HADOOP_VERSION}
# Master
docker build master/ --build-arg SPARK_VERSION=$SPARK_VERSION --build-arg HADOOP_VERSION=${HADOOP_VERSION} -t fhuertas/spark-master:${SPARK_VERSION}-hadoop${HADOOP_VERSION}

About

Apache Spark docker image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 61.8%
  • Shell 35.3%
  • Scala 2.9%