You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2012/08/28 21:44:41 UTC
[Bug 53791] New: Unable to enable compression of backups using the
log4j.properties file in Hadoop & HBase.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53791
Priority: P2
Bug ID: 53791
Assignee: log4j-dev@logging.apache.org
Summary: Unable to enable compression of backups using the
log4j.properties file in Hadoop & HBase.
Severity: enhancement
Classification: Unclassified
OS: Linux
Reporter: jlewis@gcefederal.com
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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
[Bug 53791] Unable to enable compression of backups using the
log4j.properties file in Hadoop & HBase.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53791
John Lewis <jl...@gcefederal.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #29293|0 |1
is patch| |
Attachment #29293|application/octet-stream |text/plain
mime type| |
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
[Bug 53791] Enabling compression of backups using the
log4j.properties file in Hadoop & HBase.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53791
John Lewis <jl...@gcefederal.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Unable to enable |Enabling compression of
|compression of backups |backups using the
|using the log4j.properties |log4j.properties file in
|file in Hadoop & HBase. |Hadoop & HBase.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
[Bug 53791] Unable to enable compression of backups using the
log4j.properties file in Hadoop & HBase.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53791
--- Comment #1 from John Lewis <jl...@gcefederal.com> ---
Created attachment 29294
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29294&action=edit
Patch created using `diff -ur original_dir/ modified_dir/ > log4jProper.patch`
command.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org