July 2017
Intermediate to advanced
796 pages
18h 55m
English
Finally, logging can be configured through the log4j.properties file under your Spark application tree, as discussed in the preceding section. Spark uses log4j for logging. There are several valid logging levels supported by log4j with Spark; they are as follows:
| Log Level | Usages |
| OFF | This is the most specific, which allows no logging at all |
| FATAL | This is the most specific one that shows fatal errors with little data |
| ERROR | This shows only the general errors |
| WARN | This shows warnings that are recommended to be fixed but not mandatory |
| INFO | This shows information required for your Spark job |
| DEBUG | While debugging, those logs will be printed |
| TRACE | This provides the least specific error trace with a lot of data |
| ALL | Least ... |
Read now
Unlock full access