This is an automated email from the ASF dual-hosted git repository. morrysnow pushed a commit to branch 2.0.1-rc04-patch in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/2.0.1-rc04-patch by this push: new ce9b23e226 [improvemnt](script) support custom lib dir to save custom libs (#23887) ce9b23e226 is described below commit ce9b23e22647a620a4956fad3a88f87b5f0e9c4f Author: Mingyu Chen <morning...@163.com> AuthorDate: Tue Sep 5 11:54:19 2023 +0800 [improvemnt](script) support custom lib dir to save custom libs (#23887) Sometimes, user need to add some custom libs to the cluster, such lzo.jar, orai18n.jar, etc. In previous, these lib files are places in fe/lib or be/lib. But when upgrading cluster, the lib dir will be replaced by new lib dir, so that all custom libs are lost. In this PR, I add new dir custom_lib for FE and BE, and user can place custom lib files in it. --- 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 09613b3b20..fec1b74281 100755 --- a/bin/start_be.sh +++ b/bin/start_be.sh @@ -107,6 +107,13 @@ if [[ -d "${DORIS_HOME}/lib/hadoop_hdfs/" ]]; then done fi +# add custome_libs to CLASSPATH +if [[ -d "${DORIS_HOME}/custom_lib" ]]; then + for f in "${DORIS_HOME}/custom_lib"/*.jar; do + DORIS_CLASSPATH="${DORIS_CLASSPATH}:${f}" + done +fi + if [[ -n "${HADOOP_CONF_DIR}" ]]; then export DORIS_CLASSPATH="${HADOOP_CONF_DIR}:${DORIS_CLASSPATH}" fi diff --git a/bin/start_fe.sh b/bin/start_fe.sh index 3cdebe8f4b..82d0e78501 100755 --- a/bin/start_fe.sh +++ b/bin/start_fe.sh @@ -176,6 +176,13 @@ for f in "${DORIS_HOME}/lib"/*.jar; do CLASSPATH="${f}:${CLASSPATH}" done +# add custome_libs to CLASSPATH +if [[ -d "${DORIS_HOME}/custom_lib" ]]; then + for f in "${DORIS_HOME}/custom_lib"/*.jar; do + CLASSPATH="${f}:${CLASSPATH}" + done +fi + # make sure the doris-fe.jar is at first order, so that some classed # with same qualified name can be loaded priority from doris-fe.jar CLASSPATH="${DORIS_FE_JAR}:${CLASSPATH}" --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org