YARN Log Overview
Log Description
The default paths for saving YARN logs are as follows:
- ResourceManager: /var/log/Bigdata/yarn/rm (run logs) and /var/log/Bigdata/audit/yarn/rm (audit logs)
- NodeManager: /var/log/Bigdata/yarn/nm (run logs) and /var/log/Bigdata/audit/yarn/nm (audit logs)
Log archive rule: The automatic compression and archive function is enabled for YARN logs. By default, when the size of a log file exceeds 50 MB, the log file is automatically compressed. The naming rule of the compressed log file is as follows: <Original log file name>-<yyyy-mm-dd_hh-mm-ss>.[ID].log.zip. A maximum of 100 latest compressed files are retained. The number of compressed files can be configured on Manager.
Log archive rule:
| Log Type | Log File Name | Description |
|---|---|---|
| Run log | hadoop-<SSH_USER>-<process_name>-<hostname>.log | YARN component log file that records most events generated while the component is running |
| hadoop-<SSH_USER>-<process_name>-<hostname>.out | YARN log file that records system environment details | |
| <process_name>-<SSH_USER>-<DATE>-<PID>-gc.log | Garbage collection log file | |
| yarn-haCheck.log | ResourceManager active/standby status detection log file | |
| yarn-service-check.log | Log file that records health check details for the YARN service | |
| yarn-start-stop.log | Log file that records the startup and shutdown of the YARN service | |
| yarn-prestart.log | Log file that records cluster operations before the YARN service starts | |
| yarn-postinstall.log | Work log file after installation and before the YARN service starts | |
| hadoop-commission.log | YARN service commissioning log file | |
| yarn-cleanup.log | Log file that records cleanup operations during YARN service uninstallation | |
| yarn-refreshqueue.log | YARN queue refresh log file | |
| upgradeDetail.log | Upgrade log file | |
| stderr/stdin/syslog | Container log file for applications running on the YARN service | |
| yarn-application-check.log | Health check log file for applications running on the YARN service | |
| yarn-appsummary.log | Execution result log file for applications running on the YARN service | |
| yarn-switch-resourcemanager.log | Run log file that records YARN active/standby failovers | |
| ranger-yarn-plugin-enable.log | Log file that records the enabling of Ranger authorization for YARN | |
| yarn-nodemanager-period-check.log | Periodic check log of the YARN NodeManager | |
| yarn-resourcemanager-period-check.log | Periodic check log of the YARN ResourceManager | |
| hadoop.log | Hadoop client log file | |
| env.log | Environment information log file before the instance is started or stopped. | |
| Audit logs | yarn-audit-<process_name>.log ranger-plugin-audit.log | YARN operation audit log file |
| SecurityAuth.audit | YARN security audit log file |
Log Level
Table 2 describes the log levels supported by YARN, including OFF, FATAL, ERROR, WARN, INFO, and DEBUG, from high priority to low. Logs whose levels are higher than or equal to the specified level are printed. The number of printed logs decreases as the specified log level increases.
| Level | Description |
|---|---|
| FATAL | Logs of this level record critical error information about the current event processing. |
| ERROR | Logs of this level record error information about the current event processing. |
| WARN | Logs of this level record exception information about the current event processing. |
| INFO | Logs of this level record normal running status information about the system and events. |
| DEBUG | Logs of this level record the system information and system debugging information. |
To modify log levels, perform the following operations:
- Go to the All Configurations page of the YARN service by referring to Modifying Cluster Service Configuration Parameters.
- On the menu bar on the left, select the log menu of the target role.
- Select a desired log level.
- Click Save Configuration. In the dialog box that is displayed, click OK to make the setting take effect.
The configurations take effect immediately without the need to restart the service.
Log Format
The following table lists the YARN log formats.
| Log Type | Format | Example |
|---|---|---|
| Run log | <yyyy-MM-dd HH:mm:ss,SSS>|<Log Level>|<Thread that generates the log>|<Message in the log>|<Location of the log event> | 2021-09-26 14:18:59,109 | INFO | main | Client environment:java.compiler=<NA> | org.apache.zookeeper.Environment.logEnv(Environment.java:100) |
| Audit log | <yyyy-MM-dd HH:mm:ss,SSS>|<Log Level>|<Thread that generates the log>|<Message in the log>|<Location of the log event> | 2021-09-26 14:24:43,605 | INFO | main-EventThread | USER=omm OPERATION=refreshAdminAcls TARGET=AdminService RESULT=SUCCESS | org.apache.hadoop.yarn.server.resourcemanager.RMAuditLogger$LogLevel$6.printLog(RMAuditLogger.java:91) |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot