This is an automated email from the ASF dual-hosted git repository.
stoty pushed a commit to branch branch-2.5
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.5 by this push:
new c345593638e HBASE-29000 SLF4j logging backend incorrectly picked up
from Hadoop when external Hadoop is specified (#6495)
c345593638e is described below
commit c345593638ec5d3f59566210c113ee9cef6a575e
Author: Istvan Toth <[email protected]>
AuthorDate: Thu Nov 28 09:44:47 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]>
(cherry picked from commit 76586721fa8bd2d1d4caae6c74b45b29f0b45c54)
---
bin/hbase | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/hbase b/bin/hbase
index 4863d796369..5b9b8014b5f 100755
--- a/bin/hbase
+++ b/bin/hbase
@@ -832,9 +832,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