Sign inSign up

eff3ct/spark

By eff3ct

Updated over 1 year ago

The Apache Spark with Scala 2.13 Docker image

Image
Languages & frameworks
Data science
0

1.2K

eff3ct/spark repository overview

Apache Spark with Scala 2.13 UnOfficial Dockerfiles

What is Apache Spark?

Spark is a unified analytics engine for large-scale data processing. It provides high-level APIs in Scala, Java, Python, and R, and an optimized engine that supports general computation graphs for data analysis. It also supports a rich set of higher-level tools including Spark SQL for SQL and DataFrames, pandas API on Spark for pandas workloads, MLlib for machine learning, GraphX for graph processing, and Structured Streaming for stream processing.

https://spark.apache.org/

Why this Apache Spark Docker Image?

The Apache Spark Docker image is a lightweight and easy-to-use Docker image for running Apache Spark on your system.

Because Apache Spark doesn't provide a Docker image with Scala 2.13 support, we created this Docker image to easily run Apache Spark with Scala 2.13.

Features

  • Scala 2.13 support
  • Java 8 / 11 / 17 support
  • Python 3.10 support
  • R 4.2 support

Supported Tags and Dockerfiles

The following tags are available for this Docker image:

  • latest (3.5.4-scala2.13-java8-python3-r-ubuntu)
  • 3.5.4-scala2.13-java8-python3-r-ubuntu, 3.5.4-scala2.13-java8-python3-ubuntu, 3.5.4-scala2.13-java8-r-ubuntu, 3.5.4-scala2.13-java8-ubuntu
  • 3.5.4-scala2.13-java11-python3-r-ubuntu, 3.5.4-scala2.13-java11-python3-ubuntu, 3.5.4-scala2.13-java11-r-ubuntu, 3.5.4-scala2.13-java11-ubuntu
  • 3.5.4-scala2.13-java17-python3-r-ubuntu, 3.5.4-scala2.13-java17-python3-ubuntu, 3.5.4-scala2.13-java17-r-ubuntu, 3.5.4-scala2.13-java17-ubuntu

For more information about the available tags and their corresponding Dockerfiles, please refer to the tags page.

Getting Started

To use this Docker image, you'll need Docker installed on your system. Follow these steps to get started:

Pull the Docker Image

Download the image from the Docker registry:

docker pull eff3ct/spark:latest
Run the Docker Image

Run the Docker image:

docker run -it eff3ct/spark:latest /bin/bash

This will start a new container with the Spark image running. You can now use the Spark CLI to interact with the container.

Usage

You can use the Spark CLI to interact with the container. For example, to run a Spark shell:

docker run --rm -it \
  -v /path/to/your/app:/app \
  eff3ct/spark:latest \
  /bin/bash -c "$SPARK_HOME/bin/spark-submit --class <YourMainClass> /app/your-spark-app.jar <args>"

This will start a new container with the Spark image running and open a Spark shell.

License

This project is licensed under the Apache License, Version 2.0.

Tag summary

Content type

Image

Digest

sha256:79505d6a0

Size

423.6 MB

Last updated

over 1 year ago

docker pull eff3ct/spark