TT Bigdata TT Bigdata
首页
  • 部署专题

    • 常规安装
    • 一键部署
  • 组件专题

    • 安装教程
    • 魔改分享
  • 版本专题

    • 更新说明
    • BUG临时处理
  • Ambari-Env

    • 环境准备
    • 开始使用
  • 组件编译

    • 专区—Ambari
    • 专区—Bigtop-官方组件
    • 专区—Bigtop-扩展组件
  • 报错解决

    • 专区—Ambari
    • 专区—Bigtop
  • 其他技巧

    • APT仓库增量更新
    • Maven镜像加速
    • Gradle镜像加速
    • Bower镜像加速
    • 虚拟环境思路
    • R环境安装+一键安装脚本
    • Ivy配置私有镜像仓库
    • Node.js 多版本共存方案
    • Ambari Web本地启动
    • Npm镜像加速
    • PostgreSQL快速安装
    • Temurin JDK 23快速安装
  • 成神之路

    • 专区—Ambari
    • 专区—Ambari-Metrics
    • 专区—Bigtop
  • 集成案例

    • Redis集成教学
    • Dolphin集成教学
    • Doris集成教学
    • 持续整理...
  • 核心代码

    • 各组件代码
    • 通用代码模板
  • 国产化&其他系统

    • Rocky系列
    • Ubuntu系列
  • Grafana监控方案

    • Ambari-Metrics插件
    • Infinity插件
  • 支持&共建

    • 蓝图愿景
    • 合作共建
登陆
GitHub (opens new window)

JaneTTR

数据酿造智慧,每一滴都是沉淀!
首页
  • 部署专题

    • 常规安装
    • 一键部署
  • 组件专题

    • 安装教程
    • 魔改分享
  • 版本专题

    • 更新说明
    • BUG临时处理
  • Ambari-Env

    • 环境准备
    • 开始使用
  • 组件编译

    • 专区—Ambari
    • 专区—Bigtop-官方组件
    • 专区—Bigtop-扩展组件
  • 报错解决

    • 专区—Ambari
    • 专区—Bigtop
  • 其他技巧

    • APT仓库增量更新
    • Maven镜像加速
    • Gradle镜像加速
    • Bower镜像加速
    • 虚拟环境思路
    • R环境安装+一键安装脚本
    • Ivy配置私有镜像仓库
    • Node.js 多版本共存方案
    • Ambari Web本地启动
    • Npm镜像加速
    • PostgreSQL快速安装
    • Temurin JDK 23快速安装
  • 成神之路

    • 专区—Ambari
    • 专区—Ambari-Metrics
    • 专区—Bigtop
  • 集成案例

    • Redis集成教学
    • Dolphin集成教学
    • Doris集成教学
    • 持续整理...
  • 核心代码

    • 各组件代码
    • 通用代码模板
  • 国产化&其他系统

    • Rocky系列
    • Ubuntu系列
  • Grafana监控方案

    • Ambari-Metrics插件
    • Infinity插件
  • 支持&共建

    • 蓝图愿景
    • 合作共建
登陆
GitHub (opens new window)
  • Sqoop编译

  • Ranger编译

  • Phoenix编译

  • Dolphinscheduler编译

  • Doris编译

    • version-2.1.7

      • Doris_2.1.7 编译
      • [O] Doris 版本适配改造(一)
        • 1. 背景与目标
        • 2. 环境准备
        • 3. 核心改造思路与 diff 精解
          • 3.1 统一代理变量声明
          • 3.2 所有依赖源批量切换国内镜像
          • 3.3 测试与构建脚本同步加速
          • 3.4 调试参数优化
        • 4. 完整 diff 见下方:
      • [O] Doris 版本适配改造(二)
      • [B] Doris 版本适配改造(一)
      • [B] Doris 版本适配改造(二)
      • [B] Doris 版本适配改造(三)
  • Cloudbeaver编译

  • Atlas编译

  • Superset编译

  • Celeborn编译

  • Ozone编译

  • Impala编译

  • Trino编译

  • Paimon编译

  • Hudi编译

  • 组件编译-Bigtop-增强
  • Doris编译
  • version-2.1.7
JaneTTR
2025-05-06
目录

[O] Doris 版本适配改造(一)

# 1. 背景与目标

Doris 组件源码编译过程中,第三方依赖包分布于 GitHub、Apache 等国外源。国内环境常见痛点 依赖下载极易失败,严重影响自动化 CI 与日常开发体验。 为此,本次适配通过“统一代理变量+批量替换依赖源”的方式,大幅提升依赖拉取速度与构建稳定性。

提示

镜像加速改造,是提升大数据组件国产化适配的关键一环。本文详细拆解 Doris 编译加速的全流程和注意事项。


# 2. 环境准备

Doris 构建对基础环境有如下要求:

组件 推荐版本 说明 安装参考
JDK 1.8+ 需支持 OpenJDK JDK 一键安装
Maven 3.8+ 国内建议配置阿里云源 Maven 一键安装
Gradle 5.6+ Doris 构建脚本已内置 Gradle 一键安装

笔记

如有依赖环境未安装,请直接参考本站其他文章,不仅有详细步骤,还有自动化脚本助力部署。

# 3. 核心改造思路与 diff 精解

# 3.1 统一代理变量声明

diff 首先在 thirdparty/vars.sh 增加两个关键代理变量:

export GH_PROXY="https://ghgo.xyz/"
export HW_PROXY="https://mirrors.huaweicloud.com/apache/"
1
2
推荐做法这样配置后,后续只需通过变量切换即可自如适配不同加速源。

# 3.2 所有依赖源批量切换国内镜像

通过全局搜索与批量替换,将所有依赖下载地址改为拼接代理变量:

