Skip to content

Commit

Permalink
updated pyspark cluster to use python3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkamprath committed Jul 27, 2020
1 parent 4afd05b commit f26ae46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 2 additions & 4 deletions spark-qfs-swarm/qfs-master/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ FROM worker-node:latest
# Expected volumes:
# /data/qfs - this is where QFS will store its data
#
# Instance should run on the swam's master node so as to persist configuration
# Instance should run on the swarm's master node so as to persist configuration
#

# need python 2 for webserver
USER root
RUN apt-get update \
&& apt-get install -y python2.7 wget vim openssh-client \
&& ln -s /usr/bin/python2.7 /usr/bin/python2 \
&& apt-get install -y wget vim openssh-client \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down
8 changes: 3 additions & 5 deletions spark-qfs-swarm/worker-node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM debian:stretch
FROM python:3.7-stretch
MAINTAINER Michael Kamprath "https://github.com/michaelkamprath"
#
# Base image for Apace Spak standalone cluster with QFS
# Base image for Apache Spark standalone cluster with QFS
#
# Inspired by https://hub.docker.com/r/gettyimages/spark/dockerfile
#
Expand Down Expand Up @@ -37,10 +37,8 @@ ENV LC_ALL en_US.UTF-8

RUN apt-get update \
&& apt-get install -y less curl unzip procps \
python3 python3-setuptools \
libboost-regex-dev \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& easy_install3 pip py4j \
&& pip3 install py4j \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit f26ae46

Please sign in to comment.