Uncomment 
"log4j.logger.SecurityLogger.org.apache.hadoop.hbase.security.access.AccessController=TRACE"
 this line in log4j.properties file.

Regards,
Ashish

-----Original Message-----
From: Mahesh Sankaran [mailto:[email protected]] 
Sent: 25 May 2016 13:01
To: [email protected]
Subject: Re: How to enable log4j properties in hbase

Hi,

And also am using hbase-1.2.0 from cdh 5.7

Thanks,
Mahesh

On Wed, May 25, 2016 at 12:56 PM, Mahesh Sankaran <[email protected]>
wrote:

> Hi All,
>
> I have configured hbase authorization in my hbase cluster. Now i want 
> to enable audit logs for hbase authorization to monitor users. For 
> that i did following changes.
>
> 1.vim /etc/hbase/conf/log4j.properties
>
> log4j.rootLogger=${hbase.root.logger}
> hbase.root.logger=INFO,console
> log4j.appender.console=org.apache.log4j.ConsoleAppender
> log4j.appender.console.target=System.err
> log4j.appender.console.layout=org.apache.log4j.PatternLayout
> log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} 
> %p
> %c{2}: %m%n
>
> log4j.logger.SecurityLogger=TRACE, RFAS 
> log4j.additivity.SecurityLogger=false
> log4j.appender.RFAS=org.apache.log4j.RollingFileAppender
> log4j.appender.RFAS.File=${log.dir}/audit/SecurityAuth-hbase.audit
> log4j.appender.RFAS.layout=org.apache.log4j.PatternLayout
> log4j.appender.RFAS.layout.ConversionPattern=%d{ISO8601} %p %c: %m%n 
> log4j.appender.RFAS.MaxFileSize=${max.log.file.size}
> log4j.appender.RFAS.MaxBackupIndex=${max.log.file.backup.index}
>
>
> 2.Restarted my hbase cluster. SecurityAuth-hbase.audit file is created 
> but there is no content inside that file.
>
> Kindly help me to enable audit logs for hbase authorization.
>
> Note: I am using cloudera
>
> Thanks,
>
> Mahesh
>

Reply via email to