依赖类型 原始地址 优化后示例
Github https://github.com/xxx/yyy/archive/xxx.tar.gz (opens new window) ${GH_PROXY}https://github.com/xxx/yyy/archive/xxx.tar.gz (opens new window)
Apache项目 http://archive.apache.org/dist/xxx (opens new window) ${HW_PROXY}/xxx
批量替换常见如 LIBEVENT、GLOG、ROCKSDB、PROTOBUF 等都应替换,保证加速全覆盖。

# 3.3 测试与构建脚本同步加速

run-be-ut.sh、build.sh 等涉及下载第三方源码的模块,也要同步替换 update_submodule 的依赖源:

-update_submodule "be/src/apache-orc" "apache-orc" "https://github.com/apache/doris-thirdparty/archive/refs/heads/orc.tar.gz"
+update_submodule "be/src/apache-orc" "apache-orc" "https://ghgo.xyz/https://github.com/apache/doris-thirdparty/archive/refs/heads/orc.tar.gz"
1
2

注意

务必全局排查,不要遗漏 UT、构建、CI/CD、测试等各类 shell 脚本中的直链依赖。

# 3.4 调试参数优化

在 build.sh 脚本顶端,增加 -x 参数,让 bash 输出每一步执行内容,方便问题定位:

-set -eo pipefail
+set -exo pipefail
1
2
强烈推荐任何疑难杂症都能更快定位出错环节。

# 4. 完整 diff 见下方:

Subject: [PATCH] optimized: 对github 下载进行提速
---
Index: thirdparty/vars.sh
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/thirdparty/vars.sh b/thirdparty/vars.sh
--- a/thirdparty/vars.sh	(revision 9b07e9c2ca57531f4b58ed10cf82de09be69655e)
+++ b/thirdparty/vars.sh	(date 1735808607965)
@@ -46,6 +46,9 @@
 # all java libraries will be unpacked to here
 export TP_JAR_DIR="${TP_INSTALL_DIR}/lib/jar"
 
+exprot GH_PROXY="https://ghgo.xyz/"
+exprot HW_PROXY="https://mirrors.huaweicloud.com/apache/"
+
 # source of all dependencies, default unuse it
 # export REPOSITORY_URL=
 
@@ -55,56 +58,56 @@
 #####################################################
 
 # libevent
-LIBEVENT_DOWNLOAD="https://github.com/libevent/libevent/archive/release-2.1.12-stable.tar.gz"
+LIBEVENT_DOWNLOAD=${GH_PROXY}"https://github.com/libevent/libevent/archive/release-2.1.12-stable.tar.gz"
 LIBEVENT_NAME=libevent-release-2.1.12-stable.tar.gz
 LIBEVENT_SOURCE=libevent-release-2.1.12-stable
 LIBEVENT_MD5SUM="0d5a27436bf7ff8253420c8cf09f47ca"
 
 # openssl
-OPENSSL_DOWNLOAD="https://github.com/openssl/openssl/archive/OpenSSL_1_1_1s.tar.gz"
+OPENSSL_DOWNLOAD=${GH_PROXY}"https://github.com/openssl/openssl/archive/OpenSSL_1_1_1s.tar.gz"
 OPENSSL_NAME=openssl-OpenSSL_1_1_1s.tar.gz
 OPENSSL_SOURCE=openssl-OpenSSL_1_1_1s
 OPENSSL_MD5SUM="7e79a7560dee77c0758baa33c61af4b4"
 
 # thrift
-THRIFT_DOWNLOAD="http://archive.apache.org/dist/thrift/0.16.0/thrift-0.16.0.tar.gz"
+THRIFT_DOWNLOAD=${HW_PROXY}"/thrift/0.16.0/thrift-0.16.0.tar.gz"
 THRIFT_NAME=thrift-0.16.0.tar.gz
 THRIFT_SOURCE=thrift-0.16.0
 THRIFT_MD5SUM="44cf1b54b4ec1890576c85804acfa637"
 
 # protobuf
 # brpc is not yet compatible with protobuf >= 22
-PROTOBUF_DOWNLOAD="https://github.com/protocolbuffers/protobuf/releases/download/v21.11/protobuf-all-21.11.tar.gz"
+PROTOBUF_DOWNLOAD=${GH_PROXY}"https://github.com/protocolbuffers/protobuf/releases/download/v21.11/protobuf-all-21.11.tar.gz"
 PROTOBUF_NAME="protobuf-all-21.11.tar.gz"
 PROTOBUF_SOURCE=protobuf-21.11
 PROTOBUF_MD5SUM="b3b104f0374802e1add5d5d7a5a845ac"
 
 # gflags
-GFLAGS_DOWNLOAD="https://github.com/gflags/gflags/archive/v2.2.2.tar.gz"
+GFLAGS_DOWNLOAD=${GH_PROXY}"https://github.com/gflags/gflags/archive/v2.2.2.tar.gz"
 GFLAGS_NAME=gflags-2.2.2.tar.gz
 GFLAGS_SOURCE=gflags-2.2.2
 GFLAGS_MD5SUM="1a865b93bacfa963201af3f75b7bd64c"
 
 # glog
-GLOG_DOWNLOAD="https://github.com/google/glog/archive/refs/tags/v0.6.0.tar.gz"
+GLOG_DOWNLOAD=${GH_PROXY}"https://github.com/google/glog/archive/refs/tags/v0.6.0.tar.gz"
 GLOG_NAME="glog-v0.6.0.tar.gz"
 GLOG_SOURCE=glog-0.6.0
 GLOG_MD5SUM="c98a6068bc9b8ad9cebaca625ca73aa2"
 
 # gtest
