Skip to content

Commit 1673546

Browse files
committed
HBASE-29000 SLF4j logging backend incorrectly picked up from Hadoop when external Hadoop is specified (#6495)
Signed-off-by: Nihal Jain <nihaljain@apache.org> Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 7658672)
1 parent 20e510f commit 1673546

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bin/hbase

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,9 +869,10 @@ fi
869869

870870
HEAP_SETTINGS="$JAVA_HEAP_MAX $JAVA_OFFHEAP_MAX"
871871
# by now if we're running a command it means we need logging
872+
# prepend the logging jars to make sure they are before the ones coming from HADOOP_CLASSPATH
872873
for f in ${HBASE_HOME}/lib/client-facing-thirdparty/log4j*.jar; do
873874
if [ -f "${f}" ]; then
874-
CLASSPATH="${CLASSPATH}:${f}"
875+
CLASSPATH="${f}:${CLASSPATH}"
875876
fi
876877
done
877878

0 commit comments

Comments
 (0)