Skip to content

Commit

Permalink
HBASE-29000 SLF4j logging backend incorrectly picked up from Hadoop w…
Browse files Browse the repository at this point in the history
…hen external Hadoop is specified (#6495)

Signed-off-by: Nihal Jain <[email protected]>
Signed-off-by: Duo Zhang <[email protected]>
  • Loading branch information
stoty authored Nov 28, 2024
1 parent f9ec1dc commit 7658672
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/hbase
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7658672

Please sign in to comment.