-GTEST_DOWNLOAD="https://github.com/google/googletest/archive/release-1.11.0.tar.gz"
+GTEST_DOWNLOAD=${GH_PROXY}"https://github.com/google/googletest/archive/release-1.11.0.tar.gz"
 GTEST_NAME=googletest-release-1.11.0.tar.gz
 GTEST_SOURCE=googletest-release-1.11.0
 GTEST_MD5SUM="e8a8df240b6938bb6384155d4c37d937"
 
 # snappy
-SNAPPY_DOWNLOAD="https://github.com/google/snappy/archive/1.1.8.tar.gz"
+SNAPPY_DOWNLOAD=${GH_PROXY}"https://github.com/google/snappy/archive/1.1.8.tar.gz"
 SNAPPY_NAME=snappy-1.1.8.tar.gz
 SNAPPY_SOURCE=snappy-1.1.8
 SNAPPY_MD5SUM="70e48cba7fecf289153d009791c9977f"
 
 # gperftools
-GPERFTOOLS_DOWNLOAD="https://github.com/gperftools/gperftools/releases/download/gperftools-2.10/gperftools-2.10.tar.gz"
+GPERFTOOLS_DOWNLOAD=${GH_PROXY}"https://github.com/gperftools/gperftools/releases/download/gperftools-2.10/gperftools-2.10.tar.gz"
 GPERFTOOLS_NAME=gperftools-2.10.tar.gz
 GPERFTOOLS_SOURCE=gperftools-2.10
 GPERFTOOLS_MD5SUM="62bf6c76ba855ed580de5e139bd2a483"
@@ -116,7 +119,7 @@
 ZLIB_MD5SUM="1c9f62f0778697a09d36121ead88e08e"
 
 # lz4
-LZ4_DOWNLOAD="https://github.com/lz4/lz4/archive/v1.9.4.tar.gz"
+LZ4_DOWNLOAD=${GH_PROXY}"https://github.com/lz4/lz4/archive/v1.9.4.tar.gz"
 LZ4_NAME=lz4-1.9.4.tar.gz
 LZ4_SOURCE=lz4-1.9.4
 LZ4_MD5SUM="e9286adb64040071c5e23498bf753261"
@@ -134,7 +137,7 @@
 LZO2_MD5SUM="39d3f3f9c55c87b1e5d6888e1420f4b5"
 
 # rapidjson
-RAPIDJSON_DOWNLOAD="https://github.com/Tencent/rapidjson/archive/1a803826f1197b5e30703afe4b9c0e7dd48074f5.zip"
+RAPIDJSON_DOWNLOAD=${GH_PROXY}"https://github.com/Tencent/rapidjson/archive/1a803826f1197b5e30703afe4b9c0e7dd48074f5.zip"
 RAPIDJSON_NAME=rapidjson-1a803826f1197b5e30703afe4b9c0e7dd48074f5.zip
 RAPIDJSON_SOURCE=rapidjson-1a803826f1197b5e30703afe4b9c0e7dd48074f5
 RAPIDJSON_MD5SUM="f2212a77e055a15501477f1e390007ea"
@@ -146,13 +149,13 @@
 CURL_MD5SUM="b25588a43556068be05e1624e0e74d41"
 
 # RE2
-RE2_DOWNLOAD="https://github.com/google/re2/archive/2021-02-02.tar.gz"
+RE2_DOWNLOAD=${GH_PROXY}"https://github.com/google/re2/archive/2021-02-02.tar.gz"
 RE2_NAME=re2-2021-02-02.tar.gz
 RE2_SOURCE=re2-2021-02-02
 RE2_MD5SUM="48bc665463a86f68243c5af1bac75cd0"
 
 # hyperscan
-HYPERSCAN_DOWNLOAD="https://github.com/intel/hyperscan/archive/refs/tags/v5.4.2.tar.gz"
+HYPERSCAN_DOWNLOAD=${GH_PROXY}"https://github.com/intel/hyperscan/archive/refs/tags/v5.4.2.tar.gz"
 HYPERSCAN_NAME=hyperscan-5.4.2.tar.gz
 HYPERSCAN_SOURCE=hyperscan-5.4.2
 HYPERSCAN_MD5SUM="202f4b42f5dd4a7bb2506445e51a33b9"
@@ -161,7 +164,7 @@
 MACHINE_TYPE=$(uname -m)
 if [[ "${MACHINE_TYPE}" == "aarch64" || "${MACHINE_TYPE}" == 'arm64' ]]; then
     echo "use vectorscan instead of hyperscan on aarch64"
-    HYPERSCAN_DOWNLOAD="https://github.com/VectorCamp/vectorscan/archive/refs/tags/vectorscan/5.4.11.tar.gz"
+    HYPERSCAN_DOWNLOAD=${GH_PROXY}"https://github.com/VectorCamp/vectorscan/archive/refs/tags/vectorscan/5.4.11.tar.gz"
     HYPERSCAN_NAME=vectorscan-5.4.11.tar.gz
     HYPERSCAN_SOURCE=vectorscan-vectorscan-5.4.11
     HYPERSCAN_MD5SUM="e67b70403cba6c1654a9fef4fd15a2f2"
@@ -180,7 +183,7 @@
 BOOST_MD5SUM="4bf02e84afb56dfdccd1e6aec9911f4b"
 
 # mysql
-MYSQL_DOWNLOAD="https://github.com/mysql/mysql-server/archive/mysql-5.7.18.tar.gz"
+MYSQL_DOWNLOAD=${GH_PROXY}"https://github.com/mysql/mysql-server/archive/mysql-5.7.18.tar.gz"
 MYSQL_NAME=mysql-5.7.18.tar.gz
 MYSQL_SOURCE=mysql-server-mysql-5.7.18
 MYSQL_MD5SUM="58598b10dce180e4d1fbdd7cf5fa68d6"
@@ -192,134 +195,134 @@
 ODBC_MD5SUM="274a711b0c77394e052db6493840c6f9"
 
 # leveldb
