You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/04/12 17:02:57 UTC

[doris] 13/33: [zhongjin] modify start_be and be.conf

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

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

commit 2c11b1cd44c2fc6098f3117262c89cafcbfbd041
Author: morningman <mo...@163.com>
AuthorDate: Wed Apr 5 00:38:51 2023 +0800

    [zhongjin] modify start_be and be.conf
---
 bin/start_be.sh | 11 ++++++-----
 conf/be.conf    |  2 +-
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/bin/start_be.sh b/bin/start_be.sh
index ce33ecf418..169b867789 100644
--- a/bin/start_be.sh
+++ b/bin/start_be.sh
@@ -82,16 +82,16 @@ done
 
 if [[ -d "${DORIS_HOME}/lib/hadoop_hdfs/" ]]; then
     # add hadoop libs
-    for f in "${DORIS_HOME}/lib/hadoop_hdfs/common"/*.jar; do
+    for f in "${DORIS_HOME}/lib/hadoop_tbds/share/hadoop/common"/*.jar; do
         DORIS_CLASSPATH="${f}:${DORIS_CLASSPATH}"
     done
-    for f in "${DORIS_HOME}/lib/hadoop_hdfs/common/lib"/*.jar; do
+    for f in "${DORIS_HOME}/lib/hadoop_tbds/share/hadoop/common/lib"/*.jar; do
         DORIS_CLASSPATH="${f}:${DORIS_CLASSPATH}"
     done
-    for f in "${DORIS_HOME}/lib/hadoop_hdfs/hdfs"/*.jar; do
+    for f in "${DORIS_HOME}/lib/hadoop_tbds/share/hadoop/hdfs"/*.jar; do
         DORIS_CLASSPATH="${f}:${DORIS_CLASSPATH}"
     done
-    for f in "${DORIS_HOME}/lib/hadoop_hdfs/hdfs/lib"/*.jar; do
+    for f in "${DORIS_HOME}/lib/hadoop_tbds/share/hadoop/lib"/*.jar; do
         DORIS_CLASSPATH="${f}:${DORIS_CLASSPATH}"
     done
 fi
@@ -99,8 +99,9 @@ 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}"
+
 # DORIS_CLASSPATH is for self-managed jni
-export DORIS_CLASSPATH="-Djava.class.path=${DORIS_CLASSPATH}"
+export DORIS_CLASSPATH="-Djava.class.path=${CLASSPATH}"
 
 jdk_version() {
     local java_cmd="${1}"
diff --git a/conf/be.conf b/conf/be.conf
index ad9439affc..25e8462d6e 100644
--- a/conf/be.conf
+++ b/conf/be.conf
@@ -18,7 +18,7 @@
 PPROF_TMPDIR="$DORIS_HOME/log/"
 
 CUR_DATE = `date +%Y%m%d-%H%M%S`
-JAVA_OPTS="-Xmx1024m -DlogPath=$DORIS_HOME/log/jni.log -Xlog:gc:$DORIS_HOME/log/be.gc.log.$CUR_DATE -Dsun.java.command=DorisBE -XX:-CriticalJNINatives"
+JAVA_OPTS="-Xmx1024m -DlogPath=$DORIS_HOME/log/jni.log -Xloggc:$DORIS_HOME/log/be.gc.log.$CUR_DATE -Dsun.java.command=DorisBE -XX:-CriticalJNINatives"
 
 # since 1.2, the JAVA_HOME need to be set to run BE process.
 # JAVA_HOME=/path/to/jdk/


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org