Help Center/MapReduce Service/Component Operation Guide (LTS)/Using Spark/Spark2x/Common Issues About Spark/How Do I Change the Log Level to INFO When Using Spark yarn-client?
Updated on 2025-03-17 GMT+08:00

How Do I Change the Log Level to INFO When Using Spark yarn-client?

Question

How do I change the log level to INFO when using Spark yarn-client?

Answer

  1. Log in to the Spark client node and change the value of Log4j.rootCategory in the {Client installation directory}Spark/spark/conf/log4j.properties configuration file to INFO.

  2. Restart the spark-sql client.