且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在IntelliJ IDEA中设置Spark应用程序的日志记录级别?

更新时间:2022-04-05 17:27:42

如果您正在使用IDE进行本地开发,则可以通过以下方式更改运行时的日志级别:

If you are working on the local development with IDE, you can change the log level at run-time by:


LogManager。 getRootLogger.setLevel(Level.ALL)

LogManager.getRootLogger.setLevel(Level.ALL)

Ps:在代码中创建SparkContext / SQLContext后放置该行。

Ps: Put that line after the SparkContext/ SQLContext was created in your code.