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

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 88b2d81873 [Fix](multi-catalog) Add hadoop system classpath to 
CLASSPATH to resolve can not enable hadoop short circuit reading in some 
environments. (#21430)
88b2d81873 is described below

commit 88b2d818734ffd79f63f1dc0b473eb8709e73b03
Author: Qi Chen <kaka11.c...@gmail.com>
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 bf80f7928b..abcaedf682 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: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to