RUN echo "Install Spark" && \
wget -O /tmp/spark-2.3.4-bin-hadoop2.6.tgz http://mirror.bit.edu.cn/apache/spark/spark-2.3.4/spark-2.3.4-bin-hadoop2.6.tgz && \
cd /tmp/ && \
tar -zxvf /tmp/spark-2.3.4-bin-hadoop2.6.tgz && \
rm -rf /tmp/spark-2.3.4-bin-hadoop2.6.tgz && \
rm -rf ${Z_HOME}/spark/ && \
mkdir -p ${Z_HOME}/spark/ && \
mv /tmp/spark-2.3.4-bin-hadoop2.6/* ${Z_HOME}/spark/ && \
chown -R admin:admin ${Z_HOME}/
ENV SPARK_HOME="${Z_HOME}/spark" \
PATH="$PATH:${SPARK_HOME}/bin"