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




// 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.

appId and attemptId are path parameters.

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

unknown app [appId], attempt [attemptId]

results matching ""

    No results matching ""