Docker for Spark with Numpy, Pandas and Scikit Learn
5.5K
Dockerfile for Apache Spark The image is available and ready to pull directly from docker hub
Libraries that contain in the image:
docker pull canhtran/docker-spark
docker build --rm -t canhtran/docker-spark
docker run -it -p 4040:4040 -p 8080:8080 -p 8081:8081 -h spark --name=spark canhtran/docker-spark
or
docker run -it -rm canhtran/docker-spark bash
root@2d0472b61835:/app# pyspark
Python 3.7.0 (default, Sep 5 2018, 03:25:31)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
18/09/17 16:35:35 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/__ / .__/\_,_/_/ /_/\_\ version 2.3.1
/_/
Using Python version 3.7.0 (default, Sep 5 2018 03:25:31)
SparkSession available as 'spark'.
root@2d0472b61835:/app# spark-shell
18/09/17 16:36:15 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Spark context Web UI available at http://2d0472b61835:4040
Spark context available as 'sc' (master = local[*], app id = local-1537202182725).
Spark session available as 'spark'.
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 2.3.1
/_/
Using Scala version 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_181)
Type in expressions to have them evaluated.
Type :help for more information.
scala>
This project is licensed under the MIT License - see the LICENSE.md file for details
Content type
Image
Digest
Size
816.2 MB
Last updated
about 8 years ago
docker pull canhtran/docker-spark