Sign inSign up

magnarox/spark-builder

By magnarox

•Updated almost 7 years ago

Image
0

272

magnarox/spark-builder repository overview

⁠Spark

⁠Objective

Build and test Spark 2.4.4 distrib with :

  • Scala 2.11
  • Hadoop 3.1.2
  • Python 3.7.1
  • R 3.3.3
  • Kubernetes
  • ElasticSearch 6.8.1

⁠Build distrib

⁠Create your building docker image

Run

cd build-distrib
docker-builder.sh
⁠Create distrib

Launch docker container and build distrib :

docker run -it -v <spark_repo>/build-distrib/out:/spark/out/ spark-builder /bin/bash
> ./build-distrib.sh

After a long time, distrib named spark-2.4.4-bin-magnarox-spark.tgz is in <spark_repo>/build-distrib/out directory.

Your distrib is Ready

⁠Prepare docker images for spark

Get the distrib and untar it then build images :

tar xvf spark-2.4.4-bin-magnarox-spark.tgz
cd spark-2.4.4-bin-magnarox-spark
./bin/docker-image-tool.sh -r magnarox -t latest build
./bin/docker-image-tool.sh -r magnarox -t latest push

⁠Build and install pyspark

cd spark-2.4.4-bin-magnarox-spark/python
python setup.py sdist
cd dist
pip install pyspark-2.4.4.tar.gz

Tag summary

Content type

Image

Digest

Size

2.3 GB

Last updated

almost 7 years ago

docker pull magnarox/spark-builder