Skip to content

Commit

Permalink
[SPARK-20190][APP-ID] applications//jobs' in rest api,status should b…
Browse files Browse the repository at this point in the history
…e [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.xiaolong1@zte.com.cn>

Closes #17507 from guoxiaolongzte/SPARK-20190.
  • Loading branch information
guoxiaolongzte authored and srowen committed Apr 4, 2017
1 parent b34f766 commit c95fbea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/monitoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,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>
Expand Down

0 comments on commit c95fbea

Please sign in to comment.