anchor.diff:  RUN apt-get update --fix-missing && \
       apt-get install -y apt-utils vim curl nano wget unzip maven git && \
   # java
  -    wget $JDK_URL && \
  -    gunzip jdk-$JDK_VERSION-linux-x64.tar.gz && \
  -    tar -xf jdk-$JDK_VERSION-linux-x64.tar -C /opt && \
  -    rm jdk-$JDK_VERSION-linux-x64.tar && \
  -    mv /opt/jdk* /opt/jdk$JDK_VERSION && \
  +    wget -O jdk.tar.gz $JDK_URL && \
  +    gunzip jdk.tar.gz && \
  +    mkdir /opt/jdk$JDK_VERSION && \
  +    tar -xf jdk.tar -C /opt/jdk$JDK_VERSION --strip-components 1 && \
  +    rm jdk.tar && \
       ln -s /opt/jdk$JDK_VERSION /opt/jdk && \
   # spark
  -    wget https://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop2.7.tgz && \
  -    tar -zxvf spark-${SPARK_VERSION}-bin-hadoop2.7.tgz && \
  -    mv spark-${SPARK_VERSION}-bin-hadoop2.7 /opt/spark && \
  -    rm spark-${SPARK_VERSION}-bin-hadoop2.7.tgz && \
  +    wget https://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz && \
  +    tar -zxvf spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz && \
  +    mv spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION} /opt/spark && \
  +    rm spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz && \
       cp /opt/spark/kubernetes/dockerfiles/spark/entrypoint.sh /opt 
   
   RUN ln -fs /bin/bash /bin/sh
  
positive.code: # stage.1 jdk & spark
  FROM ubuntu:18.04 as spark
  ARG SPARK_VERSION
  ARG JDK_VERSION
  ARG JDK_URL
  ARG SPARK_HOME
  
negative.code: ARG SPARK_VERSION=2.4.6
  ARG HADOOP_VERSION=2.7
  ARG SPARK_HOME=/opt/spark
  ARG JDK_VERSION=8u192
  ARG JDK_URL=your_jdk_url
  