Skip to content

Commit 521a4dd

Browse files
committed
Update Spark to 3.0.1 version (Java 11, Python 3.9)
1 parent 9986b7c commit 521a4dd

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

.envrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
layout python3
2-
# use sdk java 8.0.232.hs-adpt
1+
layout pyenv 3.9.0
2+
use sdk java 11.0.9.hs-adpt
33
export VBOXMANAGE=/Applications/VirtualBox.app/Contents/MacOS
44
export SPARK_HOME=$(pwd)/.spark
55
export PATH=$SPARK_HOME/bin:$VBOXMANAGE:$PATH

infra/docker/.envrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export DOCKER_BUILDKIT=1
2+
export COMPOSE_DOCKER_CLI_BUILD=1

infra/docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM openjdk:8-jdk-slim
1+
FROM openjdk:11-jdk-slim
22
LABEL maintainer="Luis Belloch <[email protected]>"
33

44
ENV DEBIAN_FRONTEND=noninteractive
55
RUN apt-get update && \
66
apt-get install -y --no-install-recommends python3-software-properties python3-numpy curl && \
77
rm -rf /var/lib/apt/lists/*
88

9-
ARG SPARK_VERSION=2.4.5
9+
ARG SPARK_VERSION=3.0.1
1010
ENV SPARK_HOME=/opt/spark
11-
RUN mkdir -p /opt/spark && curl -s http://apache.rediris.es/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop2.7.tgz | tar -xz -C "${SPARK_HOME}" --strip-components=1
11+
RUN mkdir -p /opt/spark && curl -s https://downloads.apache.org/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop2.7.tgz | tar -xz -C "${SPARK_HOME}" --strip-components=1
1212
ENV PATH=$SPARK_HOME/bin:$SPARK_HOME/sbin:$PATH
1313

1414
RUN cp "${SPARK_HOME}/conf/log4j.properties.template" "${SPARK_HOME}/conf/log4j.properties" && \

infra/docker/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
SPARK_VERSION:=2.4.5
2-
COURSE_VERSION:=2020.1
1+
SPARK_VERSION:=3.0.1
2+
COURSE_VERSION:=2020.12
33
IMAGE_NAME:=luisbelloch/spark
44

55
.PHONY: help

local_setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -euo pipefail
3-
SPARK_URL=${SPARK_URL:-http://apache.rediris.es/spark/spark-2.4.5/spark-2.4.5-bin-hadoop2.7.tgz}
3+
SPARK_URL=${SPARK_URL:-https://downloads.apache.org/spark/spark-3.0.1/spark-3.0.1-bin-hadoop2.7.tgz}
44
SPARK_PKG=${SPARK_URL##*/}
55
SPARK_HOME=${SPARK_HOME:-$(pwd)/.spark}
66

playbook.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
- hosts: all
33
vars:
44
spark_home: /opt/spark
5-
spark_pkg_name: spark-2.4.5-bin-hadoop2.7
6-
spark_pkg_url: http://apache.rediris.es/spark/spark-2.4.5/spark-2.4.5-bin-hadoop2.7.tgz
5+
spark_pkg_name: spark-3.0.1-bin-hadoop2.7
6+
spark_pkg_url: https://downloads.apache.org/spark/spark-3.0.1/spark-3.0.1-bin-hadoop2.7.tgz
77

88
tasks:
99
- name: Update all packages to the latest version
@@ -20,7 +20,7 @@
2020
update_cache: yes
2121
force_apt_get: true
2222

23-
- name: Install AdoptOpenJDK 8
23+
- name: Install AdoptOpenJDK 11
2424
become: true
2525
block:
2626
- name: Import keys
@@ -33,7 +33,7 @@
3333
state: present
3434
- name: Install package
3535
apt:
36-
name: ['adoptopenjdk-8-hotspot', 'ca-certificates']
36+
name: ['adoptopenjdk-11-hotspot', 'ca-certificates']
3737
state: latest
3838
update_cache: yes
3939
force_apt_get: true

0 commit comments

Comments
 (0)