You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2014/09/19 02:01:14 UTC
git commit: HBASE-12019 hbase-daemon.sh overwrite HBASE_ROOT_LOGGER
and HBASE_SECURITY_LOGGER variables (Sebastien Barrier)
Repository: hbase
Updated Branches:
refs/heads/master 38dfd9c2a -> 257562036
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/25756203
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/25756203
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/25756203
Branch: refs/heads/master
Commit: 257562036b1da290425ed275c57b2d6bfe928e03
Parents: 38dfd9c
Author: stack <st...@apache.org>
Authored: Thu Sep 18 17:00:53 2014 -0700
Committer: stack <st...@apache.org>
Committed: Thu Sep 18 17:00:53 2014 -0700
----------------------------------------------------------------------
bin/hbase-daemon.sh | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/25756203/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}"