aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
author郭小龙 10207633 <guo.xiaolong1@zte.com.cn>2017-04-07 13:03:07 +0100
committerSean Owen <sowen@cloudera.com>2017-04-07 13:03:07 +0100
commit9e0893b53d68f777c1f3fb0a67820424a9c253ab (patch)
treea9420dd604505cd7488ce24482441f9c9ec4a880 /docs
parent1a52a62377a87cec493c8c6711bfd44e779c7973 (diff)
downloadspark-9e0893b53d68f777c1f3fb0a67820424a9c253ab.tar.gz
spark-9e0893b53d68f777c1f3fb0a67820424a9c253ab.tar.bz2
spark-9e0893b53d68f777c1f3fb0a67820424a9c253ab.zip
[SPARK-20218][DOC][APP-ID] applications//stages' in REST API,add description.
## What changes were proposed in this pull request? 1. '/applications/[app-id]/stages' in rest api.status should add description '?status=[active|complete|pending|failed] list only stages in the state.' Now the lack of this description, resulting in the use of this api do not know the use of the status through the brush stage list. 2.'/applications/[app-id]/stages/[stage-id]' in REST API,remove redundant description ‘?status=[active|complete|pending|failed] list only stages in the state.’. Because only one stage is determined based on stage-id. code: GET def stageList(QueryParam("status") statuses: JList[StageStatus]): Seq[StageData] = { val listener = ui.jobProgressListener val stageAndStatus = AllStagesResource.stagesAndStatus(ui) val adjStatuses = { if (statuses.isEmpty()) { Arrays.asList(StageStatus.values(): _*) } else { statuses } }; ## How was this patch tested? manual tests Please review http://spark.apache.org/contributing.html before opening a pull request. Author: 郭小龙 10207633 <guo.xiaolong1@zte.com.cn> Closes #17534 from guoxiaolongzte/SPARK-20218.
Diffstat (limited to 'docs')
-rw-r--r--docs/monitoring.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/monitoring.md b/docs/monitoring.md
index 4d0617d253..da954385dc 100644
--- a/docs/monitoring.md
+++ b/docs/monitoring.md
@@ -299,12 +299,12 @@ can be identified by their `[attempt-id]`. In the API listed below, when running
<tr>
<td><code>/applications/[app-id]/stages</code></td>
<td>A list of all stages for a given application.</td>
+ <br><code>?status=[active|complete|pending|failed]</code> list only stages in the state.
</tr>
<tr>
<td><code>/applications/[app-id]/stages/[stage-id]</code></td>
<td>
A list of all attempts for the given stage.
- <br><code>?status=[active|complete|pending|failed]</code> list only stages in the state.
</td>
</tr>
<tr>