This is an automated email from the ASF dual-hosted git repository.
stoty pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new d875c326e58 HBASE-29000 SLF4j logging backend incorrectly picked up
from Hadoop when external Hadoop is specified (#6495)
d875c326e58 is described below
commit d875c326e58baec8b476eb0476ab7d07330f80f0
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 f888352235f..c7425df8429 100755
--- a/bin/hbase
+++ b/bin/hbase
@@ -869,9 +869,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