HBASE-27503 Support replace <FILE-PATH> in GC_OPTS for ZGC (#4892)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 7fc4d99384
)
This commit is contained in:
parent
cf5527be97
commit
843c6fcbc1
|
@ -171,10 +171,10 @@ export HBASE_ZNODE_FILE=$HBASE_PID_DIR/hbase-$HBASE_IDENT_STRING-$command.znode
|
||||||
export HBASE_AUTOSTART_FILE=$HBASE_PID_DIR/hbase-$HBASE_IDENT_STRING-$command.autostart
|
export HBASE_AUTOSTART_FILE=$HBASE_PID_DIR/hbase-$HBASE_IDENT_STRING-$command.autostart
|
||||||
|
|
||||||
if [ -n "$SERVER_GC_OPTS" ]; then
|
if [ -n "$SERVER_GC_OPTS" ]; then
|
||||||
export SERVER_GC_OPTS=${SERVER_GC_OPTS/"-Xloggc:<FILE-PATH>"/"-Xloggc:${HBASE_LOGGC}"}
|
export SERVER_GC_OPTS=${SERVER_GC_OPTS/"<FILE-PATH>"/"${HBASE_LOGGC}"}
|
||||||
fi
|
fi
|
||||||
if [ -n "$CLIENT_GC_OPTS" ]; then
|
if [ -n "$CLIENT_GC_OPTS" ]; then
|
||||||
export CLIENT_GC_OPTS=${CLIENT_GC_OPTS/"-Xloggc:<FILE-PATH>"/"-Xloggc:${HBASE_LOGGC}"}
|
export CLIENT_GC_OPTS=${CLIENT_GC_OPTS/"<FILE-PATH>"/"${HBASE_LOGGC}"}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set default scheduling priority
|
# Set default scheduling priority
|
||||||
|
|
Loading…
Reference in New Issue