Skip to content

Commit

Permalink
HBASE-26557 Correct export to set log4j2.formatMsgNoLookups in HBASE_…
Browse files Browse the repository at this point in the history
…OPTS (apache#3941)

Signed-off-by: Sean Busbey <[email protected]>
Signed-off-by: Duo Zhang <[email protected]>
Reviewed-by: Nick Dimiduk <[email protected]>
  • Loading branch information
joshelser authored Dec 14, 2021
1 parent 8bca21b commit a3ff8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/hbase-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export MALLOC_ARENA_MAX=${MALLOC_ARENA_MAX:-4}

# Disable the JNDI. This feature has critical REC vulnerability
# when 2.x <= log4j.version <= 2.14.1
export HBASE_OPTS = "$HBASE_OPTS -Dlog4j2.formatMsgNoLookups=true"
export HBASE_OPTS="$HBASE_OPTS -Dlog4j2.formatMsgNoLookups=true"

# Now having JAVA_HOME defined is required
if [ -z "$JAVA_HOME" ]; then
Expand Down

0 comments on commit a3ff8e4

Please sign in to comment.