YARN-11519. [Federation] Add RouterAuditLog to log4j.properties. (#5785)
This commit is contained in:
parent
5db7107b77
commit
8a52990150
@ -232,6 +232,21 @@ log4j.appender.NMAUDIT.layout.ConversionPattern=%d{ISO8601}%p %c{2}: %m%n
|
|||||||
log4j.appender.NMAUDIT.MaxFileSize=${nm.audit.log.maxfilesize}
|
log4j.appender.NMAUDIT.MaxFileSize=${nm.audit.log.maxfilesize}
|
||||||
log4j.appender.NMAUDIT.MaxBackupIndex=${nm.audit.log.maxbackupindex}
|
log4j.appender.NMAUDIT.MaxBackupIndex=${nm.audit.log.maxbackupindex}
|
||||||
|
|
||||||
|
#
|
||||||
|
# YARN Router audit logging
|
||||||
|
#
|
||||||
|
router.audit.logger=INFO,NullAppender
|
||||||
|
router.audit.log.maxfilesize=256MB
|
||||||
|
router.audit.log.maxbackupindex=20
|
||||||
|
log4j.logger.org.apache.hadoop.yarn.server.router.RouterAuditLogger=${router.audit.logger}
|
||||||
|
log4j.additivity.org.apache.hadoop.yarn.server.router.RouterAuditLogger=false
|
||||||
|
log4j.appender.ROUTERAUDIT=org.apache.log4j.RollingFileAppender
|
||||||
|
log4j.appender.ROUTERAUDIT.File=${hadoop.log.dir}/router-audit.log
|
||||||
|
log4j.appender.ROUTERAUDIT.layout=org.apache.log4j.PatternLayout
|
||||||
|
log4j.appender.ROUTERAUDIT.layout.ConversionPattern=%d{ISO8601} %p %c{2}: %m%n
|
||||||
|
log4j.appender.ROUTERAUDIT.MaxFileSize=${router.audit.log.maxfilesize}
|
||||||
|
log4j.appender.ROUTERAUDIT.MaxBackupIndex=${router.audit.log.maxbackupindex}
|
||||||
|
|
||||||
# HS audit log configs
|
# HS audit log configs
|
||||||
#mapreduce.hs.audit.logger=INFO,HSAUDIT
|
#mapreduce.hs.audit.logger=INFO,HSAUDIT
|
||||||
#log4j.logger.org.apache.hadoop.mapreduce.v2.hs.HSAuditLogger=${mapreduce.hs.audit.logger}
|
#log4j.logger.org.apache.hadoop.mapreduce.v2.hs.HSAuditLogger=${mapreduce.hs.audit.logger}
|
||||||
|
@ -158,7 +158,7 @@
|
|||||||
#
|
#
|
||||||
# See ResourceManager for some examples
|
# See ResourceManager for some examples
|
||||||
#
|
#
|
||||||
#export YARN_ROUTER_OPTS=
|
#export YARN_ROUTER_OPTS="-Drouter.audit.logger=INFO,ROUTERAUDIT"
|
||||||
|
|
||||||
###
|
###
|
||||||
# Global Policy Generator specific parameters
|
# Global Policy Generator specific parameters
|
||||||
|
Loading…
Reference in New Issue
Block a user