Apache Spark is a unified analytics engine for large-scale data processing. It provides high-level APIs in Java, Scala, Python and R, and an optimized engine that supports general execution graphs. It also supports a rich set of higher-level tools including Spark SQL for SQL and structured data processing, MLlib for machine learning, GraphX for graph processing, and Structured Streaming for incremental computation and stream processing.
$ docker run -d --name some-spark-master -e TYPE=master -p 8080:8080 image:tag
Where:
some-spark-master is name you want to assign to your containerimage is Docker image nametag is Docker image version$ docker run -d --name some-spark-worker -e TYPE=worker -e SPARK_MASTER=spark://spark-master:7077 image:tag
Where:
some-spark-worker is name you want to assign to your containerspark-master is spark master endpoint at which worker is connectingimage is Docker image nametag is Docker image versionTYPE
This is required variable. It specifies starting script target. Possible values are: master, worker.
SPARK_MASTER
This is required variable. It specifies Spark master endpoint at which worker will connect.
TZ
This is optional variable. It specifes timezone. Default value is Europe/Zagreb.
Spark master exposes user interface at port 8080.
This image comes with support for Geomesa datastore querying and analitics.
This image comes with python 3.5.9 and pyspark support to enable connection to master from python application code.
If spark application requires new python packages it must be installed on all workers.
Preinstalled python packages are: scipy, pandas, numpy, shapely, pyspark.
Content type
Image
Digest
Size
1.2 GB
Last updated
about 5 years ago
docker pull dalmatialab/spark