hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 陈加俊 <cjjvict...@gmail.com>
Subject Re: How to limit the number of logs that producted by DailyRollingFileAppender
Date Thu, 17 Feb 2011 01:17:54 GMT
I want to limit the number of log files for a DailyRollingFileAppender. I
search for a parameter like maxBackupIndex (in RollingFileAppender) but can
not find one. Is there really no way to limit the number of log-Files?

What is the strategy to ensure that the (number) of log files do not
"overrun". Delete them manually?

On Wed, Feb 16, 2011 at 5:56 PM, Tatsuya Kawano <tatsuya6502@gmail.com>wrote:

> Hi,
>
> On 02/16/2011, at 4:51 PM, 陈加俊 wrote:
> > How to limit the number of logs that producted by
> DailyRollingFileAppender ?
> >
> > I find the logs are exceeding  disk apace limit.
>
>
> If you're using "log4j.properties" coming with HBase, uncomment
> MaxBackupIndex property ant change its value.
>
> # 30-day backup
> #log4j.appender.DRFA.MaxBackupIndex=30
>
>
> Also, if it's for production environment, make sure you change the logging
> level to INFO, so you can reduce the amount of the logs.
>
> log4j.logger.org.apache.hadoop.hbase=INFO
>
>
> Thanks,
>
> --
> Tatsuya Kawano (Mr.)
> Tokyo, Japan
>
> http://twitter.com/#!/tatsuya6502
>
>
>
>
>
>
>


-- 
Thanks & Best regards
jiajun

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message