Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.48 KB

spark-api-OneApplicationAttemptResource.adoc

File metadata and controls

41 lines (30 loc) · 1.48 KB

OneApplicationAttemptResource

OneApplicationAttemptResource is a AbstractApplicationResource (and so a ApiRequestContext indirectly).

OneApplicationAttemptResource is used when AbstractApplicationResource is requested to applicationAttempt.

Table 1. OneApplicationAttemptResource’s Paths
Path HTTP Method Description

/

GET

getAttempt

// start spark-shell
// there should be a single Spark application -- the spark-shell itself
// CAUTION: FIXME Demo of OneApplicationAttemptResource in Action

getAttempt Method

getAttempt(): ApplicationAttemptInfo

getAttempt requests the UIRoot for the application info (given the appId) and finds the attemptId among the available attempts.

Note
appId and attemptId are path parameters.

In the end, getAttempt returns the ApplicationAttemptInfo if available or reports a NotFoundException:

unknown app [appId], attempt [attemptId]