hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ecl...@apache.org
Subject svn commit: r1506716 - /hbase/trunk/bin/hbase-daemon.sh
Date Wed, 24 Jul 2013 21:12:29 GMT
Author: eclark
Date: Wed Jul 24 21:12:29 2013
New Revision: 1506716

URL: http://svn.apache.org/r1506716
Log:
HBASE-9034 hbase-daemon.sh swallows start up errors

Modified:
    hbase/trunk/bin/hbase-daemon.sh

Modified: hbase/trunk/bin/hbase-daemon.sh
URL: http://svn.apache.org/viewvc/hbase/trunk/bin/hbase-daemon.sh?rev=1506716&r1=1506715&r2=1506716&view=diff
==============================================================================
--- hbase/trunk/bin/hbase-daemon.sh (original)
+++ hbase/trunk/bin/hbase-daemon.sh Wed Jul 24 21:12:29 2013
@@ -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



Mime
View raw message