You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "xianquan (JIRA)" <ji...@apache.org> on 2017/09/11 10:20:00 UTC

[jira] [Comment Edited] (SPARK-21943) When I use rest Api (/ applications / [app-id] / jobs / [job-id]) to view some of the jobs that are running jobs, the returned json information is missing the “description” field.

    [ https://issues.apache.org/jira/browse/SPARK-21943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16160968#comment-16160968 ] 

xianquan edited comment on SPARK-21943 at 9/11/17 10:19 AM:
------------------------------------------------------------

!webUI.png!
thank's for your reply at frist . but i still have a  question:
 When sql task is runed by stages . Why can i get the description information in the webUI no matter it's runed end or not ,but  cann't  i get the description information in rest Api when job is  running. 



was (Author: zxq):
!webUI.png!
Thank you for your reply.
In the spark to run the same task, why we can see in the webUI description information, although the program has not run to the last stage. In the webUI description information is obtained by what way? Whether there is a similar way in the rest API to get the description information, although the program has not run to the last stage.


> When I use rest Api (/ applications / [app-id] / jobs / [job-id]) to view some of the jobs that are running jobs, the returned json information is missing the “description” field.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-21943
>                 URL: https://issues.apache.org/jira/browse/SPARK-21943
>             Project: Spark
>          Issue Type: Bug
>          Components: Java API
>    Affects Versions: 2.1.1
>            Reporter: xianquan
>            Priority: Minor
>              Labels: rest_api
>         Attachments: webUI.png
>
>
> When I use rest Api (/ applications / [app-id] / jobs / [job-id]) to view some of the jobs that are running jobs,some of  the returned json information is missing the “description“” field.
> The returned json results are as follows:
>  [{
>   "jobId" : 7,
>   "name" : "run at AccessController.java:0",
>   "submissionTime" : "2017-09-07T09:44:53.632GMT",
>   "stageIds" : [ 19, 17, 18 ],
>   "jobGroup" : "cee1fb91-56bd-4d53-aed4-d409d21809da",
>  * "status" : "RUNNING*",
>   "numTasks" : 202,
>   "numActiveTasks" : 1,
>   "numCompletedTasks" : 0,
>   "numSkippedTasks" : 0,
>   "numFailedTasks" : 0,
>   "numActiveStages" : 2,
>   "numCompletedStages" : 0,
>   "numSkippedStages" : 0,
>   "numFailedStages" : 0
> },
> {
>   "jobId" : 6,
>   "name" : "run at AccessController.java:0",
>   "description" : "select * from test",
>   "submissionTime" : "2017-09-07T09:54:09.532GMT",
>   "stageIds" : [ 24 ],
>   "jobGroup" : "de8071d7-cb09-47af-a343-3d84946c2aff",
>   "status" : "RUNNING",
>   "numTasks" : 1,
>   "numActiveTasks" : 0,
>   "numCompletedTasks" : 0,
>   "numSkippedTasks" : 0,
>   "numFailedTasks" : 0,
>   "numActiveStages" : 1,
>   "numCompletedStages" : 0,
>   "numSkippedStages" : 0,
>   "numFailedStages" : 0
> }]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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