From c41c5f233b7a20622cf6d37a05dc895e7e5d82d7 Mon Sep 17 00:00:00 2001 From: yuqingyang Date: Wed, 24 Jan 2024 12:46:53 +0800 Subject: [PATCH] [KYUUBI #4279] Use new Apache 'closer.lua' syntax for kyuubi-download to obtain engine MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …ne archives # :mag: Description ## Issue References [4279](https://github.com/apache/kyuubi/issues/4279)πŸ”— This pull request fixes # ## Describe Your Solution πŸ”§ Use new Apache 'closer.lua' syntax for kyuubi-download to obtain engine ## Types of changes :bookmark: - [x] New feature (non-breaking change which adds functionality) ## Test Plan πŸ§ͺ #### Behavior Without This Pull Request :coffin: #### Behavior With This Pull Request :tada: #### Related Unit Tests --- # Checklist πŸ“ - [ ] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #6009 from sincewhen/master. Closes #4279 2152a9b92 [yuqingyang] Use new Apache 'closer.lua' syntax for kyuubi-download to obtain engine archives Authored-by: yuqingyang Signed-off-by: Kent Yao --- docs/contributing/code/building.md | 2 +- externals/kyuubi-download/pom.xml | 6 +++--- pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/contributing/code/building.md b/docs/contributing/code/building.md index bfa6a46caed..049d7afb026 100644 --- a/docs/contributing/code/building.md +++ b/docs/contributing/code/building.md @@ -84,7 +84,7 @@ For the Scala version for Spark engines, the server will look up the `SPARK_SCAL ## Building With Apache dlcdn Site -By default, we use `https://archive.apache.org/dist/` to download the built-in release packages of engines, +By default, we use `closer.lua` to download the built-in release packages of engines, such as Spark or Flink. But sometimes, you may find it hard to reach, or the download speed is too slow, then you can define the `apache.archive.dist` by `-Pmirror-cdn` to accelerate to download speed. diff --git a/externals/kyuubi-download/pom.xml b/externals/kyuubi-download/pom.xml index b21e3e5a223..e9ac586295a 100644 --- a/externals/kyuubi-download/pom.xml +++ b/externals/kyuubi-download/pom.xml @@ -51,7 +51,7 @@ compile ${spark.archive.download.skip} - ${spark.archive.mirror}/${spark.archive.name} + ${spark.archive.mirror}/${spark.archive.name}?action=download @@ -62,7 +62,7 @@ compile ${flink.archive.download.skip} - ${flink.archive.mirror}/${flink.archive.name} + ${flink.archive.mirror}/${flink.archive.name}?action=download @@ -73,7 +73,7 @@ compile ${hive.archive.download.skip} - ${hive.archive.mirror}/${hive.archive.name} + ${hive.archive.mirror}/${hive.archive.name}?action=download diff --git a/pom.xml b/pom.xml index 567eb382d16..a04c34ff3a9 100644 --- a/pom.xml +++ b/pom.xml @@ -123,7 +123,7 @@ 4.9.3 4.3.4 - https://archive.apache.org/dist + http://www.apache.org/dyn/closer.lua 2.3.0 1.67 4.2.23