File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ RUN apt-get update --yes && \
33
33
# Spark installation
34
34
WORKDIR /tmp
35
35
36
+ # You need to use https://archive.apache.org/dist/ website if you want to download old Spark versions
37
+ # But it seems to be slower, that's why we use recommended site for download
36
38
RUN if [ -z "${scala_version}" ]; then \
37
- wget -qO "spark.tgz" "https://archive .apache.org/dist /spark/spark-${APACHE_SPARK_VERSION}/spark-${APACHE_SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz" ; \
39
+ wget -qO "spark.tgz" "https://dlcdn .apache.org/spark/spark-${APACHE_SPARK_VERSION}/spark-${APACHE_SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz" ; \
38
40
else \
39
- wget -qO "spark.tgz" "https://archive .apache.org/dist /spark/spark-${APACHE_SPARK_VERSION}/spark-${APACHE_SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}-scala${scala_version}.tgz" ; \
41
+ wget -qO "spark.tgz" "https://dlcdn .apache.org/spark/spark-${APACHE_SPARK_VERSION}/spark-${APACHE_SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}-scala${scala_version}.tgz" ; \
40
42
fi && \
41
43
echo "${spark_checksum} *spark.tgz" | sha512sum -c - && \
42
44
tar xzf "spark.tgz" -C /usr/local --owner root --group root --no-same-owner && \
You can’t perform that action at this time.
0 commit comments