Skip to content

Commit

Permalink
[feat][cli] Update bin/bookkeeper script (apache#16905)
Browse files Browse the repository at this point in the history
Allow users to override the default `-Djava.net.preferIPv4Stack=true` config to run Pulsar in IPv6 environment.
  • Loading branch information
MarvinCai authored Nov 10, 2022
1 parent fc2dc92 commit b6f0f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/bookkeeper
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ fi

OPTS="-cp $BOOKIE_CLASSPATH $OPTS"

OPTS="$OPTS $BOOKIE_MEM $BOOKIE_GC $BOOKIE_GC_LOG $BOOKIE_EXTRA_OPTS"

# Disable ipv6 as it can cause issues
OPTS="$OPTS -Djava.net.preferIPv4Stack=true"

OPTS="$OPTS $BOOKIE_MEM $BOOKIE_GC $BOOKIE_GC_LOG $BOOKIE_EXTRA_OPTS"

# log directory & file
BOOKIE_LOG_APPENDER=${BOOKIE_LOG_APPENDER:-"Console"}

Expand Down

0 comments on commit b6f0f91

Please sign in to comment.