-LEVELDB_DOWNLOAD="https://github.com/google/leveldb/archive/refs/tags/1.23.tar.gz"
+LEVELDB_DOWNLOAD=${GH_PROXY}"https://github.com/google/leveldb/archive/refs/tags/1.23.tar.gz"
 LEVELDB_NAME=leveldb-1.23.tar.gz
 LEVELDB_SOURCE=leveldb-1.23
 LEVELDB_MD5SUM="afbde776fb8760312009963f09a586c7"
 
 # brpc
-BRPC_DOWNLOAD="https://github.com/apache/brpc/archive/refs/tags/1.4.0.tar.gz"
+BRPC_DOWNLOAD=${GH_PROXY}"https://github.com/apache/brpc/archive/refs/tags/1.4.0.tar.gz"
 BRPC_NAME="brpc-1.4.0.tar.gz"
 BRPC_SOURCE="brpc-1.4.0"
 BRPC_MD5SUM="6af9d50822c33a3abc56a1ec0af0e0bc"
 
 # rocksdb
-ROCKSDB_DOWNLOAD="https://github.com/facebook/rocksdb/archive/v5.14.2.tar.gz"
+ROCKSDB_DOWNLOAD=${GH_PROXY}"https://github.com/facebook/rocksdb/archive/v5.14.2.tar.gz"
 ROCKSDB_NAME=rocksdb-5.14.2.tar.gz
 ROCKSDB_SOURCE=rocksdb-5.14.2
 ROCKSDB_MD5SUM="b72720ea3b1e9ca9e4ed0febfef65b14"
 
 # cyrus-sasl
-CYRUS_SASL_DOWNLOAD="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-2.1.27/cyrus-sasl-2.1.27.tar.gz"
+CYRUS_SASL_DOWNLOAD=${GH_PROXY}"https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-2.1.27/cyrus-sasl-2.1.27.tar.gz"
 CYRUS_SASL_NAME=cyrus-sasl-2.1.27.tar.gz
 CYRUS_SASL_SOURCE=cyrus-sasl-2.1.27
 CYRUS_SASL_MD5SUM="a33820c66e0622222c5aefafa1581083"
 
 # librdkafka-1.9.2
-LIBRDKAFKA_DOWNLOAD="https://github.com/edenhill/librdkafka/archive/v1.9.2.tar.gz"
+LIBRDKAFKA_DOWNLOAD=${GH_PROXY}"https://github.com/edenhill/librdkafka/archive/v1.9.2.tar.gz"
 LIBRDKAFKA_NAME=librdkafka-1.9.2.tar.gz
 LIBRDKAFKA_SOURCE=librdkafka-1.9.2
 LIBRDKAFKA_MD5SUM="fe9624e905abbf8324b0f6be520d9c24"
 
 # zstd
-ZSTD_DOWNLOAD="https://github.com/facebook/zstd/releases/download/v1.5.5/zstd-1.5.5.tar.gz"
+ZSTD_DOWNLOAD=${GH_PROXY}"https://github.com/facebook/zstd/releases/download/v1.5.5/zstd-1.5.5.tar.gz"
 ZSTD_NAME=zstd-1.5.5.tar.gz
 ZSTD_SOURCE=zstd-1.5.5
 ZSTD_MD5SUM="63251602329a106220e0a5ad26ba656f"
 
 # brotli
-BROTLI_DOWNLOAD="https://github.com/google/brotli/archive/v1.0.9.tar.gz"
+BROTLI_DOWNLOAD=${GH_PROXY}"https://github.com/google/brotli/archive/v1.0.9.tar.gz"
 BROTLI_NAME="brotli-1.0.9.tar.gz"
 BROTLI_SOURCE="brotli-1.0.9"
 BROTLI_MD5SUM="c2274f0c7af8470ad514637c35bcee7d"
 
 # flatbuffers
-FLATBUFFERS_DOWNLOAD="https://github.com/google/flatbuffers/archive/v2.0.0.tar.gz"
+FLATBUFFERS_DOWNLOAD=${GH_PROXY}"https://github.com/google/flatbuffers/archive/v2.0.0.tar.gz"
 FLATBUFFERS_NAME=flatbuffers-2.0.0.tar.gz
 FLATBUFFERS_SOURCE=flatbuffers-2.0.0
 FLATBUFFERS_MD5SUM="a27992324c3cbf86dd888268a23d17bd"
 
 # c-ares
-CARES_DOWNLOAD="https://github.com/c-ares/c-ares/releases/download/cares-1_19_1/c-ares-1.19.1.tar.gz"
+CARES_DOWNLOAD=${GH_PROXY}"https://github.com/c-ares/c-ares/releases/download/cares-1_19_1/c-ares-1.19.1.tar.gz"
 CARES_NAME="c-ares-1.19.1.tar.gz"
 CARES_SOURCE=c-ares-1.19.1
 CARES_MD5SUM="dafc5825a92dc907e144570e4e75a908"
 
 # grpc
 # grpc v1.55 and above require protobuf >= 22
-GRPC_DOWNLOAD="https://github.com/grpc/grpc/archive/refs/tags/v1.54.3.tar.gz"
+GRPC_DOWNLOAD=${GH_PROXY}"https://github.com/grpc/grpc/archive/refs/tags/v1.54.3.tar.gz"
 GRPC_NAME="grpc-v1.54.3.tar.gz"
 GRPC_SOURCE=grpc-1.54.3
 GRPC_MD5SUM="af00a2edeae0f02bb25917cc3473b7de"
 
 # arrow
