https://issues.apache.org/bugzilla/show_bug.cgi?id=53791
Priority: P2
Bug ID: 53791
Assignee: [email protected]
Summary: Unable to enable compression of backups using the
log4j.properties file in Hadoop & HBase.
Severity: enhancement
Classification: Unclassified
OS: Linux
Reporter: [email protected]
Hardware: Other
Status: NEW
Version: 1.2.17
Component: Appender
Product: Log4j
Created attachment 29293
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29293&action=edit
Patch using the `diff -crB original_dir/ modified_dir/ > log4j.patch` command.
When using Hadoop and HBase, we tend to get massive log files which waste space
when using the RollingLogAppender class. From the Google search, many sites
inform that Log4J supports the compression of the rotated backups but only when
using the log4j.xml file. Currently Apache Hadoop and HBase only support the
use of the log4j.properties file.
To avoid trying to translate the log4j.properties file in xml format, we simply
modified the RollingLogAppender class to allow for the GZ compression of backup
files by simply adding the ".compressBackups=true" to the properties file.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]