[ 
https://issues.apache.org/jira/browse/HDFS-6263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Abhiraj Butala updated HDFS-6263:
---------------------------------

    Attachment: HDFS-6263.patch

Attaching a simple patch to remove the config.

Also, I noticed that in the same log4j.properties, the following  two configs 
are defined twice at the end of the file:

{code}
log4j.appender.ROLLINGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.ROLLINGFILE.layout.ConversionPattern=%d{ISO8601} - %-5p 
[%t:%C{1}@%L] - %m%n
{code}

The ConversionPattern is subtly different in the second definition. (First 
definition has extra '-' after '5p', while the second does not.)

Is this by mistake? Should I just remove the redundant definitions? Please 
advise. Thanks!

> Remove DRFA.MaxBackupIndex config from log4j.properties
> -------------------------------------------------------
>
>                 Key: HDFS-6263
>                 URL: https://issues.apache.org/jira/browse/HDFS-6263
>             Project: Hadoop HDFS
>          Issue Type: Test
>    Affects Versions: 2.4.0
>            Reporter: Akira AJISAKA
>            Priority: Minor
>              Labels: newbie
>         Attachments: HDFS-6263.patch
>
>
> HDFS-side of HADOOP-10525.
> {code}
> # uncomment the next line to limit number of backup files
> # log4j.appender.ROLLINGFILE.MaxBackupIndex=10
> {code}
> In hadoop-hdfs/src/contrib/bkjournal/src/test/resources/log4j.properties, the 
> above lines should be removed because the appender (DRFA) doesn't support 
> MaxBackupIndex config.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to