Configuring the Localized Log Levels
This section applies to clusters of MRS 3.x or later.
Scenarios
The default log level of localized container is INFO. You can change the log level by configuring yarn.nodemanager.container-localizer.java.opts.
Configuration Description
On Manager, choose Cluster > Name of the desired cluster > Service > Yarn > Configuration. Select All Configurations and set the following parameters in the configuration file yarn-site.xml of NodeManager to change the log level.
Parameter |
Description |
Default Value |
---|---|---|
yarn.nodemanager.container-localizer.java.opts |
The additional jvm parameters are provided for the localized container process. |
-Xmx256m -Djava.security.krb5.conf=${KRB5_CONFIG} |
The default value is -Xmx256m -Djava.security.krb5.conf=${KRB5_CONFIG} and the default log level is info. To change the localized log level of the container, add the following content:
-Dhadoop.root.logger=<LOG_LEVEL>,localizationCLA
Example:
To change the local log level to DEBUG, set the parameter as follows:
-Xmx256m -Dhadoop.root.logger=DEBUG,localizationCLA
![](https://support.huaweicloud.com/intl/en-us/cmpntguide-mrs/public_sys-resources/note_3.0-en-us.png)
Allowed log levels are as follows: FATAL, ERROR, WARN, INFO, DEBUG, TRACE, and ALL.
Feedback
Was this page helpful?
Provide feedbackThank 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