[ 
https://issues.apache.org/jira/browse/HBASE-5655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13239627#comment-13239627
 ] 

Himanshu Vashishtha commented on HBASE-5655:
--------------------------------------------

You can define its maximum size and the number of history files.

More specifically, log4j.appender.RFA.MaxFileSize=<user_defined_prop>.
log4j.appender.RFA.MaxBackupIndex=<number_of_history_files> // This is similar 
to DRFA.MaxBackupIndex though.
                
> Cap space usage of default log4j rolling policy
> -----------------------------------------------
>
>                 Key: HBASE-5655
>                 URL: https://issues.apache.org/jira/browse/HBASE-5655
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.92.1
>            Reporter: Himanshu Vashishtha
>            Assignee: Himanshu Vashishtha
>
> The current default log4j policy is to use Daily Rolling File Appender 
> (DRFA). At times, its good to have a cap on the maximum size of the logs in 
> order to limit its disk usage. Here is a proposal to set a new file appemder 
> (RFA) as the default appender. It can be configured via env so that existing 
> tools can use the current behavior of using DRFA instead. 
> This is in parallel with jira Hadoop-8149.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to