From 44fd83732d23d626071bebc354ac7e0bd5ba8a3d Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Tue, 29 Nov 2011 05:54:59 +0000 Subject: [PATCH] HBASE-4884 Allow environment overrides for various HBase processes git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1207760 13f79535-47bb-0310-9956-ffa450edef68 --- bin/hbase | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/hbase b/bin/hbase index 57485a68f0d..350abefcbc7 100755 --- a/bin/hbase +++ b/bin/hbase @@ -106,6 +106,11 @@ if [ "$MAVEN_HOME" != "" ]; then MVN=${MAVEN_HOME}/bin/mvn fi +# override default settings for this command, if applicable +if [ -f "$HBASE_HOME/conf/hbase-env-$COMMAND.sh" ]; then + . "$HBASE_HOME/conf/hbase-env-$COMMAND.sh" +fi + # check envvars which might override default args if [ "$HBASE_HEAPSIZE" != "" ]; then #echo "run with heapsize $HBASE_HEAPSIZE"