ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-17148) Fix rm.audit.logger and nm.audit.logger configuration setting for Yarn
Date Mon, 13 Jun 2016 14:31:21 GMT

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

Andrew Onischuk updated AMBARI-17148:
-------------------------------------
    Attachment: AMBARI-17148.patch

> Fix rm.audit.logger and nm.audit.logger configuration setting for Yarn
> ----------------------------------------------------------------------
>
>                 Key: AMBARI-17148
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17148
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 2.4.0
>            Reporter: Yesha Vora
>            Priority: Critical
>         Attachments: AMBARI-17148.patch
>
>
> Ambari sets RMAUDIT and NMAUDIT loggers by default for YARN. 
> {code}rm.audit.logger=INFO,RMAUDIT
> ..
> nm.audit.logger=INFO,NMAUDIT
> ..{code}
> This config leads to log4j errors while running yarn-cli command. 
> {code}
>  yarn application -list
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: /xx/nm-audit.log (No such file or directory)
> 	at java.io.FileOutputStream.open0(Native Method)
> 	at java.io.FileOutputStream.open(FileOutputStream.java:270)
> 	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
> 	at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
> 	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
> 	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
> 	at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
> 	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
> 	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
> 	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
> 	at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
> 	at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
> 	at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672){code}
> In YARN's case, rm.audit.logger should be set when starting RM only and nm.audit.logger
when starting NMs only. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message