This is an automated email from the ASF dual-hosted git repository.

hellostephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new e598b386686 [improvement](docker) Make thirdparty jar download mirror 
configurable (#62376)
e598b386686 is described below

commit e598b386686ce95a348eca0b186b8cc8ef06edd0
Author: zgxme <[email protected]>
AuthorDate: Fri Apr 17 11:32:43 2026 +0800

    [improvement](docker) Make thirdparty jar download mirror configurable 
(#62376)
    
    ### What problem does this PR solve?
    
    Problem Summary: Allow thirdparty docker components to derive jar
    download URLs from a configurable Maven mirror, so environments that
    cannot access Maven Central can switch to an alternative repository
    without editing multiple hardcoded URLs.
---
 docker/thirdparties/custom_settings.env              | 4 ++++
 docker/thirdparties/docker-compose/hudi/hudi.env.tpl | 8 ++++----
 docker/thirdparties/juicefs-helpers.sh               | 3 ++-
 docker/thirdparties/run-thirdparties-docker.sh       | 4 ++++
 4 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/docker/thirdparties/custom_settings.env 
b/docker/thirdparties/custom_settings.env
index b18f94fd4c1..c39e8531daa 100644
--- a/docker/thirdparties/custom_settings.env
+++ b/docker/thirdparties/custom_settings.env
@@ -23,3 +23,7 @@
 CONTAINER_UID="doris--"
 export s3Endpoint="oss-cn-hongkong.aliyuncs.com"
 export s3BucketName="doris-regression-hk"
+
+# Optional Maven repository override for thirdparty jar downloads.
+# export MAVEN_REPOSITORY_URL="https://maven.aliyun.com/repository/central";
+export 
MAVEN_REPOSITORY_URL="${MAVEN_REPOSITORY_URL:-https://repo1.maven.org/maven2}";
diff --git a/docker/thirdparties/docker-compose/hudi/hudi.env.tpl 
b/docker/thirdparties/docker-compose/hudi/hudi.env.tpl
index 022909856d8..e04012010e9 100644
--- a/docker/thirdparties/docker-compose/hudi/hudi.env.tpl
+++ b/docker/thirdparties/docker-compose/hudi/hudi.env.tpl
@@ -33,18 +33,18 @@ HUDI_BUCKET=datalake
 # Hudi 1.0.2 supports Spark 3.5.x (default), 3.4.x, and 3.3.x
 # Using Spark 3.5 bundle to match Spark 3.5.7 image (default build)
 HUDI_BUNDLE_VERSION=1.0.2
-HUDI_BUNDLE_URL=https://repo1.maven.org/maven2/org/apache/hudi/hudi-spark3.5-bundle_2.12/1.0.2/hudi-spark3.5-bundle_2.12-1.0.2.jar
+HUDI_BUNDLE_URL=${HUDI_BUNDLE_URL}
 
 # Hadoop AWS S3A filesystem (required for S3A support)
 # Note: Version must match Spark's built-in Hadoop version (3.3.4 for Spark 
3.5.7)
 HADOOP_AWS_VERSION=3.3.4
-HADOOP_AWS_URL=https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/3.3.4/hadoop-aws-3.3.4.jar
+HADOOP_AWS_URL=${HADOOP_AWS_URL}
 
 # AWS Java SDK Bundle v1 (required for Hadoop 3.3.4 S3A support)
 # Note: Hadoop 3.3.x uses AWS SDK v1, version 1.12.x is recommended
 AWS_SDK_BUNDLE_VERSION=1.12.262
-AWS_SDK_BUNDLE_URL=https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-bundle/1.12.262/aws-java-sdk-bundle-1.12.262.jar
+AWS_SDK_BUNDLE_URL=${AWS_SDK_BUNDLE_URL}
 
 # PostgreSQL JDBC driver (required for Hive Metastore connection)
 POSTGRESQL_JDBC_VERSION=42.7.1
-POSTGRESQL_JDBC_URL=https://repo1.maven.org/maven2/org/postgresql/postgresql/42.7.1/postgresql-42.7.1.jar
+POSTGRESQL_JDBC_URL=${POSTGRESQL_JDBC_URL}
diff --git a/docker/thirdparties/juicefs-helpers.sh 
b/docker/thirdparties/juicefs-helpers.sh
index 8ea41189ec3..1376e68887e 100644
--- a/docker/thirdparties/juicefs-helpers.sh
+++ b/docker/thirdparties/juicefs-helpers.sh
@@ -19,7 +19,8 @@
 # Shared JuiceFS helper functions used by build and docker scripts.
 
 JUICEFS_DEFAULT_VERSION="${JUICEFS_DEFAULT_VERSION:-1.3.1}"
-JUICEFS_HADOOP_MAVEN_REPO="${JUICEFS_HADOOP_MAVEN_REPO:-https://repo1.maven.org/maven2/io/juicefs/juicefs-hadoop}";
+MAVEN_REPOSITORY_URL="${MAVEN_REPOSITORY_URL:-https://repo1.maven.org/maven2}";
+JUICEFS_HADOOP_MAVEN_REPO="${JUICEFS_HADOOP_MAVEN_REPO:-${MAVEN_REPOSITORY_URL}/io/juicefs/juicefs-hadoop}"
 
 juicefs_find_hadoop_jar_by_globs() {
     local jar_glob=""
diff --git a/docker/thirdparties/run-thirdparties-docker.sh 
b/docker/thirdparties/run-thirdparties-docker.sh
index 974e1b6c5f7..87d4e6c2287 100755
--- a/docker/thirdparties/run-thirdparties-docker.sh
+++ b/docker/thirdparties/run-thirdparties-docker.sh
@@ -624,6 +624,10 @@ start_iceberg() {
 start_hudi() {
     HUDI_DIR=${ROOT}/docker-compose/hudi
     export CONTAINER_UID=${CONTAINER_UID}
+    export 
HUDI_BUNDLE_URL="${HUDI_BUNDLE_URL:-${MAVEN_REPOSITORY_URL}/org/apache/hudi/hudi-spark3.5-bundle_2.12/1.0.2/hudi-spark3.5-bundle_2.12-1.0.2.jar}"
+    export 
HADOOP_AWS_URL="${HADOOP_AWS_URL:-${MAVEN_REPOSITORY_URL}/org/apache/hadoop/hadoop-aws/3.3.4/hadoop-aws-3.3.4.jar}"
+    export 
AWS_SDK_BUNDLE_URL="${AWS_SDK_BUNDLE_URL:-${MAVEN_REPOSITORY_URL}/com/amazonaws/aws-java-sdk-bundle/1.12.262/aws-java-sdk-bundle-1.12.262.jar}"
+    export 
POSTGRESQL_JDBC_URL="${POSTGRESQL_JDBC_URL:-${MAVEN_REPOSITORY_URL}/org/postgresql/postgresql/42.7.1/postgresql-42.7.1.jar}"
     envsubst <"${HUDI_DIR}"/hudi.env.tpl >"${HUDI_DIR}"/hudi.env
     set -a
     . "${HUDI_DIR}"/hudi.env


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to