-ARROW_DOWNLOAD="https://github.com/apache/arrow/archive/refs/tags/apache-arrow-17.0.0.tar.gz"
+ARROW_DOWNLOAD=${GH_PROXY}"https://github.com/apache/arrow/archive/refs/tags/apache-arrow-17.0.0.tar.gz"
 ARROW_NAME="apache-arrow-17.0.0.tar.gz"
 ARROW_SOURCE="arrow-apache-arrow-17.0.0"
 ARROW_MD5SUM="ba18bf83e2164abd34b9ac4cb164f0f0"
 
 # Abseil
-ABSEIL_DOWNLOAD="https://github.com/abseil/abseil-cpp/archive/refs/tags/20230125.3.tar.gz"
+ABSEIL_DOWNLOAD=${GH_PROXY}"https://github.com/abseil/abseil-cpp/archive/refs/tags/20230125.3.tar.gz"
 ABSEIL_NAME="abseil-cpp-20230125.3.tar.gz"
 ABSEIL_SOURCE=abseil-cpp-20230125.3
 ABSEIL_MD5SUM="9b6dae642c4bd92f007ab2c148bc0498"
 
 # S2
-S2_DOWNLOAD="https://github.com/google/s2geometry/archive/refs/tags/v0.10.0.tar.gz"
+S2_DOWNLOAD=${GH_PROXY}"https://github.com/google/s2geometry/archive/refs/tags/v0.10.0.tar.gz"
 S2_NAME=s2geometry-0.10.0.tar.gz
 S2_SOURCE=s2geometry-0.10.0
 S2_MD5SUM="c68f3c5d326dde9255681b9201393a9f"
 
 # bitshuffle
-BITSHUFFLE_DOWNLOAD="https://github.com/kiyo-masui/bitshuffle/archive/0.5.1.tar.gz"
+BITSHUFFLE_DOWNLOAD=${GH_PROXY}"https://github.com/kiyo-masui/bitshuffle/archive/0.5.1.tar.gz"
 BITSHUFFLE_NAME=bitshuffle-0.5.1.tar.gz
 BITSHUFFLE_SOURCE=bitshuffle-0.5.1
 BITSHUFFLE_MD5SUM="b3bf6a9838927f7eb62214981c138e2f"
 
 # croaringbitmap
-CROARINGBITMAP_DOWNLOAD="https://github.com/RoaringBitmap/CRoaring/archive/refs/tags/v2.1.2.tar.gz"
+CROARINGBITMAP_DOWNLOAD=${GH_PROXY}"https://github.com/RoaringBitmap/CRoaring/archive/refs/tags/v2.1.2.tar.gz"
 CROARINGBITMAP_NAME=CRoaring-2.1.2.tar.gz
 CROARINGBITMAP_SOURCE=CRoaring-2.1.2
 CROARINGBITMAP_MD5SUM="419bfbafdf93e9a7e6cdc234454908fc"
 
 # fmt
-FMT_DOWNLOAD="https://github.com/fmtlib/fmt/archive/7.1.3.tar.gz"
+FMT_DOWNLOAD=${GH_PROXY}"https://github.com/fmtlib/fmt/archive/7.1.3.tar.gz"
 FMT_NAME="fmt-7.1.3.tar.gz"
 FMT_SOURCE="fmt-7.1.3"
 FMT_MD5SUM="2522ec65070c0bda0ca288677ded2831"
 
 # parallel-hashmap
-PARALLEL_HASHMAP_DOWNLOAD="https://github.com/greg7mdp/parallel-hashmap/archive/refs/tags/v1.3.8.tar.gz"
+PARALLEL_HASHMAP_DOWNLOAD=${GH_PROXY}"https://github.com/greg7mdp/parallel-hashmap/archive/refs/tags/v1.3.8.tar.gz"
 PARALLEL_HASHMAP_NAME="parallel-hashmap-1.3.8.tar.gz"
 PARALLEL_HASHMAP_SOURCE="parallel-hashmap-1.3.8"
 PARALLEL_HASHMAP_MD5SUM="1b8130d0b4f656257ef654699bfbf941"
 
 # orc
-ORC_DOWNLOAD="https://archive.apache.org/dist/orc/orc-1.9.0/orc-1.9.0.tar.gz"
+ORC_DOWNLOAD=${HW_PROXY}"/orc/orc-1.9.0/orc-1.9.0.tar.gz"
 ORC_NAME="orc-1.9.0.tar.gz"
 ORC_SOURCE=orc-1.9.0
 ORC_MD5SUM="5dc1c91c4867e4519aab531ffc30fab7"
 
 # jemalloc for arrow
-JEMALLOC_ARROW_DOWNLOAD="https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2"
+JEMALLOC_ARROW_DOWNLOAD=${GH_PROXY}"https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2"
 JEMALLOC_ARROW_NAME="jemalloc-5.3.0.tar.bz2"
 JEMALLOC_ARROW_SOURCE="jemalloc-5.3.0"
 JEMALLOC_ARROW_MD5SUM="09a8328574dab22a7df848eae6dbbf53"
 
 # jemalloc for doris
-JEMALLOC_DORIS_DOWNLOAD="https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2"
+JEMALLOC_DORIS_DOWNLOAD=${GH_PROXY}"https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2"
 JEMALLOC_DORIS_NAME="jemalloc-5.3.0.tar.bz2"
 JEMALLOC_DORIS_SOURCE="jemalloc-5.3.0"
 JEMALLOC_DORIS_MD5SUM="09a8328574dab22a7df848eae6dbbf53"
 
 # libunwind
-LIBUNWIND_DOWNLOAD="https://github.com/libunwind/libunwind/releases/download/v1.6.2/libunwind-1.6.2.tar.gz"
+LIBUNWIND_DOWNLOAD=${GH_PROXY}"https://github.com/libunwind/libunwind/releases/download/v1.6.2/libunwind-1.6.2.tar.gz"
 LIBUNWIND_NAME="libunwind-1.6.2.tar.gz"
 LIBUNWIND_SOURCE="libunwind-1.6.2"
 LIBUNWIND_MD5SUM="f625b6a98ac1976116c71708a73dc44a"
 
 # cctz
