An extension service that can be loaded into a Spark YARN scheduler.
Binding information for a SchedulerExtensionService.
Binding information for a SchedulerExtensionService.
The attempt ID will be set if the service is started within a YARN application master; there is then a different attempt ID for every time that AM is restarted. When the service binding is instantiated in client mode, there's no attempt ID, as it lacks this information.
current spark context
YARN application ID
YARN attemptID. This will always be unset in client mode, and always set in cluster mode.
An extension service that can be loaded into a Spark YARN scheduler. A Service that can be started and stopped.
1. For implementations to be loadable by
SchedulerExtensionServices
, they must provide an empty constructor. 2. Thestop()
operation MUST be idempotent, and succeed even ifstart()
was never invoked.