Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-37729][SQL] Fix SparkSession.setLogLevel that is not working i…
…n Spark Shell ### What changes were proposed in this pull request? This patch fixes a regression by upgrading to log4j 2. `SparkSession.setLogLevel` should work in spark-shell. ### Why are the changes needed? Currently in spark-shell `SparkSession.setLogLevel` can not work well. Previously log4j 1.x API only calls the API on logger to set logging level. Now with log4j 2.x, the updated logging level at root logger is not taken by other loggers. We need to explicitly ask updating loggers with the updated logger config. ### Does this PR introduce _any_ user-facing change? No, the upgrading is not released yet. ### How was this patch tested? Manual test and unit test. Closes apache#35012 from viirya/SPARK-37729. Authored-by: Liang-Chi Hsieh <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
- Loading branch information