HBASE-18274 hbase autorestart will overwrite the gc log (Fangyuan Deng)
This commit is contained in:
parent
6e1907919a
commit
2cf3622b47
|
@ -220,7 +220,6 @@ case $startStop in
|
||||||
|
|
||||||
check_before_start
|
check_before_start
|
||||||
hbase_rotate_log $HBASE_LOGOUT
|
hbase_rotate_log $HBASE_LOGOUT
|
||||||
hbase_rotate_log $HBASE_LOGGC
|
|
||||||
nohup $thiscmd --config "${HBASE_CONF_DIR}" --autostart-window-size ${AUTOSTART_WINDOW_SIZE} --autostart-window-retry-limit ${AUTOSTART_WINDOW_RETRY_LIMIT} \
|
nohup $thiscmd --config "${HBASE_CONF_DIR}" --autostart-window-size ${AUTOSTART_WINDOW_SIZE} --autostart-window-retry-limit ${AUTOSTART_WINDOW_RETRY_LIMIT} \
|
||||||
internal_autostart $command $args < /dev/null > ${HBASE_LOGOUT} 2>&1 &
|
internal_autostart $command $args < /dev/null > ${HBASE_LOGOUT} 2>&1 &
|
||||||
;;
|
;;
|
||||||
|
@ -260,6 +259,7 @@ case $startStop in
|
||||||
# keep starting the command until asked to stop. Reloop on software crash
|
# keep starting the command until asked to stop. Reloop on software crash
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
hbase_rotate_log $HBASE_LOGGC
|
||||||
if [ -f $HBASE_PID ] && kill -0 "$(cat "$HBASE_PID")" > /dev/null 2>&1 ; then
|
if [ -f $HBASE_PID ] && kill -0 "$(cat "$HBASE_PID")" > /dev/null 2>&1 ; then
|
||||||
wait "$(cat "$HBASE_PID")"
|
wait "$(cat "$HBASE_PID")"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue