Sign inSign up

datagovsg/python-spark

By datagovsg

Updated over 8 years ago

Docker image for a Python installation with Spark, Hadoop and Sqoop binaries

Image
1

3.5K

datagovsg/python-spark repository overview

python-spark

This image is based off the python:2.7 image and contains Hadoop, Sqoop and Spark binaries.

Useful packages included for Spark and Sqoop:

  • Spark-csv
  • Spark-avro
  • MySQL JDBC driver
  • PostgreSQL JDBC driver
  • MS SQL JDBC driver

Logging in to Docker Hub Container Registry

Credentials are managed by docker login. Login with docker login

Building and pushing new images

Assuming that the Python version we want to build is 2.7, the Hadoop version is 2.7.3 and the Spark version is 2.0.2, then we can build the images as such:

docker build -t datagovsg/python-spark:2.7-2.0 --build-arg HADOOP_VERSION=2.7.3 --build-arg SPARK_VERSION=2.0.2 .
docker push datagovsg/python-spark:2.7-2.0

Tag summary

Content type

Image

Digest

Size

843.8 MB

Last updated

about 9 years ago

docker pull datagovsg/python-spark