OneApplicationAttemptResource
OneApplicationAttemptResource is a AbstractApplicationResource (and so a ApiRequestContext indirectly).
OneApplicationAttemptResource is used when AbstractApplicationResource is requested to applicationAttempt.
| Path | HTTP Method | Description |
|---|---|---|
|
GET |
|
1 2 3 4 5 6 7 |
// start spark-shell // there should be a single Spark application -- the spark-shell itself // CAUTION: FIXME Demo of OneApplicationAttemptResource in Action |
getAttempt Method
|
1 2 3 4 5 |
getAttempt(): ApplicationAttemptInfo |
getAttempt requests the UIRoot for the application info (given the appId) and finds the attemptId among the available attempts.
In the end, getAttempt returns the ApplicationAttemptInfo if available or reports a NotFoundException:
|
1 2 3 4 5 |
unknown app [appId], attempt [attemptId] |
spark技术分享