[ 
https://issues.apache.org/jira/browse/SPARK-20218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

guoxiaolongzte updated SPARK-20218:
-----------------------------------
    Description: 
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
      }
    };

  was:
'/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.

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
      }
    };


> '/applications/[app-id]/stages' in REST API,add description.
> ------------------------------------------------------------
>
>                 Key: SPARK-20218
>                 URL: https://issues.apache.org/jira/browse/SPARK-20218
>             Project: Spark
>          Issue Type: Improvement
>          Components: Documentation
>    Affects Versions: 2.1.0
>            Reporter: guoxiaolongzte
>            Priority: Minor
>
> 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
>       }
>     };



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to