diff --git a/bin/hbase-daemon.sh b/bin/hbase-daemon.sh index 11c13eb5230..598e49c7413 100755 --- a/bin/hbase-daemon.sh +++ b/bin/hbase-daemon.sh @@ -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 if [ -n "$SERVER_GC_OPTS" ]; then - export SERVER_GC_OPTS=${SERVER_GC_OPTS/"-Xloggc:"/"-Xloggc:${HBASE_LOGGC}"} + export SERVER_GC_OPTS=${SERVER_GC_OPTS/""/"${HBASE_LOGGC}"} fi if [ -n "$CLIENT_GC_OPTS" ]; then - export CLIENT_GC_OPTS=${CLIENT_GC_OPTS/"-Xloggc:"/"-Xloggc:${HBASE_LOGGC}"} + export CLIENT_GC_OPTS=${CLIENT_GC_OPTS/""/"${HBASE_LOGGC}"} fi # Set default scheduling priority