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

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 0498493d3c237032ea38277f43c28fad7eb9b023
Author: yujun <[email protected]>
AuthorDate: Sun Oct 8 10:06:06 2023 +0800

    [improvement](start script) start script can not set http proxy (#25086)
    
    be clone snapshot using http, if set http proxy, then be clone snapshot 
will failed. so the start script forbit set env http proxy.
---
 bin/start_be.sh | 7 +++++++
 bin/start_fe.sh | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/bin/start_be.sh b/bin/start_be.sh
index 273faa5649e..9b102077dcd 100755
--- a/bin/start_be.sh
+++ b/bin/start_be.sh
@@ -209,6 +209,13 @@ if [[ -z "${JAVA_HOME}" ]]; then
     exit 1
 fi
 
+for var in http_proxy HTTP_PROXY https_proxy HTTPS_PROXY; do
+    if [[ -n ${!var} ]]; then
+        echo "env '${var}' = '${!var}', need unset it using 'unset ${var}'"
+        exit 1
+    fi
+done
+
 if [[ ! -d "${LOG_DIR}" ]]; then
     mkdir -p "${LOG_DIR}"
 fi
diff --git a/bin/start_fe.sh b/bin/start_fe.sh
index 9caf6564e6a..1d294ef5e80 100755
--- a/bin/start_fe.sh
+++ b/bin/start_fe.sh
@@ -138,6 +138,13 @@ if [[ ! -x "${JAVA}" ]]; then
     exit 1
 fi
 
+for var in http_proxy HTTP_PROXY https_proxy HTTPS_PROXY; do
+    if [[ -n ${!var} ]]; then
+        echo "env '${var}' = '${!var}', need unset it using 'unset ${var}'"
+        exit 1
+    fi
+done
+
 # get jdk version, return version as an Integer.
 # 1.8 => 8, 13.0 => 13
 jdk_version() {


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

Reply via email to