hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject svn commit: r1456582 - /hbase/trunk/bin/hbase
Date Thu, 14 Mar 2013 18:11:39 GMT
Author: larsh
Date: Thu Mar 14 18:11:39 2013
New Revision: 1456582

URL: http://svn.apache.org/r1456582
Log:
HBASE-8025  zkcli fails when SERVER_GC_OPTS is enabled (Dave Latham)

Modified:
    hbase/trunk/bin/hbase

Modified: hbase/trunk/bin/hbase
URL: http://svn.apache.org/viewvc/hbase/trunk/bin/hbase?rev=1456582&r1=1456581&r2=1456582&view=diff
==============================================================================
--- hbase/trunk/bin/hbase (original)
+++ hbase/trunk/bin/hbase Thu Mar 14 18:11:39 2013
@@ -237,18 +237,18 @@ fi
 unset IFS
 
 #Set the right GC options based on the what we are running
-declare -a client_cmds=("shell" "hbck" "hlog" "hfile" "zkcli")
-for cmd in ${client_cmds[@]}; do
+declare -a server_cmds=("master" "regionserver" "thrift" "thrift2" "rest" "avro" "zookeeper")
+for cmd in ${server_cmds[@]}; do
 	if [[ $cmd == $COMMAND ]]; then
-		client=true
+		server=true
 		break
 	fi
 done
 
-if [[ $client ]]; then
-	HBASE_OPTS="$HBASE_OPTS $CLIENT_GC_OPTS"
-else
+if [[ $server ]]; then
 	HBASE_OPTS="$HBASE_OPTS $SERVER_GC_OPTS"
+else
+	HBASE_OPTS="$HBASE_OPTS $CLIENT_GC_OPTS"
 fi
 
 # figure out which class to run



Mime
View raw message