mirror of
https://github.com/floci-io/floci.git
synced 2026-11-30 00:45:17 -05:00
With runner-mode docker, a cluster with Spark now runs a Spark History
Server on its primary node, as EMR's does ("Spark HistoryServer |
http://master-public-dns-name:18080/"), and GetOnClusterAppUIPresignedURL
opens it for real, on its own host, as the cluster's other interfaces
open.
Where the primary node runs the server, a step's Spark on the cluster's
YARN keeps its event logs where "By
default, Amazon EMR stores event logs in the /var/log/spark/apps
directory of HDFS" (spark.eventLog.dir hdfs:///var/log/spark/apps, which
the cluster's spark-defaults may replace), and names the server as
spark.yarn.historyServer.address, so an ended application's tracking URL
leads to its page there. The primary node makes that folder with the
others in its HDFS, starts the server once it is there, reading it and
listening where HDFS does, as one of the node's daemons, and is ready
once it answers. Its port is published on the host's loopback interface
as the other interfaces' are. With an ApplicationId, the server's link
lands on the application's page.
EmrAppUiNightlyIntegrationTest runs it for real: after a SparkPi step,
the ResourceManager's proxy sends the application's tracking URL on to
its page on the server's own host, the server lists it from its event
logs, and the server's own link lands on it.