关注 spark技术分享,
撸spark源码 玩spark最佳实践

ApplicationCache

ApplicationCache

ApplicationCache is…​FIXME

ApplicationCache is created exclusively when HistoryServer is created.

ApplicationCache uses Google Guava 14.0.1 library for the internal appLoader.

Table 1. ApplicationCache’s Internal Properties (e.g. Registries, Counters and Flags)
Name Description

appLoader

Google Guava’s CacheLoader with a custom load which is simply loadApplicationEntry.

Used when…​FIXME

removalListener

appCache

Google Guava’s LoadingCache of CacheKey keys and CacheEntry entries

Used when ApplicationCache is requested for the following:

metrics

Creating ApplicationCache Instance

ApplicationCache takes the following when created:

ApplicationCache initializes the internal registries and counters.

loadApplicationEntry Internal Method

loadApplicationEntry…​FIXME

Note
loadApplicationEntry is used exclusively when ApplicationCache is requested to load a cached entry.

Loading Cached Spark Application UI — load Method

Note
load is part of Google Guava’s CacheLoader to retrieve a CacheEntry, based on a CacheKey, for LoadingCache.

load simply relays to loadApplicationEntry with the appId and attemptId of the input CacheKey.

Requesting Cached UI of Spark Application (CacheEntry) — get Method

get…​FIXME

Note
get is used exclusively when ApplicationCache is requested to execute a closure while holding an application’s UI read lock.

Executing Closure While Holding Application’s UI Read Lock — withSparkUI Method

withSparkUI…​FIXME

Note
withSparkUI is used when HistoryServer is requested to withSparkUI and loadAppUi.
赞(0) 打赏
未经允许不得转载:spark技术分享 » ApplicationCache
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