更新时间: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.