-CCTZ_DOWNLOAD="https://github.com/google/cctz/archive/v2.3.tar.gz"
+CCTZ_DOWNLOAD=${GH_PROXY}"https://github.com/google/cctz/archive/v2.3.tar.gz"
 CCTZ_NAME="cctz-2.3.tar.gz"
 CCTZ_SOURCE="cctz-2.3"
 CCTZ_MD5SUM="209348e50b24dbbdec6d961059c2fc92"
@@ -328,7 +331,7 @@
 # The origin download url is always changing: https://datatables.net/download/builder?bs-3.3.7/jq-3.3.1/dt-1.10.25
 # So we put it in our own http server.
 # If someone can offer an official url for DataTables, please update this.
-DATATABLES_DOWNLOAD="https://github.com/apache/doris-thirdparty/releases/download/datatables-1.12.1/DataTables.zip"
+DATATABLES_DOWNLOAD=${GH_PROXY}"https://github.com/apache/doris-thirdparty/releases/download/datatables-1.12.1/DataTables.zip"
 DATATABLES_NAME="DataTables.zip"
 DATATABLES_SOURCE="DataTables-1.12.1"
 DATATABLES_MD5SUM="a3dd92a2a8b7254443e102a43036d743"
@@ -346,7 +349,7 @@
 BOOTSTRAP_TABLE_CSS_MD5SUM="23389d4456da412e36bae30c469a766a"
 
 # aws sdk
-AWS_SDK_DOWNLOAD="https://github.com/aws/aws-sdk-cpp/archive/refs/tags/1.11.119.tar.gz"
+AWS_SDK_DOWNLOAD=${GH_PROXY}"https://github.com/aws/aws-sdk-cpp/archive/refs/tags/1.11.119.tar.gz"
 AWS_SDK_NAME="aws-sdk-cpp-1.11.119.tar.gz"
 AWS_SDK_SOURCE="aws-sdk-cpp-1.11.119"
 AWS_SDK_MD5SUM="3cd8bd51d39dc207a243a2074d11f439"
@@ -358,7 +361,7 @@
 TSAN_HEADER_MD5SUM="d72679bea167d6a513d959f5abd149dc"
 
 # lzma
-LZMA_DOWNLOAD="https://github.com/kobolabs/liblzma/archive/refs/heads/master.zip"
+LZMA_DOWNLOAD=${GH_PROXY}"https://github.com/kobolabs/liblzma/archive/refs/heads/master.zip"
 LZMA_NAME="liblzma-master.zip"
 LZMA_SOURCE="liblzma-master"
 LZMA_MD5SUM="ef11f2fbbfa6893b629f207a32bf730e"
@@ -388,44 +391,44 @@
 KRB5_MD5SUM="aaf18447a5a014aa3b7e81814923f4c9"
 
 # hdfs3
-HDFS3_DOWNLOAD="https://github.com/apache/doris-thirdparty/archive/refs/tags/libhdfs3-v2.3.9.tar.gz"
+HDFS3_DOWNLOAD=${GH_PROXY}"https://github.com/apache/doris-thirdparty/archive/refs/tags/libhdfs3-v2.3.9.tar.gz"
 HDFS3_NAME="doris-thirdparty-libhdfs3-v2.3.9.tar.gz"
 HDFS3_SOURCE="doris-thirdparty-libhdfs3-v2.3.9"
 HDFS3_MD5SUM="b3eaa03e5b184521e5ad5bf6cabea97e"
 
 #libdivide
-LIBDIVIDE_DOWNLOAD="https://github.com/ridiculousfish/libdivide/archive/5.0.tar.gz"
+LIBDIVIDE_DOWNLOAD=${GH_PROXY}"https://github.com/ridiculousfish/libdivide/archive/5.0.tar.gz"
 LIBDIVIDE_NAME="libdivide-5.0.tar.gz"
 LIBDIVIDE_SOURCE="libdivide-5.0"
 LIBDIVIDE_MD5SUM="7fd16b0bb4ab6812b2e2fdc7bfb81641"
 
 #pdqsort
-PDQSORT_DOWNLOAD="https://raw.githubusercontent.com/orlp/pdqsort/b1ef26a55cdb60d236a5cb199c4234c704f46726/pdqsort.h"
+PDQSORT_DOWNLOAD=${GH_PROXY}"https://raw.githubusercontent.com/orlp/pdqsort/b1ef26a55cdb60d236a5cb199c4234c704f46726/pdqsort.h"
 PDQSORT_NAME="pdqsort.h"
 PDQSORT_FILE="pdqsort.h"
 PDQSORT_MD5SUM="af28f79d5d7d7a5486f54d9f1244c2b5"
 
 # benchmark
-BENCHMARK_DOWNLOAD="https://github.com/google/benchmark/archive/refs/tags/v1.8.0.tar.gz"
+BENCHMARK_DOWNLOAD=${GH_PROXY}"https://github.com/google/benchmark/archive/refs/tags/v1.8.0.tar.gz"
 BENCHMARK_NAME=benchmark-v1.8.0.tar.gz
 BENCHMARK_SOURCE=benchmark-1.8.0
 BENCHMARK_MD5SUM="8ddf8571d3f6198d37852bcbd964f817"
 
 # xsimd
 # for arrow-17.0.0, if arrow upgrade, this version may also need to be changed
