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:
parent
f1b6c6d317
commit
2f64d221e1
12
bin/hbase
12
bin/hbase
|
@ -237,18 +237,18 @@ fi
|
||||||
unset IFS
|
unset IFS
|
||||||
|
|
||||||
#Set the right GC options based on the what we are running
|
#Set the right GC options based on the what we are running
|
||||||
declare -a client_cmds=("shell" "hbck" "hlog" "hfile" "zkcli")
|
declare -a server_cmds=("master" "regionserver" "thrift" "thrift2" "rest" "avro" "zookeeper")
|
||||||
for cmd in ${client_cmds[@]}; do
|
for cmd in ${server_cmds[@]}; do
|
||||||
if [[ $cmd == $COMMAND ]]; then
|
if [[ $cmd == $COMMAND ]]; then
|
||||||
client=true
|
server=true
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ $client ]]; then
|
if [[ $server ]]; then
|
||||||
HBASE_OPTS="$HBASE_OPTS $CLIENT_GC_OPTS"
|
|
||||||
else
|
|
||||||
HBASE_OPTS="$HBASE_OPTS $SERVER_GC_OPTS"
|
HBASE_OPTS="$HBASE_OPTS $SERVER_GC_OPTS"
|
||||||
|
else
|
||||||
|
HBASE_OPTS="$HBASE_OPTS $CLIENT_GC_OPTS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# figure out which class to run
|
# figure out which class to run
|
||||||
|
|
Loading…
Reference in New Issue