HBASE-9034 hbase-daemon.sh swallows start up errors
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1506716 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0a5e334023
commit
2e13c675d5
|
@ -172,12 +172,12 @@ case $startStop in
|
|||
|
||||
(start)
|
||||
check_before_start
|
||||
nohup $thiscmd --config "${HBASE_CONF_DIR}" internal_start $command $args < /dev/null > /dev/null 2>&1 &
|
||||
nohup $thiscmd --config "${HBASE_CONF_DIR}" internal_start $command $args < /dev/null > ${logout} 2>&1 &
|
||||
;;
|
||||
|
||||
(autorestart)
|
||||
check_before_start
|
||||
nohup $thiscmd --config "${HBASE_CONF_DIR}" internal_autorestart $command $args < /dev/null > /dev/null 2>&1 &
|
||||
nohup $thiscmd --config "${HBASE_CONF_DIR}" internal_autorestart $command $args < /dev/null > ${logout} 2>&1 &
|
||||
;;
|
||||
|
||||
(internal_start)
|
||||
|
@ -189,7 +189,7 @@ case $startStop in
|
|||
echo "`ulimit -a`" >> $loglog 2>&1
|
||||
nice -n $HBASE_NICENESS "$HBASE_HOME"/bin/hbase \
|
||||
--config "${HBASE_CONF_DIR}" \
|
||||
$command "$@" start > "$logout" &
|
||||
$command "$@" start >> "$logout" 2>&1 &
|
||||
echo $! > $pid
|
||||
sleep 1; head "$logout"
|
||||
wait
|
||||
|
|
Loading…
Reference in New Issue