HBASE-12372 [WINDOWS] Enable log4j configuration in hbase.cmd

This commit is contained in:
Enis Soztutar 2014-10-29 11:59:55 -07:00
parent 6c39d36b32
commit e79572fa1c
1 changed files with 3 additions and 1 deletions

View File

@ -239,7 +239,9 @@ if "%servercommand%" == "true" (
if defined service_entry ( if defined service_entry (
set HBASE_LOG_PREFIX=hbase-%hbase-command%-%COMPUTERNAME% set HBASE_LOG_PREFIX=hbase-%hbase-command%-%COMPUTERNAME%
set HBASE_LOGFILE=!HBASE_LOG_PREFIX!.log set HBASE_LOGFILE=!HBASE_LOG_PREFIX!.log
set HBASE_ROOT_LOGGER=INFO,DRFA if not defined HBASE_ROOT_LOGGER (
set HBASE_ROOT_LOGGER=INFO,DRFA
)
set HBASE_SECURITY_LOGGER=INFO,DRFAS set HBASE_SECURITY_LOGGER=INFO,DRFAS
set loggc=!HBASE_LOG_DIR!\!HBASE_LOG_PREFIX!.gc set loggc=!HBASE_LOG_DIR!\!HBASE_LOG_PREFIX!.gc
set loglog=!HBASE_LOG_DIR!\!HBASE_LOGFILE! set loglog=!HBASE_LOG_DIR!\!HBASE_LOGFILE!