Repository: spark Updated Branches: refs/heads/branch-2.1 77700ea38 -> f9546dacb
[SPARK-20190][APP-ID] applications//jobs' in rest api,status should be [running|s⦠â¦ucceeded|failed|unknown] ## What changes were proposed in this pull request? '/applications/[app-id]/jobs' in rest api.status should be'[running|succeeded|failed|unknown]'. now status is '[complete|succeeded|failed]'. but '/applications/[app-id]/jobs?status=complete' the server return 'HTTP ERROR 404'. Added '?status=running' and '?status=unknown'. code ï¼ public enum JobExecutionStatus { RUNNING, SUCCEEDED, FAILED, UNKNOWN; ## How was this patch tested? manual tests Please review http://spark.apache.org/contributing.html before opening a pull request. Author: guoxiaolongzte <guo.xiaolo...@zte.com.cn> Closes #17507 from guoxiaolongzte/SPARK-20190. (cherry picked from commit c95fbea68e9dfb2c96a1d13dde17d80a37066ae6) Signed-off-by: Sean Owen <so...@cloudera.com> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/f9546dac Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/f9546dac Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/f9546dac Branch: refs/heads/branch-2.1 Commit: f9546dacb6c7d25b93d952aa421a80acc6532c11 Parents: 77700ea Author: guoxiaolongzte <guo.xiaolo...@zte.com.cn> Authored: Tue Apr 4 09:56:17 2017 +0100 Committer: Sean Owen <so...@cloudera.com> Committed: Tue Apr 4 09:56:26 2017 +0100 ---------------------------------------------------------------------- docs/monitoring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/f9546dac/docs/monitoring.md ---------------------------------------------------------------------- diff --git a/docs/monitoring.md b/docs/monitoring.md index 5c8539d..be59350 100644 --- a/docs/monitoring.md +++ b/docs/monitoring.md @@ -278,7 +278,7 @@ can be identified by their `[attempt-id]`. In the API listed below, when running <td><code>/applications/[app-id]/jobs</code></td> <td> A list of all jobs for a given application. - <br><code>?status=[complete|succeeded|failed]</code> list only jobs in the specific state. + <br><code>?status=[running|succeeded|failed|unknown]</code> list only jobs in the specific state. </td> </tr> <tr> --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org