-XSIMD_DOWNLOAD="https://github.com/xtensor-stack/xsimd/archive/refs/tags/13.0.0.tar.gz"
+XSIMD_DOWNLOAD=${GH_PROXY}"https://github.com/xtensor-stack/xsimd/archive/refs/tags/13.0.0.tar.gz"
 XSIMD_NAME="13.0.0.tar.gz"
 XSIMD_SOURCE=xsimd-13.0.0
 XSIMD_MD5SUM="c661deb91836e82d3070f81032014fe6"
 
 # simdjson
-SIMDJSON_DOWNLOAD="https://github.com/simdjson/simdjson/archive/refs/tags/v3.0.1.tar.gz"
+SIMDJSON_DOWNLOAD=${GH_PROXY}"https://github.com/simdjson/simdjson/archive/refs/tags/v3.0.1.tar.gz"
 SIMDJSON_NAME=simdjson-3.0.1.tar.gz
 SIMDJSON_SOURCE=simdjson-3.0.1
 SIMDJSON_MD5SUM="993576b47249f2bade2bfb2552b2896a"
 
 # nlohmann_json
-NLOHMANN_JSON_DOWNLOAD="https://github.com/nlohmann/json/archive/refs/tags/v3.10.1.tar.gz"
+NLOHMANN_JSON_DOWNLOAD=${GH_PROXY}"https://github.com/nlohmann/json/archive/refs/tags/v3.10.1.tar.gz"
 NLOHMANN_JSON_NAME=json-3.10.1.tar.gz
 NLOHMANN_JSON_SOURCE=json-3.10.1
 NLOHMANN_JSON_MD5SUM="7b369d567afc0dffdcf5800fd9abb836"
@@ -437,55 +440,55 @@
 LIBBACKTRACE_MD5SUM="6c79a8012870a24610c0d9c3621b23fe"
 
 # sse2noen
-SSE2NEON_DOWNLOAD="https://github.com/DLTcollab/sse2neon/archive/refs/tags/v1.6.0.tar.gz"
+SSE2NEON_DOWNLOAD=${GH_PROXY}"https://github.com/DLTcollab/sse2neon/archive/refs/tags/v1.6.0.tar.gz"
 SSE2NEON_NAME=sse2neon-1.6.0.tar.gz
 SSE2NEON_SOURCE=sse2neon-1.6.0
 SSE2NEON_MD5SUM="dce28eb6a78f45bf98740d5fad73febb"
 
 # xxhash
-XXHASH_DOWNLOAD="https://github.com/Cyan4973/xxHash/archive/refs/tags/v0.8.1.tar.gz"
+XXHASH_DOWNLOAD=${GH_PROXY}"https://github.com/Cyan4973/xxHash/archive/refs/tags/v0.8.1.tar.gz"
 XXHASH_NAME=xxHash-0.8.1.tar.gz
 XXHASH_SOURCE=xxHash-0.8.1
 XXHASH_MD5SUM="b67c587f5ff4894253da0095ba7ea393"
 
 # concurrentqueue
-CONCURRENTQUEUE_DOWNLOAD="https://github.com/cameron314/concurrentqueue/archive/refs/tags/v1.0.3.tar.gz"
+CONCURRENTQUEUE_DOWNLOAD=${GH_PROXY}"https://github.com/cameron314/concurrentqueue/archive/refs/tags/v1.0.3.tar.gz"
 CONCURRENTQUEUE_NAME=concurrentqueue-1.0.3.tar.gz
 CONCURRENTQUEUE_SOURCE=concurrentqueue-1.0.3
 CONCURRENTQUEUE_MD5SUM="118e5bb661b567634647312991e10222"
 
 # fast_float
-FAST_FLOAT_DOWNLOAD="https://github.com/fastfloat/fast_float/archive/refs/tags/v3.9.0.tar.gz"
+FAST_FLOAT_DOWNLOAD=${GH_PROXY}"https://github.com/fastfloat/fast_float/archive/refs/tags/v3.9.0.tar.gz"
 FAST_FLOAT_NAME=fast_float-3.9.0.tar.gz
 FAST_FLOAT_SOURCE=fast_float-3.9.0
 FAST_FLOAT_MD5SUM="5656b0d8b150a3b157cfb092d214f6ea"
 
 # libhdfs
-HADOOP_LIBS_DOWNLOAD="https://github.com/apache/doris-thirdparty/archive/refs/tags/hadoop-3.3.6.3-for-doris.tar.gz"
+HADOOP_LIBS_DOWNLOAD=${GH_PROXY}"https://github.com/apache/doris-thirdparty/archive/refs/tags/hadoop-3.3.6.3-for-doris.tar.gz"
 HADOOP_LIBS_NAME="hadoop-3.3.6.3-for-doris.tar.gz"
 HADOOP_LIBS_SOURCE="doris-thirdparty-hadoop-3.3.6.3-for-doris"
 HADOOP_LIBS_MD5SUM="db91164b8b1d6b347fb9199e6be77fb7"
 
 # AvxToNeon
-AVX2NEON_DOWNLOAD="https://github.com/kunpengcompute/AvxToNeon/archive/refs/tags/v1.0.0.tar.gz"
+AVX2NEON_DOWNLOAD=${GH_PROXY}"https://github.com/kunpengcompute/AvxToNeon/archive/refs/tags/v1.0.0.tar.gz"
 AVX2NEON_NAME=v1.0.0.tar.gz
 AVX2NEON_SOURCE=AvxToNeon-1.0.0
 AVX2NEON_MD5SUM="692d0e0f8b885a86ebc5172a9d8ee8db"
 
 # libdeflate
-LIBDEFLATE_DOWNLOAD="https://github.com/ebiggers/libdeflate/archive/refs/tags/v1.19.tar.gz"
+LIBDEFLATE_DOWNLOAD=${GH_PROXY}"https://github.com/ebiggers/libdeflate/archive/refs/tags/v1.19.tar.gz"
 LIBDEFLATE_NAME=libdeflate-1.19.tar.gz
 LIBDEFLATE_SOURCE=libdeflate-1.19
 LIBDEFLATE_MD5SUM="c69e9193d2975a729068ffa862c81fb6"
 
 # streamvbyte
