diff --git a/build.sh b/build.sh index efa808652b..6cb08cdefe 100755 --- a/build.sh +++ b/build.sh @@ -662,6 +662,8 @@ if [[ "${BUILD_SPARK_DPP}" -eq 1 ]]; then fi if [[ "${OUTPUT_BE_BINARY}" -eq 1 ]]; then + # need remove old version hadoop jars if $DORIS_OUTPUT be used multiple times, otherwise will cause jar conflict + rm -rf "${DORIS_OUTPUT}/be/lib/hadoop_hdfs" install -d "${DORIS_OUTPUT}/be/bin" \ "${DORIS_OUTPUT}/be/conf" \ "${DORIS_OUTPUT}/be/lib" \ diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh index f17af7571b..2df09895d0 100755 --- a/thirdparty/build-thirdparty.sh +++ b/thirdparty/build-thirdparty.sh @@ -1673,6 +1673,8 @@ build_hadoop_libs() { echo "THIRDPARTY_INSTALLED=${TP_INSTALL_DIR}" >env.sh ./build.sh + rm -rf "${TP_INSTALL_DIR}/include/hadoop_hdfs/" + rm -rf "${TP_INSTALL_DIR}/lib/hadoop_hdfs/" mkdir -p "${TP_INSTALL_DIR}/include/hadoop_hdfs/" mkdir -p "${TP_INSTALL_DIR}/lib/hadoop_hdfs/" cp -r ./hadoop-dist/target/hadoop-libhdfs-3.3.6/* "${TP_INSTALL_DIR}/lib/hadoop_hdfs/"