Log paths:
The logs of running tasks are stored in the preceding path. After the running is complete, the system determines whether to aggregate the logs to an HDFS directory based on the Yarn configuration. For details, see Common Yarn Parameters.
Log archiving rule:
Log Type |
Name |
Description |
---|---|---|
SparkResource2x logs |
spark.log |
Spark2x service initialization log |
prestart.log |
Prestart script log |
|
cleanup.log |
Cleanup log file for instance installation and uninstallation |
|
spark-availability-check.log |
Spark2x service health check log |
|
spark-service-check.log |
Spark2x service check log |
|
JDBCServer2x logs |
JDBCServer-start.log |
JDBCServer2x startup log |
JDBCServer-stop.log |
JDBCServer2x stop log |
|
JDBCServer.log |
JDBCServer2x run log on the server |
|
jdbc-state-check.log |
JDBCServer2x health check log |
|
jdbcserver-omm-pid***-gc.log.*.current |
IJDBCServer2x process GC log |
|
spark-omm-org.apache.spark.sql.hive.thriftserver.HiveThriftProxyServer2-***.out* |
JDBCServer2x process startup log. If the process stops, the jstack information is printed. |
|
JobHistory2x logs |
jobHistory-start.log |
JobHistory2x startup log |
jobHistory-stop.log |
JobHistory2x stop log |
|
JobHistory.log |
JobHistory2x running process log |
|
jobhistory-omm-pid***-gc.log.*.current |
JobHistory2x process GC log |
|
spark-omm-org.apache.spark.deploy.history.HistoryServer-***.out* |
JobHistory2x process startup log. If the process stops, the jstack information is printed. |
|
IndexServer2x logs |
IndexServer-start.log |
IndexServer2x startup log |
IndexServer-stop.log |
IndexServer2x stop log |
|
IndexServer.log |
IndexServer2x run log on the server |
|
indexserver-state-check.log |
IndexServer2x health check log |
|
indexserver-omm-pid***-gc.log.*.current |
IndexServer2x process GC log |
|
spark-omm-org.apache.spark.sql.hive.thriftserver.IndexServerProxy-***.out* |
IndexServer2x process startup log. If the process stops, the jstack information is printed. |
|
Audit Log |
jdbcserver-audit.log ranger-audit.log |
JDBCServer2x audit log |
Table 2 describes the log levels supported by Spark2x. The priorities of log levels are ERROR, WARN, INFO, and DEBUG in descending order. Logs whose levels are higher than or equal to the specified level are printed. The number of printed logs decreases as the specified log level increases.
Level |
Description |
---|---|
ERROR |
Error information about the current event processing |
WARN |
Exception information about the current event processing |
INFO |
Logs of this level record normal running status information about the system and events. |
DEBUG |
Logs of this level record the system information and system debugging information. |
To modify log levels, perform the following operations:
By default, the service does not need to be restarted after the Spark2x log levels are configured.
Type |
Format |
Example |
---|---|---|
Run log |
<yyyy-MM-dd HH:mm:ss,SSS>|<Log level>|<Name of the thread that generates the log>|<Message in the log>|<Location where the log event occurs> |
2014-09-22 11:16:23,980 INFO DAGScheduler: Final stage: Stage 0(reduce at SparkPi.scala:35) |