GitHub user astroshim opened a pull request:
https://github.com/apache/incubator-zeppelin/pull/465
Add job operation API
This PR is related to https://issues.apache.org/jira/browse/ZEPPELIN-137.
I added some notebook job operations.
Here is the examples.
* Get notebook job status.
```
]# curl -XGET http://121.156.59.2:8080/api/notebook/job/2B3Z5BXJA
{"status":"OK","body":[{"id":"20151121-212654_766735423","status":"FINISHED","finished":"Tue
Nov 24 14:21:40 KST 2015","started":"Tue Nov 24 14:21:39 KST
2015"},{"id":"20151121-212657_730976687","status":"FINISHED","finished":"Tue
Nov 24 14:21:40 KST 2015","started":"Tue Nov 24 14:21:40 KST
2015"},{"id":"20151121-235508_752057578","status":"FINISHED","finished":"Tue
Nov 24 14:21:40 KST 2015","started":"Tue Nov 24 14:21:40 KST
2015"},{"id":"20151121-235900_1491052248","status":"FINISHED","finished":"Tue
Nov 24 14:21:41 KST 2015","started":"Tue Nov 24 14:21:40 KST
2015"},{"id":"20151121-235909_1520022794","status":"RUNNING","finished":"Tue
Nov 24 02:53:51 KST 2015","started":"Tue Nov 24 14:21:41 KST 2015"}]}
```
* Run notebook job.
```
]# curl -XDELETE http://121.156.59.2:8080/api/notebook/job/2B3Z5BXJA
{"status":"ACCEPTED"}
```
* Stop(Delete) notebook job.
```
]# curl -XDELETE http://121.156.59.2:8080/api/notebook/job/2B3Z5BXJA
{"status":"ACCEPTED"}
```
* Run requested paragraph job.
```
]# curl -XPOST
http://121.156.59.2:8080/api/notebook/job/2B3Z5BXJA/20151121-212654_766735423
{"status":"ACCEPTED"}
```
* Stop(Delete) requested paragraph job.
```
]# curl -XDELETE
http://121.156.59.2:8080/api/notebook/job/2B3Z5BXJA/20151121-212654_766735423
{"status":"ACCEPTED"}
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/astroshim/incubator-zeppelin improve/addApis
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-zeppelin/pull/465.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #465
----
commit 1255674531d09c2f069d5a83e9307f10242b2330
Author: astroshim <[email protected]>
Date: 2015-11-24T04:59:07Z
add job operation api
commit 6c1acf3c0bdcfa8eb4ef23b6f3cb60f98407338f
Author: astroshim <[email protected]>
Date: 2015-11-24T05:24:28Z
fix result message.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---