From f9546dacb6c7d25b93d952aa421a80acc6532c11 Mon Sep 17 00:00:00 2001 From: guoxiaolongzte <guo.xiaolong1@zte.com.cn> Date: Tue, 4 Apr 2017 09:56:17 +0100 Subject: [PATCH] =?UTF-8?q?[SPARK-20190][APP-ID]=20applications//jobs'=20i?= =?UTF-8?q?n=20rest=20api,status=20should=20be=20[running|s=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …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.xiaolong1@zte.com.cn> Closes #17507 from guoxiaolongzte/SPARK-20190. (cherry picked from commit c95fbea68e9dfb2c96a1d13dde17d80a37066ae6) Signed-off-by: Sean Owen <sowen@cloudera.com> --- docs/monitoring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/monitoring.md b/docs/monitoring.md index 5c8539d1e2..be593501f9 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> -- GitLab