Comprehensive and Detailed Explanation From Exact Extract:
ThesetLogLevel()method ofSparkContextsets the logging level on the driver, which controls the verbosity of logs emitted during job execution. Supported levels are inherited from log4j and include the following:
ALL
DEBUG
ERROR
FATAL
INFO
OFF
TRACE
WARN
According to official Spark and Databricks documentation:
"Valid log levels include: ALL, DEBUG, ERROR, FATAL, INFO, OFF, TRACE, and WARN."
Among the choices provided, only option B (ERROR, WARN, TRACE, OFF) includes four valid log levels and excludes invalid ones like "FAIL" or "NONE".
[Reference: Apache Spark API docs → SparkContext.setLogLevel, ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit