anchor.diff:      && HADOOP_DOWNLOAD_URL="${HADOOP_URL}hadoop-${HADOOP_VERSION}-${HADOOP_DISTRO}${HADOOP_DISTRO_VERSION}.tar.gz" \
       && HADOOP_TMP_FILE="/tmp/hadoop.tar.gz" \
       && mkdir -pv "${HADOOP_HOME}" \
  -    && curl -L "${HADOOP_DOWNLOAD_URL}" -o "${HADOOP_TMP_FILE}" \
  +    && curl --fail --location "${HADOOP_DOWNLOAD_URL}" --output "${HADOOP_TMP_FILE}" \
       && tar xzf "${HADOOP_TMP_FILE}" --absolute-names --strip-components 1 -C "${HADOOP_HOME}" \
       && rm "${HADOOP_TMP_FILE}" \
       && echo "Installing Hive" \
  
positive.code:     && MINICLUSTER_URL="${MINICLUSTER_BASE}${MINICLUSTER_VER}/minicluster-${MINICLUSTER_VER}-SNAPSHOT-bin.zip" \
      && MINICLUSTER_TMP_FILE="/tmp/minicluster.zip" \
      && mkdir -pv "${MINICLUSTER_HOME}" \
      && curl -L "${MINICLUSTER_URL}" -o "${MINICLUSTER_TMP_FILE}" \
      && unzip "${MINICLUSTER_TMP_FILE}" -d "/opt" \
      && rm "${MINICLUSTER_TMP_FILE}"
  
  # Install Docker
  RUN curl -L https://download.docker.com/linux/debian/gpg | apt-key add - \
      && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" \
      && apt-get update \
      && apt-get -y install --no-install-recommends docker-ce \
  
negative.code:     && mkdir -pv "/user/hive/warehouse" \
      && chmod -R 777 "${HIVE_HOME}" \
      && chmod -R 777 "/user/" \
      && curl --fail --location  "${HIVE_URL}" --output "${HIVE_TMP_FILE}" \
      && tar xzf "${HIVE_TMP_FILE}" --strip-components 1 -C "${HIVE_HOME}" \
      && rm "${HIVE_TMP_FILE}"
  
  