StandaloneRestServer¶
StandaloneRestServer
is a RestSubmissionServer.
Creating Instance¶
StandaloneRestServer
takes the following to be created:
- Host Name
- Requested Port
- SparkConf
- RpcEndpointRef of the Master
- URL of the Master
StandaloneRestServer
is created when:
Master
is requested to onStart (with spark.master.rest.enabled configuration property enabled)
StandaloneSubmitRequestServlet¶
StandaloneRestServer
uses a StandaloneSubmitRequestServlet
as the submitRequestServlet.
StandaloneSubmitRequestServlet
requires the following parameters:
appResource
(the jar of a Spark application)mainClass