2015-10-03 22:51:51 +00:00
---
layout: page
2016-08-06 05:50:25 +00:00
title: "Apache Zeppelin Notebook REST API"
description: "This page contains Apache Zeppelin Notebook REST API information."
2015-10-03 22:51:51 +00:00
group: rest-api
---
2015-11-12 10:54:38 +00:00
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
2015-10-03 22:51:51 +00:00
{% include JB/setup %}
2016-06-25 19:44:53 +00:00
# Apache Zeppelin Notebook REST API
2016-04-22 06:37:44 +00:00
2016-06-25 19:44:53 +00:00
< div id = "toc" > < / div >
2016-04-22 06:37:44 +00:00
2016-06-25 19:44:53 +00:00
## Overview
Apache Zeppelin provides several REST APIs for interaction and remote activation of zeppelin functionality.
All REST APIs are available starting with the following endpoint `http://[zeppelin-server]:[zeppelin-port]/api` .
Note that Apache Zeppelin REST APIs receive or return JSON objects, it is recommended for you to install some JSON viewers such as [JSONView ](https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc ).
If you work with Apache Zeppelin and find a need for an additional REST API, please [file an issue or send us an email ](http://zeppelin.apache.org/community.html ).
2016-04-22 06:37:44 +00:00
2016-06-05 04:54:02 +00:00
## Notebook REST API List
2015-10-03 22:51:51 +00:00
2016-06-05 04:54:02 +00:00
Notebooks REST API supports the following operations: List, Create, Get, Delete, Clone, Run, Export, Import as detailed in the following tables.
2016-04-22 06:37:44 +00:00
2016-10-24 11:26:33 +00:00
### List of the notes
2015-11-04 13:09:06 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```GET``` method lists the available notes on your server.
Notebook JSON contains the ```name``` and ```id``` of all notes.
2015-11-04 13:09:06 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook```< / td >
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre >
{
"status": "OK",
"message": "",
"body": [
{
"name":"Homepage",
"id":"2AV4WUEMK"
},
{
"name":"Zeppelin Tutorial",
"id":"2A94M5J1Z"
}
]
}< / pre > < / td >
2015-11-04 13:09:06 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
2015-11-04 13:09:06 +00:00
< br / >
2016-10-24 11:26:33 +00:00
### Create a new note
2015-10-03 22:51:51 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```POST``` method creates a new note using the given name or default name if none given.
The body field of the returned JSON contains the new note id.
2015-10-03 22:51:51 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook```< / td >
< / tr >
< tr >
< td > Success code< / td >
< td > 201< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
2015-12-16 02:24:08 +00:00
< td > sample JSON input (without paragraphs) < / td >
2016-10-24 11:26:33 +00:00
< td > < pre > {"name": "name of new note"}< / pre > < / td >
2015-12-16 02:24:08 +00:00
< / tr >
< tr >
< td > sample JSON input (with initial paragraphs) < / td >
< td > < pre >
{
2016-10-24 11:26:33 +00:00
"name": "name of new note",
2015-12-16 02:24:08 +00:00
"paragraphs": [
{
"title": "paragraph title1",
"text": "paragraph text1"
},
{
"title": "paragraph title2",
"text": "paragraph text2"
}
]
2016-06-05 04:54:02 +00:00
}< / pre > < / td >
2015-10-03 22:51:51 +00:00
< / tr >
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre >
{
"status": "CREATED",
"message": "",
"body": "2AZPHY918"
}< / pre > < / td >
2015-10-03 22:51:51 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
2015-12-17 20:50:15 +00:00
< br / >
2016-10-24 11:26:33 +00:00
### Get an existing note information
2015-12-17 20:50:15 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```GET``` method retrieves an existing note's information using the given id.
The body field of the returned JSON contain information about paragraphs in the note.
2015-12-17 20:50:15 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]```< / td >
2015-12-17 20:50:15 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON response < / td >
< td > < pre >
{
"status": "OK",
"message": "",
"body": {
"paragraphs": [
{
"text": "%sql \nselect age, count(1) value\nfrom bank \nwhere age < 30 \ngroup by age \norder by age ",
"config": {
"colWidth": 4,
"graph": {
"mode": "multiBarChart",
"height": 300,
"optionOpen": false,
"keys": [
{
"name": "age",
"index": 0,
"aggr": "sum"
}
],
"values": [
{
"name": "value",
"index": 1,
"aggr": "sum"
}
],
"groups": [],
"scatter": {
"xAxis": {
"name": "age",
"index": 0,
"aggr": "sum"
},
"yAxis": {
"name": "value",
"index": 1,
"aggr": "sum"
}
}
}
},
"settings": {
"params": {},
"forms": {}
},
2016-06-05 04:54:02 +00:00
"jobName": "paragraph\_1423500782552\_-1439281894",
"id": "20150210-015302\_1492795503",
[ZEPPELIN-212] Multiple paragraph results
### What is this PR for?
Currently a paragraph can display only a single type of result.
For example
```
print("""
%text textout
%html htmlout
""")
```
will display only last display system detected, "htmlout".
This pr implements multiple results supports, so not only the last, but also all the display systems in a paragraph outputs can be displayed.
To do that, Note.json format need to be changed. from
```
paragraph : [
{
result : {
code: "",
type: "",
msg: ""
},
config : {
graph : {},
...
},
...
},
...
],
...
```
to
```
paragraph : [
{
results : {
{
code: "",
msg: [
{
type: "",
data: ""
},
{
type: "",
data: ""
},
...
]
},
config : {
results : [
{
graph : {},
},
{
graph : {},
},
...
]
},
...
},
...
],
...
```
### What type of PR is it?
Improvement
### Todos
* [x] - Make InterpreterResult and InterpreterOutput support multiple display system
* [x] - Automatic migration old format to new format
* [x] - Render multiple results in front-end
* [x] - Take care Importing old notebook format
* [x] - Make helium framework support multiple results
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-212
### How should this be tested?
run following code in a single spark paragraph.
```
%spark
// default output is text
(1 to 3).foreach{i=>
println(new java.util.Date())
Thread.sleep(1000)
}
// print something in html
println(s"""%html <h3><font style="color:blue">Some HTML</font></h3>""")
// create table
println(s"""%table key\tvalue
sun\t100
moon\t200
""")
// display text again
println("""%text""")
(1 to 3).foreach{i=>
println(new java.util.Date())
Thread.sleep(1000)
}
// another table
Thread.sleep(1000)
println(s"""%table key\tvalue
apple\t100
banana\t200
""")
```
### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? yes
* Does this needs documentation? yes
Author: Lee moon soo <moon@apache.org>
Closes #1658 from Leemoonsoo/ZEPPELIN-212 and squashes the following commits:
0c6a13c [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
519cf23 [Lee moon soo] Update PythonInterpreterPandasSqlTest
e6268ac [Lee moon soo] Update PythonInterpreterMatplotlibTest.java
f5034b8 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
d5981d5 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
a1fe729 [Lee moon soo] document note format change
282504e [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
7ab6679 [Lee moon soo] update selenium test
6a897a5 [Lee moon soo] Update rest-api doc
cbbd58a [Lee moon soo] update unittest
e89c9b8 [Lee moon soo] restore tutoral note
3ba37b7 [Lee moon soo] Let old version import note without error
d09e03f [Lee moon soo] enable helium only in the last result
6682908 [Lee moon soo] Remove unnecessary listener method
0f1d28f [Lee moon soo] Merge branch 'master' into ZEPPELIN-212
73b3a81 [Lee moon soo] update selenium test
e69f1a1 [Lee moon soo] update test
f12230f [Lee moon soo] Remove unnecessary newline in test
26e201a [Lee moon soo] Update testcase
b01d70f [Lee moon soo] Make helium app work
0a5b4d1 [Lee moon soo] Update HeliumApplicationFactoryTest
d8ca07f [Lee moon soo] update NotebookTest
aaf9778 [Lee moon soo] fix r test
3e43df4 [Lee moon soo] make zeppelin-web test pass
1d6fd3e [Lee moon soo] fix compile errors
0156ffc [Lee moon soo] take care angular object
804768d [Lee moon soo] Take care output streaming
57d6b2f [Lee moon soo] Render multiple results
95b6037 [Lee moon soo] Multiple results
2016-11-30 04:50:49 +00:00
"results": {
2015-12-17 20:50:15 +00:00
"code": "SUCCESS",
[ZEPPELIN-212] Multiple paragraph results
### What is this PR for?
Currently a paragraph can display only a single type of result.
For example
```
print("""
%text textout
%html htmlout
""")
```
will display only last display system detected, "htmlout".
This pr implements multiple results supports, so not only the last, but also all the display systems in a paragraph outputs can be displayed.
To do that, Note.json format need to be changed. from
```
paragraph : [
{
result : {
code: "",
type: "",
msg: ""
},
config : {
graph : {},
...
},
...
},
...
],
...
```
to
```
paragraph : [
{
results : {
{
code: "",
msg: [
{
type: "",
data: ""
},
{
type: "",
data: ""
},
...
]
},
config : {
results : [
{
graph : {},
},
{
graph : {},
},
...
]
},
...
},
...
],
...
```
### What type of PR is it?
Improvement
### Todos
* [x] - Make InterpreterResult and InterpreterOutput support multiple display system
* [x] - Automatic migration old format to new format
* [x] - Render multiple results in front-end
* [x] - Take care Importing old notebook format
* [x] - Make helium framework support multiple results
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-212
### How should this be tested?
run following code in a single spark paragraph.
```
%spark
// default output is text
(1 to 3).foreach{i=>
println(new java.util.Date())
Thread.sleep(1000)
}
// print something in html
println(s"""%html <h3><font style="color:blue">Some HTML</font></h3>""")
// create table
println(s"""%table key\tvalue
sun\t100
moon\t200
""")
// display text again
println("""%text""")
(1 to 3).foreach{i=>
println(new java.util.Date())
Thread.sleep(1000)
}
// another table
Thread.sleep(1000)
println(s"""%table key\tvalue
apple\t100
banana\t200
""")
```
### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? yes
* Does this needs documentation? yes
Author: Lee moon soo <moon@apache.org>
Closes #1658 from Leemoonsoo/ZEPPELIN-212 and squashes the following commits:
0c6a13c [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
519cf23 [Lee moon soo] Update PythonInterpreterPandasSqlTest
e6268ac [Lee moon soo] Update PythonInterpreterMatplotlibTest.java
f5034b8 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
d5981d5 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
a1fe729 [Lee moon soo] document note format change
282504e [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
7ab6679 [Lee moon soo] update selenium test
6a897a5 [Lee moon soo] Update rest-api doc
cbbd58a [Lee moon soo] update unittest
e89c9b8 [Lee moon soo] restore tutoral note
3ba37b7 [Lee moon soo] Let old version import note without error
d09e03f [Lee moon soo] enable helium only in the last result
6682908 [Lee moon soo] Remove unnecessary listener method
0f1d28f [Lee moon soo] Merge branch 'master' into ZEPPELIN-212
73b3a81 [Lee moon soo] update selenium test
e69f1a1 [Lee moon soo] update test
f12230f [Lee moon soo] Remove unnecessary newline in test
26e201a [Lee moon soo] Update testcase
b01d70f [Lee moon soo] Make helium app work
0a5b4d1 [Lee moon soo] Update HeliumApplicationFactoryTest
d8ca07f [Lee moon soo] update NotebookTest
aaf9778 [Lee moon soo] fix r test
3e43df4 [Lee moon soo] make zeppelin-web test pass
1d6fd3e [Lee moon soo] fix compile errors
0156ffc [Lee moon soo] take care angular object
804768d [Lee moon soo] Take care output streaming
57d6b2f [Lee moon soo] Render multiple results
95b6037 [Lee moon soo] Multiple results
2016-11-30 04:50:49 +00:00
"msg": [
{
"type": "TABLE",
"data": "age\tvalue\n19\t4\n20\t3\n21\t7\n22\t9\n23\t20\n24\t24\n25\t44\n26\t77\n27\t94\n28\t103\n29\t97\n"
}
]
2015-12-17 20:50:15 +00:00
},
"dateCreated": "Feb 10, 2015 1:53:02 AM",
"dateStarted": "Jul 3, 2015 1:43:17 PM",
"dateFinished": "Jul 3, 2015 1:43:23 PM",
"status": "FINISHED",
"progressUpdateIntervalMs": 500
}
],
"name": "Zeppelin Tutorial",
"id": "2A94M5J1Z",
"angularObjects": {},
"config": {
"looknfeel": "default"
},
"info": {}
}
2016-06-05 04:54:02 +00:00
}< / pre > < / td >
2015-12-17 20:50:15 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
2015-10-03 22:51:51 +00:00
< br / >
2016-10-24 11:26:33 +00:00
### Delete a note
2015-10-03 22:51:51 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```DELETE``` method deletes a note by the given note id.
2015-10-03 22:51:51 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]```< / td >
2015-10-03 22:51:51 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre > {"status": "OK","message": ""}< / pre > < / td >
2015-10-03 22:51:51 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
2015-10-03 22:51:51 +00:00
< br / >
2016-10-24 11:26:33 +00:00
### Clone a note
2015-10-03 22:51:51 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```POST``` method clones a note by the given id and create a new note using the given name
2015-10-03 22:51:51 +00:00
or default name if none given.
2016-10-24 11:26:33 +00:00
The body field of the returned JSON contains the new note id.
2015-10-03 22:51:51 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]```< / td >
2015-10-03 22:51:51 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 201< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON input < / td >
2016-10-24 11:26:33 +00:00
< td > < pre > {"name": "name of new note"}< / pre > < / td >
2015-10-03 22:51:51 +00:00
< / tr >
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre >
{
"status": "CREATED",
"message": "",
"body": "2AZPHY918"
}< / pre > < / td >
2015-10-03 22:51:51 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< br / >
2016-06-25 19:44:53 +00:00
### Run all paragraphs
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-08-23 15:31:12 +00:00
< td >
2016-10-24 11:26:33 +00:00
This ```POST``` method runs all paragraphs in the given note id. < br / >
If you can not find Note id 404 returns.
2016-08-23 15:31:12 +00:00
If there is a problem with the interpreter returns a 412 error.
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/job/[noteId]```< / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
2016-08-23 15:31:12 +00:00
< td > 404 or 412< / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre > {"status": "OK"}< / pre > < / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
2016-08-23 15:31:12 +00:00
< tr >
< td > sample JSON error response < / td >
< td >
< pre >
{
"status": "NOT_FOUND",
"message": "note not found."
}
< / pre > < br / >
< pre >
{
"status": "PRECONDITION_FAILED",
"message": "paragraph_1469771130099_-278315611 Not selected or Invalid Interpreter bind"
}
< / pre >
< / td >
< / tr >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / table >
2016-04-22 06:37:44 +00:00
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< br / >
2016-06-25 19:44:53 +00:00
### Stop all paragraphs
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```DELETE``` method stops all paragraphs in the given note id.
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/job/[noteId]```< / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON response < / td >
< td > < pre > {"status":"OK"}< / pre > < / td >
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< br / >
2016-06-25 19:44:53 +00:00
### Get the status of all paragraphs
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```GET``` method gets the status of all paragraphs by the given note id.
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
The body field of the returned JSON contains of the array that compose of the paragraph id, paragraph status, paragraph finish date, paragraph started date.
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/job/[noteId]```< / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre >
{
"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"
},
{
"progress":"1",
"id":"20151121-212657\_730976687",
"status":"RUNNING",
"finished":"Tue Nov 24 14:21:35 KST 2015",
"started":"Tue Nov 24 14:21:40 KST 2015"
}
]
}< / pre > < / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
2016-08-04 19:51:01 +00:00
< br / >
### Get the status of a single paragraph
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```GET``` method gets the status of a single paragraph by the given note and paragraph id.
2016-08-04 19:51:01 +00:00
The body field of the returned JSON contains of the array that compose of the paragraph id, paragraph status, paragraph finish date, paragraph started date.
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/job/[noteId]/[paragraphId]```< / td >
2016-08-04 19:51:01 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON response < / td >
< td > < pre >
{
"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"
}
}< / pre > < / td >
< / tr >
< / table >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< br / >
2016-06-02 14:24:38 +00:00
### Run a paragraph asynchronously
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```POST``` method runs the paragraph asynchronously by given note and paragraph id. This API always return SUCCESS even if the execution of the paragraph fails later because the API is asynchronous
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/job/[noteId]/[paragraphId]```< / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
2015-12-21 01:15:12 +00:00
< tr >
< td > sample JSON input (optional, only needed when if you want to update dynamic form's value) < / td >
< td > < pre >
{
2016-10-24 11:26:33 +00:00
"name": "name of new note",
2015-12-21 01:15:12 +00:00
"params": {
"formLabel1": "value1",
"formLabel2": "value2"
}
2016-06-05 04:54:02 +00:00
}< / pre > < / td >
2015-12-21 01:15:12 +00:00
< / tr >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre > {"status": "OK"}< / pre > < / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
2016-06-02 14:24:38 +00:00
< br / >
### Run a paragraph synchronously
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-11-05 03:49:36 +00:00
< td > This ```POST``` method runs the paragraph synchronously by given note and paragraph id. This API can return SUCCESS or ERROR depending on the outcome of the paragraph execution
2016-06-02 14:24:38 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-25 09:53:46 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/run/[noteId]/[paragraphId]```< / td >
2016-06-02 14:24:38 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON input (optional, only needed when if you want to update dynamic form's value) < / td >
< td > < pre >
{
2016-10-24 11:26:33 +00:00
"name": "name of new note",
2016-06-02 14:24:38 +00:00
"params": {
"formLabel1": "value1",
"formLabel2": "value2"
}
}< / pre > < / td >
< / tr >
< tr >
< td > sample JSON response < / td >
< td > < pre > {"status": "OK"}< / pre > < / td >
< / tr >
< tr >
< td > sample JSON error < / td >
< td > < pre >
{
"status": "INTERNAL\_SERVER\_ERROR",
"body": {
"code": "ERROR",
"type": "TEXT",
"msg": "bash: -c: line 0: unexpected EOF while looking for matching ``'\nbash: -c: line 1: syntax error: unexpected end of file\nExitValue: 2"
}
}< / pre > < / td >
< / tr >
< / table >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< br / >
2016-06-25 19:44:53 +00:00
### Stop a paragraph
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```DELETE``` method stops the paragraph by given note and paragraph id.
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/job/[noteId]/[paragraphId]```< / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre > {"status": "OK"}< / pre > < / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< br / >
2016-06-05 04:54:02 +00:00
### Add Cron Job
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```POST``` method adds cron job by the given note id.
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/cron/[noteId]```< / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON input < / td >
2016-10-24 11:26:33 +00:00
< td > < pre > {"cron": "cron expression of note"}< / pre > < / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre > {"status": "OK"}< / pre > < / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< br / >
2016-06-05 04:54:02 +00:00
### Remove Cron Job
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```DELETE``` method removes cron job by the given note id.
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/cron/[noteId]```< / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre > {"status": "OK"}< / pre > < / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< br / >
2016-06-05 04:54:02 +00:00
### Get Cron Job
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```GET``` method gets cron job expression of given note id.
2015-12-17 06:05:09 +00:00
The body field of the returned JSON contains the cron expression.
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/cron/[noteId]```< / td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td >< pre > {"status": "OK", "body": "* * * * * ?"}</ pre ></ td >
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"}
```
Author: astroshim <hsshim@nflabs.com>
Author: root <root@ktadm002.(none)>
Closes #465 from astroshim/improve/addApis and squashes the following commits:
c668ed9 [astroshim] update REST API docs
a83289e [astroshim] fix restapi testcase(status code).
d0afd18 [astroshim] fix http status code.
775e7c8 [astroshim] update testcase.
fe8d5eb [astroshim] check if note config null.
dbd2d03 [astroshim] update note.java to find error.
861f652 [astroshim] fix indent error.
2989096 [astroshim] add generateParagraphsInfo method to Note.java
cb99391 [astroshim] merge with master
8002cd5 [astroshim] change restapi testcase to find build problem.
5bb2c5e [astroshim] fix getCronJob response code.
73f3b2b [astroshim] add cron job api's
3e2ea3d [astroshim] update testcase.
722f05b [astroshim] merge seperated job testcase.
2bff6c9 [root] add job run and stop testcase.
6103c42 [astroshim] fix LineLength build error.
e5f7103 [astroshim] fix whitespace build error.
7a7f993 [astroshim] fix indentation build error.
6c1acf3 [astroshim] fix result message.
1255674 [astroshim] add job operation api
2015-12-09 15:19:49 +00:00
< / tr >
< / table >
ZEPPELIN-501 Notebook search
### What is this PR for?
This PR has for goal to allow the user to search through the code in all the paragraphs *and notebook names* in all the notebooks
It add a simple 'search bar' to the nav-bar of Zeppelin WebApp, and an in-memory fulltext search index of paragraphs to the backend.
The search is pretty basic now, fine-tuning it for better search over all types of source code will be a subject of further work.
### What type of PR is it?
Feature
### Todos
* [x] - Fix typos :dancer: b853aa6
* [x] - fix js issue in js console felizbear 29da337
* [x] - update index on paragraph CRUD:
- [x] Read (initial work)
- [x] Create\Delete 825b266
- [x] Update e915a69
- [x] Delete paragraph
* [x] - add license to zeppelin-distribution/src/bin_license/LICENSE (backend for lucene, not sure about angular-resource as it is part of the AngularJS codebase, but will add just in case) c00b516
* [x] - add missing Apache headers ded9c3b felizbear 29da337
* [x] - fix CI (~~was failing RAT on zengine Too many files with unapproved license: 2~~, now flacky integration test AKA [ZEPPELIN-510](https://issues.apache.org/jira/browse/ZEPPELIN-510))
* [x] - index notebook names e80c3e5, felizbear 29da337
* [x] - make NotebookRepoSync.sync() package private again 5a18bc8
* [x] - NPE on persisting changes of existing notebook
* [x] - reduce log verbosity
### Is there a relevant Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-501
### How should this be tested?
Outline the steps to test the PR here.
### Screenshots (if appropriate)


### Questions:
* Does the licenses files need update? Yes, added to license files
* Is there breaking changes for older versions? No
* Does this needs documentation? Yes
This work is a collaboration with felizbear who contributed major parts of the frontend changes.
Author: Alexander Bezzubov <bzz@apache.org>
Author: felizbear <ilya@nflabs.com>
Author: Alexander <abezzubov@nflabs.com>
Closes #534 from bzz/notebook-search and squashes the following commits:
c7f1d35 [Alexander Bezzubov] ZEPPELIN-501: refactoring, extract SearchService interface + Lucen-based impl
e3af25c [Alexander Bezzubov] ZEPPELIN-501: muting more search logs info->debug
c77d53b [Alexander Bezzubov] ZEPPELIN-501: fix + test for bug in index key structure
78f69a3 [Alexander Bezzubov] ZEPPELIN-501: update index on paragraph delete
73a28bb [Alexander Bezzubov] ZEPPELIN-501: fix NPE on Note creation by NotebookRepo, \wo DI constructor
cf44b1f [Alexander Bezzubov] ZEPPELIN-501: fix NPE on double-delete
d2b44ac [Alexander Bezzubov] ZEPPELIN-501: stop printing whole note in logs
f30e6c8 [Alexander Bezzubov] Merge branch 'master' into notebook-search
da69c07 [Alexander Bezzubov] ZEPPELIN-501: validate notes before update index
5f47890 [Alexander Bezzubov] ZEPPELIN-501: fix bug (merge artefact) that failed CI befor
e915a69 [Alexander Bezzubov] ZEPPELIN-501: update notebooks on save + tests
3f20904 [Alexander Bezzubov] ZEPPELIN-501: refactoring, compiler warning in Paragraph.java
40cf9e8 [Alexander Bezzubov] ZEPPELIN-501: refactoring, cleaning compiler warnings in Notebook.java
6a3906f [Alexander Bezzubov] Merge branch 'master' into notebook-search
2b2f8dc [Alexander Bezzubov] Merge branch 'master' into notebook-search
44235eb [Alexander Bezzubov] ZEPPELIN-501: refactoring, cleaning compiler warnings in Note.java
eb7878a [Alexander Bezzubov] Merge branch 'master' into notebook-search
0ce8a92 [Alexander Bezzubov] ZEPPELIN-501: add missing logger
6da1dc9 [Alexander Bezzubov] Merge branch 'master' into notebook-search
8c0f29a [Alexander Bezzubov] ZEPPELIN-501: fixing NPE in tests \w mocks
825b266 [Alexander Bezzubov] ZEPPELIN-501: refactoring + handling index Create\Delete
b13d5fb [Alexander Bezzubov] Merge branch 'master' into notebook-search
009b290 [Alexander Bezzubov] ZEPPELIN-501: muting logs back
0efc00e [Alexander Bezzubov] Merge branch 'master' into notebook-search
b0b2c54 [Alexander Bezzubov] ZEPPELIN-501: refactoring, renames + verbose logging ON
36b2467 [Alexander Bezzubov] ZEPPELIN-501: add default val for Note.name
c7ae983 [Alexander Bezzubov] Merge branch 'master' into notebook-search
ded9c3b [Alexander Bezzubov] ZEPPELIN-501: adding missing license headers
cd2173e [Alexander Bezzubov] ZEPPELIN-501: tixing fypo in docs, again :see_no_evil:
1952847 [Alexander Bezzubov] ZEPPELIN-501: minor test update
6180c86 [Alexander Bezzubov] ZEPPELIN-501: mute logs, invalid notes do not fail all indexing
29da337 [Alexander] Merge pull request #7 from felizbear/search-fix
c00b516 [Alexander Bezzubov] ZEPPELIN-501: update LICENCE file with new deps
5a18bc8 [Alexander Bezzubov] ZEPPELIN-501: restore NotebookRepoSync.sync() visibility + compiler warning cleanup
fcbff3d [felizbear] add missing apache license info to a source file
00f0315 [felizbear] handle notebooks is search results
7d06686 [felizbear] fix search-related bug in notebook controller
e80c3e5 [Alexander Bezzubov] ZEPPELIN-501: Indexing notebook names
b853aa6 [Alexander Bezzubov] ZEPPELIN-501: fixing typos in docs
82c7dd7 [Alexander Bezzubov] ZEPPELIN-501: reverting accidental changes
71ec51f [felizbear] clear search field on navigation to home view (/)
1e1357c [felizbear] redirect to notebook and scroll to paragraph from search view
09d44d2 [Alexander Bezzubov] Search: re-index note on every change
b2b93c4 [Alexander Bezzubov] Search: refatoring, move SearchService from NotebookRepoSync -> Notebook
08fe806 [Alexander Bezzubov] Search: adding tests
63a4e05 [Alexander Bezzubov] Search: adding search API docs
98f4e59 [Alexander Bezzubov] Search: refactoring, rename fragment -> snippet
5c1e3e4 [Alexander Bezzubov] Refatoring - removing old annotations
e363ed4 [Alexander Bezzubov] Search: make jshint happy
7aad5cf [Alexander Bezzubov] Search: make checkstyle happy
6ccd6f1 [Alexander Bezzubov] Search: nuke compiler warnings in NotebookRestApi
aa5ddb3 [felizbear] center search results on screen
227c6b4 [felizbear] update search results view: add panels for results
865925c [felizbear] highlight syntax and search terms in search results
9ca8628 [Alexander Bezzubov] Search: merge first 3 fragments + full paragraph in search result
11127f0 [felizbear] style search widget for notebook search
db246fa [Alexander Bezzubov] Search: highlighting added using fragments
c2c2a52 [Alexander Bezzubov] Search: backend indexing using Lucene added to zengine
163a465 [Alexander Bezzubov] Search: add search/result-list and switch to
bc2458a [Alexander Bezzubov] Get rid of compiler warnings
3900b60 [Alexander Bezzubov] Search: disabling UI on disconnect
7880237 [Alexander Bezzubov] Search: backend REST API scetch /notebooks/search?q=... added
c5928f9 [Alexander Bezzubov] Search: form added to navbar in frontend
2015-12-23 08:48:03 +00:00
2016-06-05 04:54:02 +00:00
< br / >
2016-10-24 11:26:33 +00:00
### Full text search through the paragraphs in all notes
ZEPPELIN-501 Notebook search
### What is this PR for?
This PR has for goal to allow the user to search through the code in all the paragraphs *and notebook names* in all the notebooks
It add a simple 'search bar' to the nav-bar of Zeppelin WebApp, and an in-memory fulltext search index of paragraphs to the backend.
The search is pretty basic now, fine-tuning it for better search over all types of source code will be a subject of further work.
### What type of PR is it?
Feature
### Todos
* [x] - Fix typos :dancer: b853aa6
* [x] - fix js issue in js console felizbear 29da337
* [x] - update index on paragraph CRUD:
- [x] Read (initial work)
- [x] Create\Delete 825b266
- [x] Update e915a69
- [x] Delete paragraph
* [x] - add license to zeppelin-distribution/src/bin_license/LICENSE (backend for lucene, not sure about angular-resource as it is part of the AngularJS codebase, but will add just in case) c00b516
* [x] - add missing Apache headers ded9c3b felizbear 29da337
* [x] - fix CI (~~was failing RAT on zengine Too many files with unapproved license: 2~~, now flacky integration test AKA [ZEPPELIN-510](https://issues.apache.org/jira/browse/ZEPPELIN-510))
* [x] - index notebook names e80c3e5, felizbear 29da337
* [x] - make NotebookRepoSync.sync() package private again 5a18bc8
* [x] - NPE on persisting changes of existing notebook
* [x] - reduce log verbosity
### Is there a relevant Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-501
### How should this be tested?
Outline the steps to test the PR here.
### Screenshots (if appropriate)


### Questions:
* Does the licenses files need update? Yes, added to license files
* Is there breaking changes for older versions? No
* Does this needs documentation? Yes
This work is a collaboration with felizbear who contributed major parts of the frontend changes.
Author: Alexander Bezzubov <bzz@apache.org>
Author: felizbear <ilya@nflabs.com>
Author: Alexander <abezzubov@nflabs.com>
Closes #534 from bzz/notebook-search and squashes the following commits:
c7f1d35 [Alexander Bezzubov] ZEPPELIN-501: refactoring, extract SearchService interface + Lucen-based impl
e3af25c [Alexander Bezzubov] ZEPPELIN-501: muting more search logs info->debug
c77d53b [Alexander Bezzubov] ZEPPELIN-501: fix + test for bug in index key structure
78f69a3 [Alexander Bezzubov] ZEPPELIN-501: update index on paragraph delete
73a28bb [Alexander Bezzubov] ZEPPELIN-501: fix NPE on Note creation by NotebookRepo, \wo DI constructor
cf44b1f [Alexander Bezzubov] ZEPPELIN-501: fix NPE on double-delete
d2b44ac [Alexander Bezzubov] ZEPPELIN-501: stop printing whole note in logs
f30e6c8 [Alexander Bezzubov] Merge branch 'master' into notebook-search
da69c07 [Alexander Bezzubov] ZEPPELIN-501: validate notes before update index
5f47890 [Alexander Bezzubov] ZEPPELIN-501: fix bug (merge artefact) that failed CI befor
e915a69 [Alexander Bezzubov] ZEPPELIN-501: update notebooks on save + tests
3f20904 [Alexander Bezzubov] ZEPPELIN-501: refactoring, compiler warning in Paragraph.java
40cf9e8 [Alexander Bezzubov] ZEPPELIN-501: refactoring, cleaning compiler warnings in Notebook.java
6a3906f [Alexander Bezzubov] Merge branch 'master' into notebook-search
2b2f8dc [Alexander Bezzubov] Merge branch 'master' into notebook-search
44235eb [Alexander Bezzubov] ZEPPELIN-501: refactoring, cleaning compiler warnings in Note.java
eb7878a [Alexander Bezzubov] Merge branch 'master' into notebook-search
0ce8a92 [Alexander Bezzubov] ZEPPELIN-501: add missing logger
6da1dc9 [Alexander Bezzubov] Merge branch 'master' into notebook-search
8c0f29a [Alexander Bezzubov] ZEPPELIN-501: fixing NPE in tests \w mocks
825b266 [Alexander Bezzubov] ZEPPELIN-501: refactoring + handling index Create\Delete
b13d5fb [Alexander Bezzubov] Merge branch 'master' into notebook-search
009b290 [Alexander Bezzubov] ZEPPELIN-501: muting logs back
0efc00e [Alexander Bezzubov] Merge branch 'master' into notebook-search
b0b2c54 [Alexander Bezzubov] ZEPPELIN-501: refactoring, renames + verbose logging ON
36b2467 [Alexander Bezzubov] ZEPPELIN-501: add default val for Note.name
c7ae983 [Alexander Bezzubov] Merge branch 'master' into notebook-search
ded9c3b [Alexander Bezzubov] ZEPPELIN-501: adding missing license headers
cd2173e [Alexander Bezzubov] ZEPPELIN-501: tixing fypo in docs, again :see_no_evil:
1952847 [Alexander Bezzubov] ZEPPELIN-501: minor test update
6180c86 [Alexander Bezzubov] ZEPPELIN-501: mute logs, invalid notes do not fail all indexing
29da337 [Alexander] Merge pull request #7 from felizbear/search-fix
c00b516 [Alexander Bezzubov] ZEPPELIN-501: update LICENCE file with new deps
5a18bc8 [Alexander Bezzubov] ZEPPELIN-501: restore NotebookRepoSync.sync() visibility + compiler warning cleanup
fcbff3d [felizbear] add missing apache license info to a source file
00f0315 [felizbear] handle notebooks is search results
7d06686 [felizbear] fix search-related bug in notebook controller
e80c3e5 [Alexander Bezzubov] ZEPPELIN-501: Indexing notebook names
b853aa6 [Alexander Bezzubov] ZEPPELIN-501: fixing typos in docs
82c7dd7 [Alexander Bezzubov] ZEPPELIN-501: reverting accidental changes
71ec51f [felizbear] clear search field on navigation to home view (/)
1e1357c [felizbear] redirect to notebook and scroll to paragraph from search view
09d44d2 [Alexander Bezzubov] Search: re-index note on every change
b2b93c4 [Alexander Bezzubov] Search: refatoring, move SearchService from NotebookRepoSync -> Notebook
08fe806 [Alexander Bezzubov] Search: adding tests
63a4e05 [Alexander Bezzubov] Search: adding search API docs
98f4e59 [Alexander Bezzubov] Search: refactoring, rename fragment -> snippet
5c1e3e4 [Alexander Bezzubov] Refatoring - removing old annotations
e363ed4 [Alexander Bezzubov] Search: make jshint happy
7aad5cf [Alexander Bezzubov] Search: make checkstyle happy
6ccd6f1 [Alexander Bezzubov] Search: nuke compiler warnings in NotebookRestApi
aa5ddb3 [felizbear] center search results on screen
227c6b4 [felizbear] update search results view: add panels for results
865925c [felizbear] highlight syntax and search terms in search results
9ca8628 [Alexander Bezzubov] Search: merge first 3 fragments + full paragraph in search result
11127f0 [felizbear] style search widget for notebook search
db246fa [Alexander Bezzubov] Search: highlighting added using fragments
c2c2a52 [Alexander Bezzubov] Search: backend indexing using Lucene added to zengine
163a465 [Alexander Bezzubov] Search: add search/result-list and switch to
bc2458a [Alexander Bezzubov] Get rid of compiler warnings
3900b60 [Alexander Bezzubov] Search: disabling UI on disconnect
7880237 [Alexander Bezzubov] Search: backend REST API scetch /notebooks/search?q=... added
c5928f9 [Alexander Bezzubov] Search: form added to navbar in frontend
2015-12-23 08:48:03 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
< td > ```GET``` request will return list of matching paragraphs
< / td >
< / tr >
< tr >
< td > URL< / td >
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/search?q=[query]```< / td >
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > Sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre >
{
"status": "OK",
"body": [
{
"id": "< noteId > /paragraph/< paragraphId > ",
2016-10-24 11:26:33 +00:00
"name":"Note Name",
2016-06-05 04:54:02 +00:00
"snippet":"",
"text":""
}
]
}< / pre > < / td >
ZEPPELIN-501 Notebook search
### What is this PR for?
This PR has for goal to allow the user to search through the code in all the paragraphs *and notebook names* in all the notebooks
It add a simple 'search bar' to the nav-bar of Zeppelin WebApp, and an in-memory fulltext search index of paragraphs to the backend.
The search is pretty basic now, fine-tuning it for better search over all types of source code will be a subject of further work.
### What type of PR is it?
Feature
### Todos
* [x] - Fix typos :dancer: b853aa6
* [x] - fix js issue in js console felizbear 29da337
* [x] - update index on paragraph CRUD:
- [x] Read (initial work)
- [x] Create\Delete 825b266
- [x] Update e915a69
- [x] Delete paragraph
* [x] - add license to zeppelin-distribution/src/bin_license/LICENSE (backend for lucene, not sure about angular-resource as it is part of the AngularJS codebase, but will add just in case) c00b516
* [x] - add missing Apache headers ded9c3b felizbear 29da337
* [x] - fix CI (~~was failing RAT on zengine Too many files with unapproved license: 2~~, now flacky integration test AKA [ZEPPELIN-510](https://issues.apache.org/jira/browse/ZEPPELIN-510))
* [x] - index notebook names e80c3e5, felizbear 29da337
* [x] - make NotebookRepoSync.sync() package private again 5a18bc8
* [x] - NPE on persisting changes of existing notebook
* [x] - reduce log verbosity
### Is there a relevant Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-501
### How should this be tested?
Outline the steps to test the PR here.
### Screenshots (if appropriate)


### Questions:
* Does the licenses files need update? Yes, added to license files
* Is there breaking changes for older versions? No
* Does this needs documentation? Yes
This work is a collaboration with felizbear who contributed major parts of the frontend changes.
Author: Alexander Bezzubov <bzz@apache.org>
Author: felizbear <ilya@nflabs.com>
Author: Alexander <abezzubov@nflabs.com>
Closes #534 from bzz/notebook-search and squashes the following commits:
c7f1d35 [Alexander Bezzubov] ZEPPELIN-501: refactoring, extract SearchService interface + Lucen-based impl
e3af25c [Alexander Bezzubov] ZEPPELIN-501: muting more search logs info->debug
c77d53b [Alexander Bezzubov] ZEPPELIN-501: fix + test for bug in index key structure
78f69a3 [Alexander Bezzubov] ZEPPELIN-501: update index on paragraph delete
73a28bb [Alexander Bezzubov] ZEPPELIN-501: fix NPE on Note creation by NotebookRepo, \wo DI constructor
cf44b1f [Alexander Bezzubov] ZEPPELIN-501: fix NPE on double-delete
d2b44ac [Alexander Bezzubov] ZEPPELIN-501: stop printing whole note in logs
f30e6c8 [Alexander Bezzubov] Merge branch 'master' into notebook-search
da69c07 [Alexander Bezzubov] ZEPPELIN-501: validate notes before update index
5f47890 [Alexander Bezzubov] ZEPPELIN-501: fix bug (merge artefact) that failed CI befor
e915a69 [Alexander Bezzubov] ZEPPELIN-501: update notebooks on save + tests
3f20904 [Alexander Bezzubov] ZEPPELIN-501: refactoring, compiler warning in Paragraph.java
40cf9e8 [Alexander Bezzubov] ZEPPELIN-501: refactoring, cleaning compiler warnings in Notebook.java
6a3906f [Alexander Bezzubov] Merge branch 'master' into notebook-search
2b2f8dc [Alexander Bezzubov] Merge branch 'master' into notebook-search
44235eb [Alexander Bezzubov] ZEPPELIN-501: refactoring, cleaning compiler warnings in Note.java
eb7878a [Alexander Bezzubov] Merge branch 'master' into notebook-search
0ce8a92 [Alexander Bezzubov] ZEPPELIN-501: add missing logger
6da1dc9 [Alexander Bezzubov] Merge branch 'master' into notebook-search
8c0f29a [Alexander Bezzubov] ZEPPELIN-501: fixing NPE in tests \w mocks
825b266 [Alexander Bezzubov] ZEPPELIN-501: refactoring + handling index Create\Delete
b13d5fb [Alexander Bezzubov] Merge branch 'master' into notebook-search
009b290 [Alexander Bezzubov] ZEPPELIN-501: muting logs back
0efc00e [Alexander Bezzubov] Merge branch 'master' into notebook-search
b0b2c54 [Alexander Bezzubov] ZEPPELIN-501: refactoring, renames + verbose logging ON
36b2467 [Alexander Bezzubov] ZEPPELIN-501: add default val for Note.name
c7ae983 [Alexander Bezzubov] Merge branch 'master' into notebook-search
ded9c3b [Alexander Bezzubov] ZEPPELIN-501: adding missing license headers
cd2173e [Alexander Bezzubov] ZEPPELIN-501: tixing fypo in docs, again :see_no_evil:
1952847 [Alexander Bezzubov] ZEPPELIN-501: minor test update
6180c86 [Alexander Bezzubov] ZEPPELIN-501: mute logs, invalid notes do not fail all indexing
29da337 [Alexander] Merge pull request #7 from felizbear/search-fix
c00b516 [Alexander Bezzubov] ZEPPELIN-501: update LICENCE file with new deps
5a18bc8 [Alexander Bezzubov] ZEPPELIN-501: restore NotebookRepoSync.sync() visibility + compiler warning cleanup
fcbff3d [felizbear] add missing apache license info to a source file
00f0315 [felizbear] handle notebooks is search results
7d06686 [felizbear] fix search-related bug in notebook controller
e80c3e5 [Alexander Bezzubov] ZEPPELIN-501: Indexing notebook names
b853aa6 [Alexander Bezzubov] ZEPPELIN-501: fixing typos in docs
82c7dd7 [Alexander Bezzubov] ZEPPELIN-501: reverting accidental changes
71ec51f [felizbear] clear search field on navigation to home view (/)
1e1357c [felizbear] redirect to notebook and scroll to paragraph from search view
09d44d2 [Alexander Bezzubov] Search: re-index note on every change
b2b93c4 [Alexander Bezzubov] Search: refatoring, move SearchService from NotebookRepoSync -> Notebook
08fe806 [Alexander Bezzubov] Search: adding tests
63a4e05 [Alexander Bezzubov] Search: adding search API docs
98f4e59 [Alexander Bezzubov] Search: refactoring, rename fragment -> snippet
5c1e3e4 [Alexander Bezzubov] Refatoring - removing old annotations
e363ed4 [Alexander Bezzubov] Search: make jshint happy
7aad5cf [Alexander Bezzubov] Search: make checkstyle happy
6ccd6f1 [Alexander Bezzubov] Search: nuke compiler warnings in NotebookRestApi
aa5ddb3 [felizbear] center search results on screen
227c6b4 [felizbear] update search results view: add panels for results
865925c [felizbear] highlight syntax and search terms in search results
9ca8628 [Alexander Bezzubov] Search: merge first 3 fragments + full paragraph in search result
11127f0 [felizbear] style search widget for notebook search
db246fa [Alexander Bezzubov] Search: highlighting added using fragments
c2c2a52 [Alexander Bezzubov] Search: backend indexing using Lucene added to zengine
163a465 [Alexander Bezzubov] Search: add search/result-list and switch to
bc2458a [Alexander Bezzubov] Get rid of compiler warnings
3900b60 [Alexander Bezzubov] Search: disabling UI on disconnect
7880237 [Alexander Bezzubov] Search: backend REST API scetch /notebooks/search?q=... added
c5928f9 [Alexander Bezzubov] Search: form added to navbar in frontend
2015-12-23 08:48:03 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
2015-12-21 07:16:05 +00:00
< br / >
2016-06-25 19:44:53 +00:00
### Create a new paragraph
2015-12-21 07:16:05 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
< td > This ```POST``` method create a new paragraph using JSON payload.
The body field of the returned JSON contain the new paragraph id.
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]/paragraph```< / td >
2015-12-21 07:16:05 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 201< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON input (add to the last) < / td >
< td > < pre >
2016-06-05 04:54:02 +00:00
{
"title": "Paragraph insert revised",
"text": "%spark\nprintln(\"Paragraph insert revised\")"
}< / pre > < / td >
2015-12-21 07:16:05 +00:00
< / tr >
< tr >
< td > sample JSON input (add to specific index) < / td >
< td > < pre >
2016-06-05 04:54:02 +00:00
{
"title": "Paragraph insert revised",
"text": "%spark\nprintln(\"Paragraph insert revised\")",
"index": 0
}< / pre > < / td >
2015-12-21 07:16:05 +00:00
< / tr >
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre >
{
"status": "CREATED",
"message": "",
"body": "20151218-100330\_1754029574"
}< / pre > < / td >
2015-12-21 07:16:05 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
2015-12-21 07:16:05 +00:00
< br / >
2016-06-25 19:44:53 +00:00
### Get a paragraph information
2015-12-21 07:16:05 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
< td > This ```GET``` method retrieves an existing paragraph's information using the given id.
The body field of the returned JSON contain information about paragraph.
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]/paragraph/[paragraphId]```< / td >
2015-12-21 07:16:05 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON response < / td >
< td > < pre >
{
"status": "OK",
"message": "",
"body": {
"title": "Paragraph2",
"text": "%spark\n\nprintln(\"it's paragraph2\")",
"dateUpdated": "Dec 18, 2015 7:33:54 AM",
"config": {
"colWidth": 12,
"graph": {
"mode": "table",
"height": 300,
"optionOpen": false,
"keys": [],
"values": [],
"groups": [],
"scatter": {}
},
"enabled": true,
"title": true,
"editorMode": "ace/mode/scala"
},
"settings": {
"params": {},
"forms": {}
},
2016-06-05 04:54:02 +00:00
"jobName": "paragraph\_1450391574392\_-1890856722",
"id": "20151218-073254\_1105602047",
[ZEPPELIN-212] Multiple paragraph results
### What is this PR for?
Currently a paragraph can display only a single type of result.
For example
```
print("""
%text textout
%html htmlout
""")
```
will display only last display system detected, "htmlout".
This pr implements multiple results supports, so not only the last, but also all the display systems in a paragraph outputs can be displayed.
To do that, Note.json format need to be changed. from
```
paragraph : [
{
result : {
code: "",
type: "",
msg: ""
},
config : {
graph : {},
...
},
...
},
...
],
...
```
to
```
paragraph : [
{
results : {
{
code: "",
msg: [
{
type: "",
data: ""
},
{
type: "",
data: ""
},
...
]
},
config : {
results : [
{
graph : {},
},
{
graph : {},
},
...
]
},
...
},
...
],
...
```
### What type of PR is it?
Improvement
### Todos
* [x] - Make InterpreterResult and InterpreterOutput support multiple display system
* [x] - Automatic migration old format to new format
* [x] - Render multiple results in front-end
* [x] - Take care Importing old notebook format
* [x] - Make helium framework support multiple results
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-212
### How should this be tested?
run following code in a single spark paragraph.
```
%spark
// default output is text
(1 to 3).foreach{i=>
println(new java.util.Date())
Thread.sleep(1000)
}
// print something in html
println(s"""%html <h3><font style="color:blue">Some HTML</font></h3>""")
// create table
println(s"""%table key\tvalue
sun\t100
moon\t200
""")
// display text again
println("""%text""")
(1 to 3).foreach{i=>
println(new java.util.Date())
Thread.sleep(1000)
}
// another table
Thread.sleep(1000)
println(s"""%table key\tvalue
apple\t100
banana\t200
""")
```
### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? yes
* Does this needs documentation? yes
Author: Lee moon soo <moon@apache.org>
Closes #1658 from Leemoonsoo/ZEPPELIN-212 and squashes the following commits:
0c6a13c [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
519cf23 [Lee moon soo] Update PythonInterpreterPandasSqlTest
e6268ac [Lee moon soo] Update PythonInterpreterMatplotlibTest.java
f5034b8 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
d5981d5 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
a1fe729 [Lee moon soo] document note format change
282504e [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
7ab6679 [Lee moon soo] update selenium test
6a897a5 [Lee moon soo] Update rest-api doc
cbbd58a [Lee moon soo] update unittest
e89c9b8 [Lee moon soo] restore tutoral note
3ba37b7 [Lee moon soo] Let old version import note without error
d09e03f [Lee moon soo] enable helium only in the last result
6682908 [Lee moon soo] Remove unnecessary listener method
0f1d28f [Lee moon soo] Merge branch 'master' into ZEPPELIN-212
73b3a81 [Lee moon soo] update selenium test
e69f1a1 [Lee moon soo] update test
f12230f [Lee moon soo] Remove unnecessary newline in test
26e201a [Lee moon soo] Update testcase
b01d70f [Lee moon soo] Make helium app work
0a5b4d1 [Lee moon soo] Update HeliumApplicationFactoryTest
d8ca07f [Lee moon soo] update NotebookTest
aaf9778 [Lee moon soo] fix r test
3e43df4 [Lee moon soo] make zeppelin-web test pass
1d6fd3e [Lee moon soo] fix compile errors
0156ffc [Lee moon soo] take care angular object
804768d [Lee moon soo] Take care output streaming
57d6b2f [Lee moon soo] Render multiple results
95b6037 [Lee moon soo] Multiple results
2016-11-30 04:50:49 +00:00
"results": {
2015-12-21 07:16:05 +00:00
"code": "SUCCESS",
[ZEPPELIN-212] Multiple paragraph results
### What is this PR for?
Currently a paragraph can display only a single type of result.
For example
```
print("""
%text textout
%html htmlout
""")
```
will display only last display system detected, "htmlout".
This pr implements multiple results supports, so not only the last, but also all the display systems in a paragraph outputs can be displayed.
To do that, Note.json format need to be changed. from
```
paragraph : [
{
result : {
code: "",
type: "",
msg: ""
},
config : {
graph : {},
...
},
...
},
...
],
...
```
to
```
paragraph : [
{
results : {
{
code: "",
msg: [
{
type: "",
data: ""
},
{
type: "",
data: ""
},
...
]
},
config : {
results : [
{
graph : {},
},
{
graph : {},
},
...
]
},
...
},
...
],
...
```
### What type of PR is it?
Improvement
### Todos
* [x] - Make InterpreterResult and InterpreterOutput support multiple display system
* [x] - Automatic migration old format to new format
* [x] - Render multiple results in front-end
* [x] - Take care Importing old notebook format
* [x] - Make helium framework support multiple results
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-212
### How should this be tested?
run following code in a single spark paragraph.
```
%spark
// default output is text
(1 to 3).foreach{i=>
println(new java.util.Date())
Thread.sleep(1000)
}
// print something in html
println(s"""%html <h3><font style="color:blue">Some HTML</font></h3>""")
// create table
println(s"""%table key\tvalue
sun\t100
moon\t200
""")
// display text again
println("""%text""")
(1 to 3).foreach{i=>
println(new java.util.Date())
Thread.sleep(1000)
}
// another table
Thread.sleep(1000)
println(s"""%table key\tvalue
apple\t100
banana\t200
""")
```
### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? yes
* Does this needs documentation? yes
Author: Lee moon soo <moon@apache.org>
Closes #1658 from Leemoonsoo/ZEPPELIN-212 and squashes the following commits:
0c6a13c [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
519cf23 [Lee moon soo] Update PythonInterpreterPandasSqlTest
e6268ac [Lee moon soo] Update PythonInterpreterMatplotlibTest.java
f5034b8 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
d5981d5 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
a1fe729 [Lee moon soo] document note format change
282504e [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
7ab6679 [Lee moon soo] update selenium test
6a897a5 [Lee moon soo] Update rest-api doc
cbbd58a [Lee moon soo] update unittest
e89c9b8 [Lee moon soo] restore tutoral note
3ba37b7 [Lee moon soo] Let old version import note without error
d09e03f [Lee moon soo] enable helium only in the last result
6682908 [Lee moon soo] Remove unnecessary listener method
0f1d28f [Lee moon soo] Merge branch 'master' into ZEPPELIN-212
73b3a81 [Lee moon soo] update selenium test
e69f1a1 [Lee moon soo] update test
f12230f [Lee moon soo] Remove unnecessary newline in test
26e201a [Lee moon soo] Update testcase
b01d70f [Lee moon soo] Make helium app work
0a5b4d1 [Lee moon soo] Update HeliumApplicationFactoryTest
d8ca07f [Lee moon soo] update NotebookTest
aaf9778 [Lee moon soo] fix r test
3e43df4 [Lee moon soo] make zeppelin-web test pass
1d6fd3e [Lee moon soo] fix compile errors
0156ffc [Lee moon soo] take care angular object
804768d [Lee moon soo] Take care output streaming
57d6b2f [Lee moon soo] Render multiple results
95b6037 [Lee moon soo] Multiple results
2016-11-30 04:50:49 +00:00
"msg": [
{
"type": "TEXT",
"data": "it's paragraph2\n"
}
]
2015-12-21 07:16:05 +00:00
},
"dateCreated": "Dec 18, 2015 7:32:54 AM",
"dateStarted": "Dec 18, 2015 7:33:55 AM",
"dateFinished": "Dec 18, 2015 7:33:55 AM",
"status": "FINISHED",
"progressUpdateIntervalMs": 500
}
2016-06-05 04:54:02 +00:00
}< / pre > < / td >
2015-12-21 07:16:05 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
2016-11-03 13:28:25 +00:00
< br / >
### Update paragraph configuration
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
< td > This ```PUT``` method update paragraph configuration using given id so that user can change paragraph setting such as graph type, show or hide editor/result and paragraph size, etc. You can update certain fields you want, for example you can update < code > colWidth< / code > field only by sending request with payload < code > {"colWidth": 12.0}< / code > .
< / td >
< / tr >
< tr >
< td > URL< / td >
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]/paragraph/[paragraphId]/config```< / td >
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Bad Request code< / td >
< td > 400< / td >
< / tr >
< tr >
< td > Forbidden code< / td >
< td > 403< / td >
< / tr >
< tr >
< td > Not Found code< / td >
< td > 404< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500< / td >
< / tr >
< tr >
< td > sample JSON input< / td >
< td > < pre >
{
"colWidth": 6.0,
"graph": {
"mode": "lineChart",
"height": 200.0,
"optionOpen": false,
"keys": [
{
"name": "age",
"index": 0.0,
"aggr": "sum"
}
],
"values": [
{
"name": "value",
"index": 1.0,
"aggr": "sum"
}
],
"groups": [],
"scatter": {}
},
"editorHide": true,
"editorMode": "ace/mode/markdown",
"tableHide": false
}< / pre > < / td >
< / tr >
< tr >
< td > sample JSON response< / td >
< td > < pre >
{
"status":"OK",
"message":"",
"body":{
"text":"%sql \nselect age, count(1) value\nfrom bank \nwhere age \u003c 30 \ngroup by age \norder by age",
"config":{
"colWidth":6.0,
"graph":{
"mode":"lineChart",
"height":200.0,
"optionOpen":false,
"keys":[
{
"name":"age",
"index":0.0,
"aggr":"sum"
}
],
"values":[
{
"name":"value",
"index":1.0,
"aggr":"sum"
}
],
"groups":[],
"scatter":{}
},
"tableHide":false,
"editorMode":"ace/mode/markdown",
"editorHide":true
},
"settings":{
"params":{},
"forms":{}
},
"apps":[],
"jobName":"paragraph_1423500782552_-1439281894",
"id":"20150210-015302_1492795503",
[ZEPPELIN-212] Multiple paragraph results
### What is this PR for?
Currently a paragraph can display only a single type of result.
For example
```
print("""
%text textout
%html htmlout
""")
```
will display only last display system detected, "htmlout".
This pr implements multiple results supports, so not only the last, but also all the display systems in a paragraph outputs can be displayed.
To do that, Note.json format need to be changed. from
```
paragraph : [
{
result : {
code: "",
type: "",
msg: ""
},
config : {
graph : {},
...
},
...
},
...
],
...
```
to
```
paragraph : [
{
results : {
{
code: "",
msg: [
{
type: "",
data: ""
},
{
type: "",
data: ""
},
...
]
},
config : {
results : [
{
graph : {},
},
{
graph : {},
},
...
]
},
...
},
...
],
...
```
### What type of PR is it?
Improvement
### Todos
* [x] - Make InterpreterResult and InterpreterOutput support multiple display system
* [x] - Automatic migration old format to new format
* [x] - Render multiple results in front-end
* [x] - Take care Importing old notebook format
* [x] - Make helium framework support multiple results
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-212
### How should this be tested?
run following code in a single spark paragraph.
```
%spark
// default output is text
(1 to 3).foreach{i=>
println(new java.util.Date())
Thread.sleep(1000)
}
// print something in html
println(s"""%html <h3><font style="color:blue">Some HTML</font></h3>""")
// create table
println(s"""%table key\tvalue
sun\t100
moon\t200
""")
// display text again
println("""%text""")
(1 to 3).foreach{i=>
println(new java.util.Date())
Thread.sleep(1000)
}
// another table
Thread.sleep(1000)
println(s"""%table key\tvalue
apple\t100
banana\t200
""")
```
### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? yes
* Does this needs documentation? yes
Author: Lee moon soo <moon@apache.org>
Closes #1658 from Leemoonsoo/ZEPPELIN-212 and squashes the following commits:
0c6a13c [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
519cf23 [Lee moon soo] Update PythonInterpreterPandasSqlTest
e6268ac [Lee moon soo] Update PythonInterpreterMatplotlibTest.java
f5034b8 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
d5981d5 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
a1fe729 [Lee moon soo] document note format change
282504e [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
7ab6679 [Lee moon soo] update selenium test
6a897a5 [Lee moon soo] Update rest-api doc
cbbd58a [Lee moon soo] update unittest
e89c9b8 [Lee moon soo] restore tutoral note
3ba37b7 [Lee moon soo] Let old version import note without error
d09e03f [Lee moon soo] enable helium only in the last result
6682908 [Lee moon soo] Remove unnecessary listener method
0f1d28f [Lee moon soo] Merge branch 'master' into ZEPPELIN-212
73b3a81 [Lee moon soo] update selenium test
e69f1a1 [Lee moon soo] update test
f12230f [Lee moon soo] Remove unnecessary newline in test
26e201a [Lee moon soo] Update testcase
b01d70f [Lee moon soo] Make helium app work
0a5b4d1 [Lee moon soo] Update HeliumApplicationFactoryTest
d8ca07f [Lee moon soo] update NotebookTest
aaf9778 [Lee moon soo] fix r test
3e43df4 [Lee moon soo] make zeppelin-web test pass
1d6fd3e [Lee moon soo] fix compile errors
0156ffc [Lee moon soo] take care angular object
804768d [Lee moon soo] Take care output streaming
57d6b2f [Lee moon soo] Render multiple results
95b6037 [Lee moon soo] Multiple results
2016-11-30 04:50:49 +00:00
"results":{
2016-11-03 13:28:25 +00:00
"code":"SUCCESS",
[ZEPPELIN-212] Multiple paragraph results
### What is this PR for?
Currently a paragraph can display only a single type of result.
For example
```
print("""
%text textout
%html htmlout
""")
```
will display only last display system detected, "htmlout".
This pr implements multiple results supports, so not only the last, but also all the display systems in a paragraph outputs can be displayed.
To do that, Note.json format need to be changed. from
```
paragraph : [
{
result : {
code: "",
type: "",
msg: ""
},
config : {
graph : {},
...
},
...
},
...
],
...
```
to
```
paragraph : [
{
results : {
{
code: "",
msg: [
{
type: "",
data: ""
},
{
type: "",
data: ""
},
...
]
},
config : {
results : [
{
graph : {},
},
{
graph : {},
},
...
]
},
...
},
...
],
...
```
### What type of PR is it?
Improvement
### Todos
* [x] - Make InterpreterResult and InterpreterOutput support multiple display system
* [x] - Automatic migration old format to new format
* [x] - Render multiple results in front-end
* [x] - Take care Importing old notebook format
* [x] - Make helium framework support multiple results
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-212
### How should this be tested?
run following code in a single spark paragraph.
```
%spark
// default output is text
(1 to 3).foreach{i=>
println(new java.util.Date())
Thread.sleep(1000)
}
// print something in html
println(s"""%html <h3><font style="color:blue">Some HTML</font></h3>""")
// create table
println(s"""%table key\tvalue
sun\t100
moon\t200
""")
// display text again
println("""%text""")
(1 to 3).foreach{i=>
println(new java.util.Date())
Thread.sleep(1000)
}
// another table
Thread.sleep(1000)
println(s"""%table key\tvalue
apple\t100
banana\t200
""")
```
### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? yes
* Does this needs documentation? yes
Author: Lee moon soo <moon@apache.org>
Closes #1658 from Leemoonsoo/ZEPPELIN-212 and squashes the following commits:
0c6a13c [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
519cf23 [Lee moon soo] Update PythonInterpreterPandasSqlTest
e6268ac [Lee moon soo] Update PythonInterpreterMatplotlibTest.java
f5034b8 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
d5981d5 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
a1fe729 [Lee moon soo] document note format change
282504e [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
7ab6679 [Lee moon soo] update selenium test
6a897a5 [Lee moon soo] Update rest-api doc
cbbd58a [Lee moon soo] update unittest
e89c9b8 [Lee moon soo] restore tutoral note
3ba37b7 [Lee moon soo] Let old version import note without error
d09e03f [Lee moon soo] enable helium only in the last result
6682908 [Lee moon soo] Remove unnecessary listener method
0f1d28f [Lee moon soo] Merge branch 'master' into ZEPPELIN-212
73b3a81 [Lee moon soo] update selenium test
e69f1a1 [Lee moon soo] update test
f12230f [Lee moon soo] Remove unnecessary newline in test
26e201a [Lee moon soo] Update testcase
b01d70f [Lee moon soo] Make helium app work
0a5b4d1 [Lee moon soo] Update HeliumApplicationFactoryTest
d8ca07f [Lee moon soo] update NotebookTest
aaf9778 [Lee moon soo] fix r test
3e43df4 [Lee moon soo] make zeppelin-web test pass
1d6fd3e [Lee moon soo] fix compile errors
0156ffc [Lee moon soo] take care angular object
804768d [Lee moon soo] Take care output streaming
57d6b2f [Lee moon soo] Render multiple results
95b6037 [Lee moon soo] Multiple results
2016-11-30 04:50:49 +00:00
"msg": [
{
"type":"TABLE",
"data":"age\tvalue\n19\t4\n20\t3\n21\t7\n22\t9\n23\t20\n24\t24\n25\t44\n26\t77\n27\t94\n28\t103\n29\t97\n"
}
]
2016-11-03 13:28:25 +00:00
},
"dateCreated":"Feb 10, 2015 1:53:02 AM",
"dateStarted":"Jul 3, 2015 1:43:17 PM",
"dateFinished":"Jul 3, 2015 1:43:23 PM",
"status":"FINISHED",
"progressUpdateIntervalMs":500
}
}< / pre > < / td >
< / tr >
< / table >
2015-12-21 07:16:05 +00:00
< br / >
2016-06-25 19:44:53 +00:00
### Move a paragraph to the specific index
2015-12-21 07:16:05 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```POST``` method moves a paragraph to the specific index (order) from the note.
2015-12-21 07:16:05 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]/paragraph/[paragraphId]/move/[newIndex]```< / td >
2015-12-21 07:16:05 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre > {"status": "OK","message": ""}< / pre > < / td >
2015-12-21 07:16:05 +00:00
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
2015-12-21 07:16:05 +00:00
< br / >
2016-06-25 19:44:53 +00:00
### Delete a paragraph
2015-12-21 07:16:05 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```DELETE``` method deletes a paragraph by the given note and paragraph id.
2015-12-21 07:16:05 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]/paragraph/[paragraphId]```< / td >
2015-12-21 07:16:05 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< tr >
< td > sample JSON response < / td >
2016-06-05 04:54:02 +00:00
< td > < pre > {"status": "OK","message": ""}< / pre > < / td >
2015-12-21 07:16:05 +00:00
< / tr >
< / table >
2016-01-22 00:16:14 +00:00
2016-06-05 04:54:02 +00:00
< br / >
2016-10-24 11:26:33 +00:00
### Export a note
2016-01-22 00:16:14 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```GET``` method exports a note by the given id and gernerates a JSON
2016-01-22 00:16:14 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
2016-10-24 11:26:33 +00:00
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/export/[noteId]```< / td >
2016-01-22 00:16:14 +00:00
< / tr >
< tr >
< td > Success code< / td >
< td > 201< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
< td > sample JSON response < / td >
< td > < pre > {
"paragraphs": [
{
"text": "%md This is my new paragraph in my new note",
"dateUpdated": "Jan 8, 2016 4:49:38 PM",
"config": {
"enabled": true
},
"settings": {
"params": {},
"forms": {}
},
2016-06-05 04:54:02 +00:00
"jobName": "paragraph\_1452300578795\_1196072540",
"id": "20160108-164938\_1685162144",
2016-01-22 00:16:14 +00:00
"dateCreated": "Jan 8, 2016 4:49:38 PM",
"status": "READY",
"progressUpdateIntervalMs": 500
}
],
"name": "source note for export",
"id": "2B82H3RR1",
"angularObjects": {},
"config": {},
"info": {}
}< / pre > < / td >
< / tr >
< / table >
2016-04-22 06:37:44 +00:00
2016-06-05 04:54:02 +00:00
< br / >
2016-10-24 11:26:33 +00:00
### Import a note
2016-01-22 00:16:14 +00:00
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
2016-10-24 11:26:33 +00:00
< td > This ```POST``` method imports a note from the note JSON input
2016-01-22 00:16:14 +00:00
< / td >
< / tr >
< tr >
< td > URL< / td >
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/import```< / td >
< / tr >
< tr >
< td > Success code< / td >
< td > 201< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500 < / td >
< / tr >
2016-11-03 13:28:25 +00:00
< tr >
< td > sample JSON input< / td >
2016-06-05 04:54:02 +00:00
< td > < pre >
{
2016-01-22 00:16:14 +00:00
"paragraphs": [
{
"text": "%md This is my new paragraph in my new note",
"dateUpdated": "Jan 8, 2016 4:49:38 PM",
"config": {
"enabled": true
},
"settings": {
"params": {},
"forms": {}
},
2016-06-05 04:54:02 +00:00
"jobName": "paragraph\_1452300578795\_1196072540",
"id": "20160108-164938\_1685162144",
2016-01-22 00:16:14 +00:00
"dateCreated": "Jan 8, 2016 4:49:38 PM",
"status": "READY",
"progressUpdateIntervalMs": 500
}
],
"name": "source note for export",
"id": "2B82H3RR1",
"angularObjects": {},
"config": {},
"info": {}
}< / pre > < / td >
2016-11-03 13:28:25 +00:00
< / tr >
2016-06-05 04:54:02 +00:00
< tr >
< td > sample JSON response< / td >
< td > < pre >
{
"status": "CREATED",
"message": "",
"body": "2AZPHY918"
}< / pre > < / td >
2016-01-22 00:16:14 +00:00
< / tr >
2016-04-22 06:37:44 +00:00
< / table >
2016-11-05 03:49:36 +00:00
< br / >
### Clear all paragraph result
< table class = "table-configuration" >
< col width = "200" >
< tr >
< td > Description< / td >
< td > This ```PUT``` method clear all paragraph results from note of given id.
< / td >
< / tr >
< tr >
< td > URL< / td >
< td > ```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]/clear```< / td >
< / tr >
< tr >
< td > Success code< / td >
< td > 200< / td >
< / tr >
< tr >
< td > Forbidden code< / td >
< td > 401< / td >
< / tr >
< tr >
< td > Not Found code< / td >
< td > 404< / td >
< / tr >
< tr >
< td > Fail code< / td >
< td > 500< / td >
< / tr >
< tr >
< td > sample JSON response< / td >
< td > < pre > {"status": "OK"}< / pre > < / td >
< / tr >
< / tr >
< / table >