HBASE-4445 Not passing --config when checking if distributed mode or not

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1172888 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-09-19 23:07:53 +00:00
parent 7f0c31e55f
commit 7c9f2c7da0
3 changed files with 3 additions and 2 deletions

View File

@ -614,6 +614,7 @@ Release 0.90.5 - Unreleased
(Jonathan Hsieh)
HBASE-4238 CatalogJanitor can clear a daughter that split before
processing its parent
HBASE-4445 Not passing --config when checking if distributed mode or not
IMPROVEMENT
HBASE-4205 Enhance HTable javadoc (Eric Charles)

View File

@ -38,7 +38,7 @@ then
exit $errCode
fi
distMode=`$bin/hbase org.apache.hadoop.hbase.util.HBaseConfTool hbase.cluster.distributed`
distMode=`$bin/hbase --config "$HBASE_CONF_DIR" org.apache.hadoop.hbase.util.HBaseConfTool hbase.cluster.distributed`
if [ "$distMode" == 'false' ]

View File

@ -59,7 +59,7 @@ done
echo
# distributed == false means that the HMaster will kill ZK when it exits
distMode=`$bin/hbase org.apache.hadoop.hbase.util.HBaseConfTool hbase.cluster.distributed`
distMode=`$bin/hbase --config "$HBASE_CONF_DIR" org.apache.hadoop.hbase.util.HBaseConfTool hbase.cluster.distributed`
if [ "$distMode" == 'true' ]
then
# TODO: store backup masters in ZooKeeper and have the primary send them a shutdown message