hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject git commit: HBASE-12019 hbase-daemon.sh overwrite HBASE_ROOT_LOGGER and HBASE_SECURITY_LOGGER variables (Sebastien Barrier)
Date Fri, 19 Sep 2014 00:01:39 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 7c1d6b376 -> e25ca0349


HBASE-12019 hbase-daemon.sh overwrite HBASE_ROOT_LOGGER and HBASE_SECURITY_LOGGER variables
(Sebastien Barrier)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e25ca034
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e25ca034
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e25ca034

Branch: refs/heads/branch-1
Commit: e25ca034973ee68cf47b2f8b11cba620b74de880
Parents: 7c1d6b3
Author: stack <stack@apache.org>
Authored: Thu Sep 18 17:00:53 2014 -0700
Committer: stack <stack@apache.org>
Committed: Thu Sep 18 17:01:27 2014 -0700

----------------------------------------------------------------------
 bin/hbase-daemon.sh | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/e25ca034/bin/hbase-daemon.sh
----------------------------------------------------------------------
diff --git a/bin/hbase-daemon.sh b/bin/hbase-daemon.sh
index 649a171..7c0234b 100755
--- a/bin/hbase-daemon.sh
+++ b/bin/hbase-daemon.sh
@@ -144,8 +144,15 @@ fi
 JAVA=$JAVA_HOME/bin/java
 export HBASE_LOG_PREFIX=hbase-$HBASE_IDENT_STRING-$command-$HOSTNAME
 export HBASE_LOGFILE=$HBASE_LOG_PREFIX.log
+
+if [ -z "${HBASE_ROOT_LOGGER}" ]; then
 export HBASE_ROOT_LOGGER=${HBASE_ROOT_LOGGER:-"INFO,RFA"}
+fi
+
+if [ -z "${HBASE_SECURITY_LOGGER}" ]; then 
 export HBASE_SECURITY_LOGGER=${HBASE_SECURITY_LOGGER:-"INFO,RFAS"}
+fi
+
 logout=$HBASE_LOG_DIR/$HBASE_LOG_PREFIX.out
 loggc=$HBASE_LOG_DIR/$HBASE_LOG_PREFIX.gc
 loglog="${HBASE_LOG_DIR}/${HBASE_LOGFILE}"


Mime
View raw message