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 2026-06-27 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 rootLogger.level in the {Client installation directory}Spark/spark/conf/log4j2.properties configuration file to INFO.

  2. Restart the spark-sql client.