AppStatusListener
AppStatusListener is a SparkListener that AppStatusStore uses to…FIXME
AppStatusListener is created when:
-
AppStatusStoreis requested to createLiveStore (with the live flag enabled) -
FsHistoryProvideris requested to rebuildAppStore (with the live flag disabled)
| Event | Handler |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Name | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
Default: |
|
|
LiveRDDs by RDD ID |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onStageSubmitted Method
|
1 2 3 4 5 |
onStageSubmitted(event: SparkListenerStageSubmitted): Unit |
|
Note
|
onStageSubmitted is part of SparkListener Contract to…FIXME.
|
onStageSubmitted…FIXME
update Internal Method
|
1 2 3 4 5 |
update(entity: LiveEntity, now: Long, last: Boolean = false): Unit |
update simply requests the LiveEntity to write (with the ElementTrackingStore as the store and the last flag as checkTriggers flag).
|
Note
|
update is used in event handlers (i.e. onApplicationStart, onExecutorRemoved, onJobEnd, onStageSubmitted, onTaskEnd, onStageCompleted), liveUpdate, maybeUpdate, flush and updateRDDBlock.
|
maybeUpdate Internal Method
|
1 2 3 4 5 |
maybeUpdate(entity: LiveEntity, now: Long): Unit |
maybeUpdate…FIXME
|
Note
|
maybeUpdate is used when…FIXME
|
liveUpdate Internal Method
|
1 2 3 4 5 |
liveUpdate(entity: LiveEntity, now: Long): Unit |
liveUpdate…FIXME
|
Note
|
liveUpdate is used when…FIXME
|
updateStreamBlock Internal Method
|
1 2 3 4 5 |
updateStreamBlock(event: SparkListenerBlockUpdated, stream: StreamBlockId): Unit |
updateStreamBlock…FIXME
|
Note
|
updateStreamBlock is used exclusively when AppStatusListener is requested to handle a SparkListenerBlockUpdated event (for a StreamBlockId).
|
Intercepting SparkListenerBlockUpdated Events — onBlockUpdated Handler Method
|
1 2 3 4 5 |
onBlockUpdated(event: SparkListenerBlockUpdated): Unit |
|
Note
|
onBlockUpdated is part of SparkListener Contract to…FIXME.
|
onBlockUpdated simply dispatches to the following event-specific handlers (per BlockId type):
-
Ignores (swallows) the
SparkListenerBlockUpdatedevent for the other types
Creating AppStatusListener Instance
AppStatusListener takes the following when created:
AppStatusListener initializes the internal registries and counters.
updateRDDBlock Internal Method
|
1 2 3 4 5 |
updateRDDBlock(event: SparkListenerBlockUpdated, block: RDDBlockId): Unit |
updateRDDBlock…FIXME
|
Note
|
updateRDDBlock is used exclusively when AppStatusListener is requested to handle a SparkListenerBlockUpdated event (for a RDDBlockId).
|
spark技术分享