zhengchenyu opened a new pull request, #6042: URL: https://github.com/apache/hadoop/pull/6042
### Description of PR Since [HADOOP-18649](https://issues.apache.org/jira/browse/HADOOP-18649), in container-log4j.properties, log4j.appender.{APPENDER}.MaxFileSize is set to ${yarn.app.container.log.filesize}, but yarn.app.container.log.filesize is 0 in default. So log is missing. This log is always rolling and only show the latest log. This is the running log like below: ``` Log Type: syslog Log Upload Time: Fri Sep 08 11:36:09 +0800 2023 Log Length: 0 Log Type: syslog.1 Log Upload Time: Fri Sep 08 11:36:09 +0800 2023 Log Length: 179 2023-09-08 11:31:34,494 INFO [AsyncDispatcher event handler] org.apache.hadoop.yarn.util.RackResolver: Got an error when resolve hostNames. Falling back to /default-rack for all. ``` > Note: log4j.appender.{APPENDER}.MaxFileSize is not set before, then use default value 10M, so no problem before [HADOOP-18649](https://issues.apache.org/jira/browse/HADOOP-18649) ### How was this patch tested? test in cluster. ### For code changes: just fix default value to avoid missing logs. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
