Skip to content

Latest commit

 

History

History
69 lines (42 loc) · 2.4 KB

spark-HistoryServer.adoc

File metadata and controls

69 lines (42 loc) · 2.4 KB

HistoryServer

HistoryServer is a web interface for completed and running (aka incomplete) Spark applications.

You can start a HistoryServer instance by executing $SPARK_HOME/sbin/start-history-server.sh script. See Starting HistoryServer.

Tip
Use EventLoggingListener to collect events.
Tip

Enable INFO logging level for org.apache.spark.deploy.history.HistoryServer logger to see what happens inside.

Add the following line to conf/log4j.properties:

log4j.logger.org.apache.spark.deploy.history.HistoryServer=INFO

Refer to Logging.

Starting HistoryServer

You can start a HistoryServer instance by executing $SPARK_HOME/sbin/start-history-server.sh script.

$ ./sbin/start-history-server.sh
starting org.apache.spark.deploy.history.HistoryServer, logging to .../spark/logs/spark-jacek-org.apache.spark.deploy.history.HistoryServer-1-japila.out
Note
To stop the server execute stop-history-server.sh or kill it.

When started, it prints out the following INFO message to the logs:

INFO HistoryServer: Started daemon with process name: [processName]

It registers signal handlers (using SignalUtils) for TERM, HUP, INT to log their execution:

ERROR HistoryServer: RECEIVED SIGNAL [signal]

It inits security if enabled (using spark.history.kerberos.enabled setting).

Caution
FIXME Describe initSecurity

It creates a SecurityManager.

It creates a HistoryServer and requests to bind.

It registers a shutdown hook to call stop on the HistoryServer instance.

Creating HistoryServer Instance

Caution
FIXME

Settings

  • spark.history.ui.port (default: 18080) — the port of the History Server’s UI.