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

Saisai Shao commented on SPARK-21943:
-------------------------------------

>From the code, it says that job description is gotten from the description of 
>last stage in this job. So looks like there's no last stage description for 
>job id "7", I think you need to track the code to know why, but I guess this 
>might be an intended behavior. 

> 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
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to