You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2023/10/08 15:52:34 UTC
[doris] 03/14: [improvement](start script) start script can not set http proxy (#25086)
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 <yu...@gmail.com>
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org