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

stoty pushed a commit to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit 094cf78d2d7944ecde6395b90f60348c7e381191
Author: Istvan Toth <[email protected]>
AuthorDate: Thu Nov 28 06:37:16 2024 +0100

    HBASE-29000 SLF4j logging backend incorrectly picked up from Hadoop when 
external Hadoop is specified (#6495)
    
    Signed-off-by: Nihal Jain <[email protected]>
    Signed-off-by: Duo Zhang <[email protected]>
---
 bin/hbase | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/hbase b/bin/hbase
index 68d85d6805f..c562ad8fb3d 100755
--- a/bin/hbase
+++ b/bin/hbase
@@ -804,9 +804,10 @@ fi
 
 HEAP_SETTINGS="$JAVA_HEAP_MAX $JAVA_OFFHEAP_MAX"
 # by now if we're running a command it means we need logging
+# prepend the logging jars to make sure they are before the ones coming from 
HADOOP_CLASSPATH
 for f in ${HBASE_HOME}/lib/client-facing-thirdparty/log4j*.jar; do
   if [ -f "${f}" ]; then
-    CLASSPATH="${CLASSPATH}:${f}"
+    CLASSPATH="${f}:${CLASSPATH}"
   fi
 done
 

Reply via email to