HBASE-8025 zkcli fails when SERVER_GC_OPTS is enabled (Dave Latham)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1456582 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
larsh 2013-03-14 18:11:39 +00:00
parent f1b6c6d317
commit 2f64d221e1
1 changed files with 6 additions and 6 deletions

View File

@ -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