You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2017/04/07 12:03:20 UTC

spark git commit: [SPARK-20218][DOC][APP-ID] applications//stages' in REST API, add description.

Repository: spark
Updated Branches:
  refs/heads/master 1a52a6237 -> 9e0893b53


[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 \u2018?status=[active|complete|pending|failed] list only stages in the state.\u2019.
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: \u90ed\u5c0f\u9f99 10207633 <gu...@zte.com.cn>

Closes #17534 from guoxiaolongzte/SPARK-20218.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/9e0893b5
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/9e0893b5
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/9e0893b5

Branch: refs/heads/master
Commit: 9e0893b53d68f777c1f3fb0a67820424a9c253ab
Parents: 1a52a62
Author: \u90ed\u5c0f\u9f99 10207633 <gu...@zte.com.cn>
Authored: Fri Apr 7 13:03:07 2017 +0100
Committer: Sean Owen <so...@cloudera.com>
Committed: Fri Apr 7 13:03:07 2017 +0100

----------------------------------------------------------------------
 docs/monitoring.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/9e0893b5/docs/monitoring.md
----------------------------------------------------------------------
diff --git a/docs/monitoring.md b/docs/monitoring.md
index 4d0617d..da95438 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>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org