anchor.diff:          -Dhttps.proxyPort=$HTTPS_PROXY_PORT" && \
       /opt/apache-maven-3.6.3/bin/mvn -T 16 -DskipTests=true clean package && \
       mv /opt/hadoop/hadoop-common-project/hadoop-common/target/hadoop-common-3.2.0.jar /opt/spark-${SPARK_VERSION}/jars/hadoop-common-3.2.0.jar
  +# hive
  +RUN cd /opt && \
  +    git clone https://github.com/analytics-zoo/hive.git && \
  +    cd hive && \
  +    git checkout branch-2.3.7-ppml && \
  +    cd ql && \
  +    export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=512m \
  +        -Dhttp.proxyHost=$HTTP_PROXY_HOST \
  +        -Dhttp.proxyPort=$HTTP_PROXY_PORT \
  +        -Dhttps.proxyHost=$HTTPS_PROXY_HOST \
  +        -Dhttps.proxyPort=$HTTPS_PROXY_PORT" && \
  +    /opt/apache-maven-3.6.3/bin/mvn -T 16 -DskipTests=true clean package && \
  +    mv /opt/hive/ql/target/hive-exec-2.3.7-core.jar /opt/spark-${SPARK_VERSION}/jars/hive-exec-2.3.7-core.jar
   
   # stage.3 bigdl
   FROM ubuntu:18.04 as bigdl
  
positive.code:     mv spark-${SPARK_VERSION}/jars/spark-kubernetes_2.12-$SPARK_VERSION.jar /opt/spark-kubernetes_2.12-$SPARK_VERSION.jar && \
      mv spark-${SPARK_VERSION}/jars/spark-network-common_2.12-$SPARK_VERSION.jar /opt/spark-network-common_2.12-$SPARK_VERSION.jar && \
      mv spark-${SPARK_VERSION}/jars/hadoop-common-3.2.0.jar /opt/hadoop-common-3.2.0.jar && \
      ls /opt
  # spark modification
  RUN cd /opt && \
  
negative.code:     cp /usr/lib/x86_64-linux-gnu/libpython3.6m.so /usr/lib/libpython3.6m.so && \
      sed -i 's/examples/\/ppml\/trusted-big-data-ml\/work\/spark-3.1.2\/examples/' /ppml/trusted-big-data-ml/work/spark-3.1.2/examples/src/main/python/sql/basic.py && \
      sed -i 's/examples/\/ppml\/trusted-big-data-ml\/work\/spark-3.1.2\/examples/' /ppml/trusted-big-data-ml/work/spark-3.1.2/examples/src/main/python/sql/hive.py && \
      sed -i 's/spark-warehouse/\/ppml\/trusted-big-data-ml\/work\/spark-warehouse/' /ppml/trusted-big-data-ml/work/spark-3.1.2/examples/src/main/python/sql/hive.py && \
      chmod a+x /ppml/trusted-big-data-ml/init.sh && \
      chmod a+x /ppml/trusted-big-data-ml/clean.sh && \
      chmod a+x /ppml/trusted-big-data-ml/start-spark-local-train-sgx.sh && \
  