Created attachment 29293 [details] 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.
Created attachment 29294 [details] Patch created using `diff -ur original_dir/ modified_dir/ > log4jProper.patch` command.