-STREAMVBYTE_DOWNLOAD="https://github.com/lemire/streamvbyte/archive/refs/tags/v1.0.0.tar.gz"
+STREAMVBYTE_DOWNLOAD=${GH_PROXY}"https://github.com/lemire/streamvbyte/archive/refs/tags/v1.0.0.tar.gz"
 STREAMVBYTE_NAME=streamvbyte-1.0.0.tar.gz
 STREAMVBYTE_SOURCE=streamvbyte-1.0.0
 STREAMVBYTE_MD5SUM="f334219db5a832b6dae3589a56a29563"
 
 # jsoncpp
-JSONCPP_DOWNLOAD="https://github.com/open-source-parsers/jsoncpp/archive/refs/tags/1.9.5.tar.gz"
+JSONCPP_DOWNLOAD=${GH_PROXY}"https://github.com/open-source-parsers/jsoncpp/archive/refs/tags/1.9.5.tar.gz"
 JSONCPP_NAME="1.9.5.tar.gz"
 JSONCPP_SOURCE="jsoncpp-1.9.5"
 JSONCPP_MD5SUM="d6c8c609f2162eff373db62b90a051c7"
@@ -497,13 +500,13 @@
 LIBUUID_MD5SUM="d44d866d06286c08ba0846aba1086d68"
 
 # ali
-ALI_SDK_DOWNLOAD="https://github.com/aliyun/aliyun-openapi-cpp-sdk/archive/refs/tags/1.36.1586.tar.gz"
+ALI_SDK_DOWNLOAD=${GH_PROXY}"https://github.com/aliyun/aliyun-openapi-cpp-sdk/archive/refs/tags/1.36.1586.tar.gz"
 ALI_SDK_NAME="1.36.1586.tar.gz"
 ALI_SDK_SOURCE="aliyun-openapi-cpp-sdk-1.36.1586"
 ALI_SDK_MD5SUM="14623ee8e87c89615477d9bf8cb30bea"
 
 # base64
-BASE64_DOWNLOAD="https://github.com/aklomp/base64/archive/refs/tags/v0.5.2.tar.gz"
+BASE64_DOWNLOAD=${GH_PROXY}"https://github.com/aklomp/base64/archive/refs/tags/v0.5.2.tar.gz"
 BASE64_NAME="v0.5.2.tar.gz"
 BASE64_SOURCE="base64-0.5.2"
 BASE64_MD5SUM="49e5a6c98bd0192aedd16c16eec39974"
Index: run-be-ut.sh
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/run-be-ut.sh b/run-be-ut.sh
--- a/run-be-ut.sh	(revision 9b07e9c2ca57531f4b58ed10cf82de09be69655e)
+++ b/run-be-ut.sh	(date 1736041543486)
@@ -156,8 +156,8 @@
     fi
 }
 
-update_submodule "be/src/apache-orc" "apache-orc" "https://github.com/apache/doris-thirdparty/archive/refs/heads/orc.tar.gz"
-update_submodule "be/src/clucene" "clucene" "https://github.com/apache/doris-thirdparty/archive/refs/heads/clucene.tar.gz"
+update_submodule "be/src/apache-orc" "apache-orc" "https://ghgo.xyz/https://github.com/apache/doris-thirdparty/archive/refs/heads/orc.tar.gz"
+update_submodule "be/src/clucene" "clucene" "https://ghgo.xyz/https://github.com/apache/doris-thirdparty/archive/refs/heads/clucene.tar.gz"
 
 if [[ "_${DENABLE_CLANG_COVERAGE}" == "_ON" ]]; then
     echo "export DORIS_TOOLCHAIN=clang" >>custom_env.sh
Index: build.sh
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/build.sh b/build.sh
--- a/build.sh	(revision 9b07e9c2ca57531f4b58ed10cf82de09be69655e)
+++ b/build.sh	(date 1736132212966)
@@ -25,7 +25,7 @@
 # compiled and installed correctly.
 ##############################################################
 
-set -eo pipefail
+set -exo pipefail
 
 ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
 
@@ -501,8 +501,8 @@
 
 # Clean and build Backend
 if [[ "${BUILD_BE}" -eq 1 ]]; then
-    update_submodule "be/src/apache-orc" "apache-orc" "https://github.com/apache/doris-thirdparty/archive/refs/heads/orc.tar.gz"
-    update_submodule "be/src/clucene" "clucene" "https://github.com/apache/doris-thirdparty/archive/refs/heads/clucene.tar.gz"
+    update_submodule "be/src/apache-orc" "apache-orc" "https://ghgo.xyz/https://github.com/apache/doris-thirdparty/archive/refs/heads/orc.tar.gz"
+    update_submodule "be/src/clucene" "clucene" "https://ghgo.xyz/https://github.com/apache/doris-thirdparty/archive/refs/heads/clucene.tar.gz"
     if [[ -e "${DORIS_HOME}/gensrc/build/gen_cpp/version.h" ]]; then
         rm -f "${DORIS_HOME}/gensrc/build/gen_cpp/version.h"
     fi

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
#Doris#源码编译#镜像加速#构建优化
Doris_2.1.7 编译
[O] Doris 版本适配改造(二)

← Doris_2.1.7 编译 [O] Doris 版本适配改造(二)→

最近更新
01
[/metrics/aggregated] — 聚合数据范围 检查点
09-19
02
[/metrics] — 反向分析接口参数 请求抓包
09-17
03
[/metrics] — 普通指标写入方法 POST
09-17
更多文章>
Theme by Vdoing | Copyright © 2017-2025 JaneTTR | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式