spark 2.4.5
url: https://apache-mirror.rbc.ru/pub/apache/spark/spark-2.4.5/spark-2.4.5-bin-hadoop2.7.tgz
Build image:
FROM centos:7
RUN curl http://spark.tgz
RUN tar -xzf spark.tgz -C /opt
FROM centos:7
RUN mkdir -p /opt/spark-2.4.5 && ln -s /opt/spark-2.4.5 /opt/spark2
COPT --from=0 /opt/spark-2.4.5/ /opt/spar2/
FROM centos:7 AS spark2
RUN curl http://spark.tgz
RUN tar -xzf spark.tgz -C /opt
FROM centos:7
RUN mkdir -p /opt/spark-2.4.5 && ln -s /opt/spark-2.4.5 /opt/spark2
COPT --from=spark2 /opt/spark-2.4.5/ /opt/spar2/
COPY --from=nginx:latest /etc/nginx/nginx.conf /nginx.conf
How to run docker image
docker run -it --rm --name spark2 -p 4040:4040 1gog/spark:2.4.5 bin/spark-shell
docker run -it --rm --name spark2 -p 4040:4040 1gog/spark:2.4.5 bin/spark-submit
docker run -it --rm --name spark2 -p 4040:4040 1gog/spark:2.4.5 bin/pyspark
Content type
Image
Digest
Size
439.6 MB
Last updated
almost 7 years ago
docker pull 1gog/spark