This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch branch-1.2-lts in repository https://gitbox.apache.org/repos/asf/doris.git
commit c6dbc5729f4ae629570623a37efb78a1cc5e5614 Author: Qi Chen <[email protected]> AuthorDate: Mon Jul 3 14:51:34 2023 +0800 [Fix](multi-catalog) Add hadoop system classpath to CLASSPATH to resolve can not enable hadoop short circuit reading in some environments. (#21430) Add hadoop system classpath to CLASSPATH to resolve can not enable hadoop short circuit reading in some environments. --- bin/start_be.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/start_be.sh b/bin/start_be.sh index e0821b2e00..e4bd71a940 100755 --- a/bin/start_be.sh +++ b/bin/start_be.sh @@ -104,7 +104,10 @@ fi # the CLASSPATH and LIBHDFS_OPTS is used for hadoop libhdfs # and conf/ dir so that hadoop libhdfs can read .xml config file in conf/ -export CLASSPATH="${DORIS_HOME}/conf/:${DORIS_CLASSPATH}" +if command -v hadoop >/dev/null 2>&1; then + HADOOP_SYSTEM_CLASSPATH="$(hadoop classpath --glob)" +fi +export CLASSPATH="${HADOOP_SYSTEM_CLASSPATH}:${DORIS_HOME}/conf/:${DORIS_CLASSPATH}" # DORIS_CLASSPATH is for self-managed jni export DORIS_CLASSPATH="-Djava.class.path=${DORIS_CLASSPATH}" --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
