anchor.diff:  # stage.1 jdk & spark
   FROM ubuntu:18.04 as spark
   ARG SPARK_VERSION
  +ARG HADOOP_VERSION
   ARG JDK_VERSION
   ARG JDK_URL
   ARG SPARK_HOME
  
positive.code: ARG SPARK_VERSION=2.4.6
  ARG SPARK_HOME=/opt/spark
  ARG JDK_VERSION=8u192
  ARG JDK_URL=your_jdk_url
  
negative.code: RUN apt-get update --fix-missing && \
      apt-get install -y apt-utils vim curl nano wget unzip maven git && \
  # java
      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-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
  