zeppelin/docs/rest-api/rest-notebook.md

1144 lines
27 KiB
Markdown
Raw Normal View History

---
layout: page
[ZEPPELIN-1219] Add searching feature to Zeppelin docs site ### What is this PR for? As more and more document pages are added, it's really hard to find specific pages. So I added searching feature to Zeppelin documentation site([jekyll](https://jekyllrb.com/) based site) using [lunr.js](http://lunrjs.com/). - **How does it work?** I created [`search_data.json`](https://github.com/AhyoungRyu/zeppelin/blob/6e02423f541cc406e4e41031629609a276a9f481/docs/search_data.json) which is used for docs info template. `lunr.js` combines all of the text from all of the docs in `docs/` into `_site/search_data.json`. It looks like below. ![screen shot 2016-08-03 at 4 49 59 am](https://cloud.githubusercontent.com/assets/10060731/17342828/f2908be8-5935-11e6-8eee-b189677c0531.png) All the info are comes from [Jekyll YAML front matter](https://jekyllrb.com/docs/frontmatter/) variables. (i.e. title, group, description.. that's why I rewrote all docs' title and description.) [search.js](https://github.com/AhyoungRyu/zeppelin/blob/6e02423f541cc406e4e41031629609a276a9f481/docs/assets/themes/zeppelin/js/search.js) will do this job using this data! ### What type of PR is it? Improvement & Feature ### Todos * [x] - Keep consistency for all docs pages' `Title` * [x] - Add some overview sentences to all docs pages' `Description` section (this will be used as the result preview) * [x] - Add apache license header to all docs page (some pages are missing the license header currently) * [x] - Add LICENSE for `lunr.min.js` ### What is the Jira issue? [ZEPPELIN-1219](https://issues.apache.org/jira/browse/ZEPPELIN-1219) ### How should this be tested? 1. Apply this patch and build `ZEPPELIN_HOME/docs` dir -> please see [docs/README.md#build-documentation](https://github.com/apache/zeppelin/tree/master/docs#build-documentation) 2. Click `search` icon in navbar and go to `search.html` page 3. Type anything you want to search in the search bar (i.e. type `python`, `spark`, `dynamic` ... ) ### Screenshots (if appropriate) ![screen shot 2016-08-03 at 4 42 28 pm](https://cloud.githubusercontent.com/assets/10060731/17357851/d092e2ca-5999-11e6-9917-a3d4113e6e43.png) ![search](https://cloud.githubusercontent.com/assets/10060731/17357828/b2486cd6-5999-11e6-873b-121fac033b03.gif) ### Questions: * Does the licenses files need update? Yes, for `lunr.min.js` * Is there breaking changes for older versions? no * Does this needs documentation? no Author: AhyoungRyu <fbdkdud93@hanmail.net> Closes #1266 from AhyoungRyu/ZEPPELIN-1219 and squashes the following commits: 7ec8854 [AhyoungRyu] Modify 'no result' sentence 91b71a7 [AhyoungRyu] Remove Apache license header since JSON doesn't allow comment 34afd5d [AhyoungRyu] Add Apache license header to search_data.json 6784282 [AhyoungRyu] Minor search page UI update 0389d28 [AhyoungRyu] Make index.md not to be searched 9f1ba42 [AhyoungRyu] Disable enterkey press & change icon bd4956a [AhyoungRyu] Add docs.js & search.js to exclude list in pom.xml 624b051 [AhyoungRyu] Add Apache license header to search.js 1381152 [AhyoungRyu] Fix search result skipping issue 6e775f5 [AhyoungRyu] Make pleasecontribute.md not to be searched ee11136 [AhyoungRyu] Fix some typos fa01299 [AhyoungRyu] Refine 'description' in some docs as @bzz suggested da0cff9 [AhyoungRyu] Exclude lunr.min.js 36ba7f1 [AhyoungRyu] Add lunr.min.js license info f6a05a6 [AhyoungRyu] Apply css style for the search results 68eb997 [AhyoungRyu] Attach 'Apache Zeppelin ZEPPELIN_VERSION Documentation: ' to title d908c37 [AhyoungRyu] Add searching page a951fa6 [AhyoungRyu] Add search icon to navbar 0688a79 [AhyoungRyu] Keep consistency all docs' front matter for the right search result 040f532 [AhyoungRyu] Add template for storing docs info based on jekyll front matter 0705bd6 [AhyoungRyu] Add js files: lunr.min.js & search.js
2016-08-06 05:50:25 +00:00
title: "Apache Zeppelin Notebook REST API"
description: "This page contains Apache Zeppelin Notebook REST API information."
group: rest-api
---
<!--
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.
-->
{% include JB/setup %}
[ZEPPELIN-1018] Apply auto "Table of Contents" generator to Zeppelin docs website ### What is this PR for? I added auto TOC(Table of Contents) generator for Zeppelin documentation website. TOC can help people looking through whole contents at a glance and finding what they want quickly. I just added `<div id="toc"></div>` to the each documentation header. [`toc`](https://github.com/apache/zeppelin/compare/master...AhyoungRyu:ZEPPELIN-1018?expand=1#diff-85af09fb498a5667ea455391533f945dR3) recognize `<h2>` & `<h3>` as a title in the docs and it automatically generate TOC. So I set a rule for this work. (I'll write this rule on `docs/CONTRIBUTING.md` or [docs/howtocontributewebsite](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/howtocontributewebsite.html)). ``` # Level-1 Heading <- Use only for the main title of the page ## Level-2 Heading <- Start with this one ### Level-3 heading <- Only use this one for child of Level-2 toc only recognize Level-2 & Level-3 ``` Please see the below attached screenshot image. ### What type of PR is it? Improvement & Documentation ### Todos * [x] - Add TOC generator * [x] - Apply TOC(`<div id="toc"></div>`) to every documentation and reorganize each headers(apply the above rule) * [x] - Fix some broken code block in several docs * [x] - Apply TOC to `r.md` (Currently R docs has some duplicated info since [this one](https://github.com/apache/zeppelin/commit/d5e87fb8ba98f08db5b0a4995104ce19f182c678) and [this one](https://github.com/apache/zeppelin/commit/7d6cc7e99154e2d337c11fdf8be1a874ed3e9ada) ) * [x] - Apply TOC to `install.md` after #1010 merged * [x] - Apply TOC to `interpreterinstallation.md` after #1042 merged ### What is the Jira issue? [ZEPPELIN-1018](https://issues.apache.org/jira/browse/ZEPPELIN-1018) ### How should this be tested? 1. Apply this patch and build `docs/` with [this guide](https://github.com/apache/zeppelin/tree/master/docs#build-documentation) 2. Visit some docs page. Then you can see TOC in the header of page. ### Screenshots (if appropriate) - Automatically generated TOC in Spark interpreter docs page <img width="831" alt="screen shot 2016-06-16 at 9 37 18 pm" src="https://cloud.githubusercontent.com/assets/10060731/16140902/945b9c7a-340a-11e6-91f3-b6174738bed0.png"> ### Questions: * Does the licenses files need update? No. Actually I used [jekyll-table-of-contents#copyright](https://github.com/ghiculescu/jekyll-table-of-contents#copyright). But I don't need to add a license for this :) * Is there breaking changes for older versions? No * Does this needs documentation? Maybe Author: AhyoungRyu <fbdkdud93@hanmail.net> Closes #1031 from AhyoungRyu/ZEPPELIN-1018 and squashes the following commits: e66397b [AhyoungRyu] Apply TOC to interpreterinstallation.md 009579b [AhyoungRyu] Add more info to 'What is the next?' in install.md 04cf501 [AhyoungRyu] Revert 'where to start' section b7cbe5f [AhyoungRyu] Fix typo cf0911c [AhyoungRyu] Rename license file 388f35a [AhyoungRyu] Add jekyll-table-of-contents license info 6394c70 [AhyoungRyu] Fix image path in python.md d00e4b1 [AhyoungRyu] Move interpreter/screenshot/ -> asset/../img/docs-img/ 3ffb383 [AhyoungRyu] Remove duplicated info in r.md & apply toc a03ca99 [AhyoungRyu] Exclude toc.js from pom.xml 3fae7df [AhyoungRyu] Apply auto generated toc to install.md d114a9d [AhyoungRyu] Address @felixcheung feedback 6a788fe [AhyoungRyu] Resize TOC tab indent 6760c00 [AhyoungRyu] Apply auto TOC to all of docs under docs/storage/ fbde57f [AhyoungRyu] Apply auto TOC to all of docs under docs/quickstart/ db76eb6 [AhyoungRyu] Apply auto TOC to all of docs under docs/install/ f35db47 [AhyoungRyu] Apply auto TOC to all of docs under docs/displaysystem/ b05365f [AhyoungRyu] Apply auto TOC to all of docs under docs/rest-api/ 163691c [AhyoungRyu] Apply auto TOC to all of docs under docs/manual/ bef398e [AhyoungRyu] Apply auto TOC to all of docs under docs/development/ 9c5f76b [AhyoungRyu] Apply auto TOC to all of docs under docs/interpreter/ 587d4ba [AhyoungRyu] Apply auto TOC to all of docs under docs/security/ 1f10b97 [AhyoungRyu] Change toc configuration 78dca9e [AhyoungRyu] Add toc.js for auto generating TOC
2016-06-25 19:44:53 +00:00
# Apache Zeppelin Notebook REST API
[ZEPPELIN-1018] Apply auto "Table of Contents" generator to Zeppelin docs website ### What is this PR for? I added auto TOC(Table of Contents) generator for Zeppelin documentation website. TOC can help people looking through whole contents at a glance and finding what they want quickly. I just added `<div id="toc"></div>` to the each documentation header. [`toc`](https://github.com/apache/zeppelin/compare/master...AhyoungRyu:ZEPPELIN-1018?expand=1#diff-85af09fb498a5667ea455391533f945dR3) recognize `<h2>` & `<h3>` as a title in the docs and it automatically generate TOC. So I set a rule for this work. (I'll write this rule on `docs/CONTRIBUTING.md` or [docs/howtocontributewebsite](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/howtocontributewebsite.html)). ``` # Level-1 Heading <- Use only for the main title of the page ## Level-2 Heading <- Start with this one ### Level-3 heading <- Only use this one for child of Level-2 toc only recognize Level-2 & Level-3 ``` Please see the below attached screenshot image. ### What type of PR is it? Improvement & Documentation ### Todos * [x] - Add TOC generator * [x] - Apply TOC(`<div id="toc"></div>`) to every documentation and reorganize each headers(apply the above rule) * [x] - Fix some broken code block in several docs * [x] - Apply TOC to `r.md` (Currently R docs has some duplicated info since [this one](https://github.com/apache/zeppelin/commit/d5e87fb8ba98f08db5b0a4995104ce19f182c678) and [this one](https://github.com/apache/zeppelin/commit/7d6cc7e99154e2d337c11fdf8be1a874ed3e9ada) ) * [x] - Apply TOC to `install.md` after #1010 merged * [x] - Apply TOC to `interpreterinstallation.md` after #1042 merged ### What is the Jira issue? [ZEPPELIN-1018](https://issues.apache.org/jira/browse/ZEPPELIN-1018) ### How should this be tested? 1. Apply this patch and build `docs/` with [this guide](https://github.com/apache/zeppelin/tree/master/docs#build-documentation) 2. Visit some docs page. Then you can see TOC in the header of page. ### Screenshots (if appropriate) - Automatically generated TOC in Spark interpreter docs page <img width="831" alt="screen shot 2016-06-16 at 9 37 18 pm" src="https://cloud.githubusercontent.com/assets/10060731/16140902/945b9c7a-340a-11e6-91f3-b6174738bed0.png"> ### Questions: * Does the licenses files need update? No. Actually I used [jekyll-table-of-contents#copyright](https://github.com/ghiculescu/jekyll-table-of-contents#copyright). But I don't need to add a license for this :) * Is there breaking changes for older versions? No * Does this needs documentation? Maybe Author: AhyoungRyu <fbdkdud93@hanmail.net> Closes #1031 from AhyoungRyu/ZEPPELIN-1018 and squashes the following commits: e66397b [AhyoungRyu] Apply TOC to interpreterinstallation.md 009579b [AhyoungRyu] Add more info to 'What is the next?' in install.md 04cf501 [AhyoungRyu] Revert 'where to start' section b7cbe5f [AhyoungRyu] Fix typo cf0911c [AhyoungRyu] Rename license file 388f35a [AhyoungRyu] Add jekyll-table-of-contents license info 6394c70 [AhyoungRyu] Fix image path in python.md d00e4b1 [AhyoungRyu] Move interpreter/screenshot/ -> asset/../img/docs-img/ 3ffb383 [AhyoungRyu] Remove duplicated info in r.md & apply toc a03ca99 [AhyoungRyu] Exclude toc.js from pom.xml 3fae7df [AhyoungRyu] Apply auto generated toc to install.md d114a9d [AhyoungRyu] Address @felixcheung feedback 6a788fe [AhyoungRyu] Resize TOC tab indent 6760c00 [AhyoungRyu] Apply auto TOC to all of docs under docs/storage/ fbde57f [AhyoungRyu] Apply auto TOC to all of docs under docs/quickstart/ db76eb6 [AhyoungRyu] Apply auto TOC to all of docs under docs/install/ f35db47 [AhyoungRyu] Apply auto TOC to all of docs under docs/displaysystem/ b05365f [AhyoungRyu] Apply auto TOC to all of docs under docs/rest-api/ 163691c [AhyoungRyu] Apply auto TOC to all of docs under docs/manual/ bef398e [AhyoungRyu] Apply auto TOC to all of docs under docs/development/ 9c5f76b [AhyoungRyu] Apply auto TOC to all of docs under docs/interpreter/ 587d4ba [AhyoungRyu] Apply auto TOC to all of docs under docs/security/ 1f10b97 [AhyoungRyu] Change toc configuration 78dca9e [AhyoungRyu] Add toc.js for auto generating TOC
2016-06-25 19:44:53 +00:00
<div id="toc"></div>
[ZEPPELIN-1018] Apply auto "Table of Contents" generator to Zeppelin docs website ### What is this PR for? I added auto TOC(Table of Contents) generator for Zeppelin documentation website. TOC can help people looking through whole contents at a glance and finding what they want quickly. I just added `<div id="toc"></div>` to the each documentation header. [`toc`](https://github.com/apache/zeppelin/compare/master...AhyoungRyu:ZEPPELIN-1018?expand=1#diff-85af09fb498a5667ea455391533f945dR3) recognize `<h2>` & `<h3>` as a title in the docs and it automatically generate TOC. So I set a rule for this work. (I'll write this rule on `docs/CONTRIBUTING.md` or [docs/howtocontributewebsite](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/howtocontributewebsite.html)). ``` # Level-1 Heading <- Use only for the main title of the page ## Level-2 Heading <- Start with this one ### Level-3 heading <- Only use this one for child of Level-2 toc only recognize Level-2 & Level-3 ``` Please see the below attached screenshot image. ### What type of PR is it? Improvement & Documentation ### Todos * [x] - Add TOC generator * [x] - Apply TOC(`<div id="toc"></div>`) to every documentation and reorganize each headers(apply the above rule) * [x] - Fix some broken code block in several docs * [x] - Apply TOC to `r.md` (Currently R docs has some duplicated info since [this one](https://github.com/apache/zeppelin/commit/d5e87fb8ba98f08db5b0a4995104ce19f182c678) and [this one](https://github.com/apache/zeppelin/commit/7d6cc7e99154e2d337c11fdf8be1a874ed3e9ada) ) * [x] - Apply TOC to `install.md` after #1010 merged * [x] - Apply TOC to `interpreterinstallation.md` after #1042 merged ### What is the Jira issue? [ZEPPELIN-1018](https://issues.apache.org/jira/browse/ZEPPELIN-1018) ### How should this be tested? 1. Apply this patch and build `docs/` with [this guide](https://github.com/apache/zeppelin/tree/master/docs#build-documentation) 2. Visit some docs page. Then you can see TOC in the header of page. ### Screenshots (if appropriate) - Automatically generated TOC in Spark interpreter docs page <img width="831" alt="screen shot 2016-06-16 at 9 37 18 pm" src="https://cloud.githubusercontent.com/assets/10060731/16140902/945b9c7a-340a-11e6-91f3-b6174738bed0.png"> ### Questions: * Does the licenses files need update? No. Actually I used [jekyll-table-of-contents#copyright](https://github.com/ghiculescu/jekyll-table-of-contents#copyright). But I don't need to add a license for this :) * Is there breaking changes for older versions? No * Does this needs documentation? Maybe Author: AhyoungRyu <fbdkdud93@hanmail.net> Closes #1031 from AhyoungRyu/ZEPPELIN-1018 and squashes the following commits: e66397b [AhyoungRyu] Apply TOC to interpreterinstallation.md 009579b [AhyoungRyu] Add more info to 'What is the next?' in install.md 04cf501 [AhyoungRyu] Revert 'where to start' section b7cbe5f [AhyoungRyu] Fix typo cf0911c [AhyoungRyu] Rename license file 388f35a [AhyoungRyu] Add jekyll-table-of-contents license info 6394c70 [AhyoungRyu] Fix image path in python.md d00e4b1 [AhyoungRyu] Move interpreter/screenshot/ -> asset/../img/docs-img/ 3ffb383 [AhyoungRyu] Remove duplicated info in r.md & apply toc a03ca99 [AhyoungRyu] Exclude toc.js from pom.xml 3fae7df [AhyoungRyu] Apply auto generated toc to install.md d114a9d [AhyoungRyu] Address @felixcheung feedback 6a788fe [AhyoungRyu] Resize TOC tab indent 6760c00 [AhyoungRyu] Apply auto TOC to all of docs under docs/storage/ fbde57f [AhyoungRyu] Apply auto TOC to all of docs under docs/quickstart/ db76eb6 [AhyoungRyu] Apply auto TOC to all of docs under docs/install/ f35db47 [AhyoungRyu] Apply auto TOC to all of docs under docs/displaysystem/ b05365f [AhyoungRyu] Apply auto TOC to all of docs under docs/rest-api/ 163691c [AhyoungRyu] Apply auto TOC to all of docs under docs/manual/ bef398e [AhyoungRyu] Apply auto TOC to all of docs under docs/development/ 9c5f76b [AhyoungRyu] Apply auto TOC to all of docs under docs/interpreter/ 587d4ba [AhyoungRyu] Apply auto TOC to all of docs under docs/security/ 1f10b97 [AhyoungRyu] Change toc configuration 78dca9e [AhyoungRyu] Add toc.js for auto generating TOC
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).
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
## Notebook REST API List
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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.
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
### List of the notes
<table class="table-configuration">
<col width="200">
<tr>
<td>Description</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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.
</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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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>
</tr>
</table>
<br/>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
### Create a new note
<table class="table-configuration">
<col width="200">
<tr>
<td>Description</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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.
</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>
<td> sample JSON input (without paragraphs) </td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td><pre>{"name": "name of new note"}</pre></td>
</tr>
<tr>
<td> sample JSON input (with initial paragraphs) </td>
<td><pre>
{
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
"name": "name of new note",
"paragraphs": [
{
"title": "paragraph title1",
"text": "paragraph text1"
},
{
"title": "paragraph title2",
"text": "paragraph text2"
}
]
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
}</pre></td>
</tr>
<tr>
<td> sample JSON response </td>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
<td><pre>
{
"status": "CREATED",
"message": "",
"body": "2AZPHY918"
}</pre></td>
</tr>
</table>
<br/>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
### Get an existing note information
<table class="table-configuration">
<col width="200">
<tr>
<td>Description</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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.
</td>
</tr>
<tr>
<td>URL</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]```</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>
<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": {}
},
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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) ![multipleout](https://cloud.githubusercontent.com/assets/1540981/20465902/23379948-af1d-11e6-85cf-4d70597fb94e.gif) ### 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": {
"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) ![multipleout](https://cloud.githubusercontent.com/assets/1540981/20465902/23379948-af1d-11e6-85cf-4d70597fb94e.gif) ### 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"
}
]
},
"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": {}
}
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
}</pre></td>
</tr>
</table>
<br/>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
### Delete a note
<table class="table-configuration">
<col width="200">
<tr>
<td>Description</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>This ```DELETE``` method deletes a note by the given note id.
</td>
</tr>
<tr>
<td>URL</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]```</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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
<td><pre>{"status": "OK","message": ""}</pre></td>
</tr>
</table>
<br/>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
### Clone a note
<table class="table-configuration">
<col width="200">
<tr>
<td>Description</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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
or default name if none given.
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
The body field of the returned JSON contains the new note id.
</td>
</tr>
<tr>
<td>URL</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]```</td>
</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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td><pre>{"name": "name of new note"}</pre></td>
</tr>
<tr>
<td> sample JSON response </td>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
<td><pre>
{
"status": "CREATED",
"message": "",
"body": "2AZPHY918"
}</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/>
[ZEPPELIN-1018] Apply auto "Table of Contents" generator to Zeppelin docs website ### What is this PR for? I added auto TOC(Table of Contents) generator for Zeppelin documentation website. TOC can help people looking through whole contents at a glance and finding what they want quickly. I just added `<div id="toc"></div>` to the each documentation header. [`toc`](https://github.com/apache/zeppelin/compare/master...AhyoungRyu:ZEPPELIN-1018?expand=1#diff-85af09fb498a5667ea455391533f945dR3) recognize `<h2>` & `<h3>` as a title in the docs and it automatically generate TOC. So I set a rule for this work. (I'll write this rule on `docs/CONTRIBUTING.md` or [docs/howtocontributewebsite](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/howtocontributewebsite.html)). ``` # Level-1 Heading <- Use only for the main title of the page ## Level-2 Heading <- Start with this one ### Level-3 heading <- Only use this one for child of Level-2 toc only recognize Level-2 & Level-3 ``` Please see the below attached screenshot image. ### What type of PR is it? Improvement & Documentation ### Todos * [x] - Add TOC generator * [x] - Apply TOC(`<div id="toc"></div>`) to every documentation and reorganize each headers(apply the above rule) * [x] - Fix some broken code block in several docs * [x] - Apply TOC to `r.md` (Currently R docs has some duplicated info since [this one](https://github.com/apache/zeppelin/commit/d5e87fb8ba98f08db5b0a4995104ce19f182c678) and [this one](https://github.com/apache/zeppelin/commit/7d6cc7e99154e2d337c11fdf8be1a874ed3e9ada) ) * [x] - Apply TOC to `install.md` after #1010 merged * [x] - Apply TOC to `interpreterinstallation.md` after #1042 merged ### What is the Jira issue? [ZEPPELIN-1018](https://issues.apache.org/jira/browse/ZEPPELIN-1018) ### How should this be tested? 1. Apply this patch and build `docs/` with [this guide](https://github.com/apache/zeppelin/tree/master/docs#build-documentation) 2. Visit some docs page. Then you can see TOC in the header of page. ### Screenshots (if appropriate) - Automatically generated TOC in Spark interpreter docs page <img width="831" alt="screen shot 2016-06-16 at 9 37 18 pm" src="https://cloud.githubusercontent.com/assets/10060731/16140902/945b9c7a-340a-11e6-91f3-b6174738bed0.png"> ### Questions: * Does the licenses files need update? No. Actually I used [jekyll-table-of-contents#copyright](https://github.com/ghiculescu/jekyll-table-of-contents#copyright). But I don't need to add a license for this :) * Is there breaking changes for older versions? No * Does this needs documentation? Maybe Author: AhyoungRyu <fbdkdud93@hanmail.net> Closes #1031 from AhyoungRyu/ZEPPELIN-1018 and squashes the following commits: e66397b [AhyoungRyu] Apply TOC to interpreterinstallation.md 009579b [AhyoungRyu] Add more info to 'What is the next?' in install.md 04cf501 [AhyoungRyu] Revert 'where to start' section b7cbe5f [AhyoungRyu] Fix typo cf0911c [AhyoungRyu] Rename license file 388f35a [AhyoungRyu] Add jekyll-table-of-contents license info 6394c70 [AhyoungRyu] Fix image path in python.md d00e4b1 [AhyoungRyu] Move interpreter/screenshot/ -> asset/../img/docs-img/ 3ffb383 [AhyoungRyu] Remove duplicated info in r.md & apply toc a03ca99 [AhyoungRyu] Exclude toc.js from pom.xml 3fae7df [AhyoungRyu] Apply auto generated toc to install.md d114a9d [AhyoungRyu] Address @felixcheung feedback 6a788fe [AhyoungRyu] Resize TOC tab indent 6760c00 [AhyoungRyu] Apply auto TOC to all of docs under docs/storage/ fbde57f [AhyoungRyu] Apply auto TOC to all of docs under docs/quickstart/ db76eb6 [AhyoungRyu] Apply auto TOC to all of docs under docs/install/ f35db47 [AhyoungRyu] Apply auto TOC to all of docs under docs/displaysystem/ b05365f [AhyoungRyu] Apply auto TOC to all of docs under docs/rest-api/ 163691c [AhyoungRyu] Apply auto TOC to all of docs under docs/manual/ bef398e [AhyoungRyu] Apply auto TOC to all of docs under docs/development/ 9c5f76b [AhyoungRyu] Apply auto TOC to all of docs under docs/interpreter/ 587d4ba [AhyoungRyu] Apply auto TOC to all of docs under docs/security/ 1f10b97 [AhyoungRyu] Change toc configuration 78dca9e [AhyoungRyu] Add toc.js for auto generating TOC
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>
[ZEPPELIN-960] When there is no interpreter, paragraph runJobapi modified. ### What is this PR for? Among Zeppelin API Fixed runNote. According to whether the interpreter specified, was added to an exception processing for a result and operation. run success (HTTP STATUS : 200) ``` { "status": "OK" } ``` can't not found note id (HTTP STATUS : 404) ``` { "status": "NOT_FOUND", "message": "note not found." } ``` interpter not found or not bind (HTTP STATUS : 412 - PRECONDITION FAILED) ``` { "status": "PRECONDITION_FAILED", "message": "paragraph_1469771130099_-278315611 Not selected or Invalid Interpreter bind" } ``` ### What type of PR is it? Bug Fix ### Todos - [x] runNote api can apply by jdbc alias naming. - [x] The results are recorded in the paragraph. - [x] Binding fails when the interpreter 'HTTP STATUS CODE (412: PRECONDITION FAILED) and returns a message. - [x] modification docs. ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-960 ### How should this be tested? execute to curl command line. 1. curl -XPOST http://(your zeppelin ip):(port)/api/notebook/job/2A94M5J1Z -H'Content-Type:application/json' ``` curl -XPOST http://127.0.0.1:8080/api/notebook/job/2A94M5J1Z -H'Content-Type:application/json' ``` 2. if correct for execution then ``` {"status":"OK"} ``` if invalid notebook id then ``` { "status": "NOT_FOUND", "message": "note not found." } ``` if not binding interpreters ![notebind](https://cloud.githubusercontent.com/assets/10525473/17242167/a2db8ba8-55b0-11e6-89ec-aca49fefbfde.png) ``` { "status": "PRECONDITION_FAILED", "message": "paragraph_(paragraphid) Not selected or Invalid Interpreter bind" } ``` ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? yes Author: CloverHearts <cloverheartsdev@gmail.com> Author: CloverHearts <cloverheartsdev+github@gmail.com> Closes #1242 from cloverhearts/ZEPPELIN-960 and squashes the following commits: 92c8a10 [CloverHearts] remove empty try-catch brace 33b0732 [CloverHearts] Merge branch 'master' into ZEPPELIN-960 9b42898 [CloverHearts] to short msg and removed confusion code. b9e197c [CloverHearts] Merge branch 'master' into ZEPPELIN-960 a672cf3 [CloverHearts] reimplement run.eachParagraph to run.all method 1428795 [CloverHearts] Merge branch 'master' into ZEPPELIN-960 7b71ced [CloverHearts] Merge branch 'master' into ZEPPELIN-960 ff0f213 [CloverHearts] Merge branch 'master' into ZEPPELIN-960 8446513 [CloverHearts] add docs for runNoteJobs restful api 251bb52 [CloverHearts] fixed api method for runNoteJob in notebook rest api
2016-08-23 15:31:12 +00:00
<td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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.
[ZEPPELIN-960] When there is no interpreter, paragraph runJobapi modified. ### What is this PR for? Among Zeppelin API Fixed runNote. According to whether the interpreter specified, was added to an exception processing for a result and operation. run success (HTTP STATUS : 200) ``` { "status": "OK" } ``` can't not found note id (HTTP STATUS : 404) ``` { "status": "NOT_FOUND", "message": "note not found." } ``` interpter not found or not bind (HTTP STATUS : 412 - PRECONDITION FAILED) ``` { "status": "PRECONDITION_FAILED", "message": "paragraph_1469771130099_-278315611 Not selected or Invalid Interpreter bind" } ``` ### What type of PR is it? Bug Fix ### Todos - [x] runNote api can apply by jdbc alias naming. - [x] The results are recorded in the paragraph. - [x] Binding fails when the interpreter 'HTTP STATUS CODE (412: PRECONDITION FAILED) and returns a message. - [x] modification docs. ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-960 ### How should this be tested? execute to curl command line. 1. curl -XPOST http://(your zeppelin ip):(port)/api/notebook/job/2A94M5J1Z -H'Content-Type:application/json' ``` curl -XPOST http://127.0.0.1:8080/api/notebook/job/2A94M5J1Z -H'Content-Type:application/json' ``` 2. if correct for execution then ``` {"status":"OK"} ``` if invalid notebook id then ``` { "status": "NOT_FOUND", "message": "note not found." } ``` if not binding interpreters ![notebind](https://cloud.githubusercontent.com/assets/10525473/17242167/a2db8ba8-55b0-11e6-89ec-aca49fefbfde.png) ``` { "status": "PRECONDITION_FAILED", "message": "paragraph_(paragraphid) Not selected or Invalid Interpreter bind" } ``` ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? yes Author: CloverHearts <cloverheartsdev@gmail.com> Author: CloverHearts <cloverheartsdev+github@gmail.com> Closes #1242 from cloverhearts/ZEPPELIN-960 and squashes the following commits: 92c8a10 [CloverHearts] remove empty try-catch brace 33b0732 [CloverHearts] Merge branch 'master' into ZEPPELIN-960 9b42898 [CloverHearts] to short msg and removed confusion code. b9e197c [CloverHearts] Merge branch 'master' into ZEPPELIN-960 a672cf3 [CloverHearts] reimplement run.eachParagraph to run.all method 1428795 [CloverHearts] Merge branch 'master' into ZEPPELIN-960 7b71ced [CloverHearts] Merge branch 'master' into ZEPPELIN-960 ff0f213 [CloverHearts] Merge branch 'master' into ZEPPELIN-960 8446513 [CloverHearts] add docs for runNoteJobs restful api 251bb52 [CloverHearts] fixed api method for runNoteJob in notebook rest api
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
[ZEPPELIN-960] When there is no interpreter, paragraph runJobapi modified. ### What is this PR for? Among Zeppelin API Fixed runNote. According to whether the interpreter specified, was added to an exception processing for a result and operation. run success (HTTP STATUS : 200) ``` { "status": "OK" } ``` can't not found note id (HTTP STATUS : 404) ``` { "status": "NOT_FOUND", "message": "note not found." } ``` interpter not found or not bind (HTTP STATUS : 412 - PRECONDITION FAILED) ``` { "status": "PRECONDITION_FAILED", "message": "paragraph_1469771130099_-278315611 Not selected or Invalid Interpreter bind" } ``` ### What type of PR is it? Bug Fix ### Todos - [x] runNote api can apply by jdbc alias naming. - [x] The results are recorded in the paragraph. - [x] Binding fails when the interpreter 'HTTP STATUS CODE (412: PRECONDITION FAILED) and returns a message. - [x] modification docs. ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-960 ### How should this be tested? execute to curl command line. 1. curl -XPOST http://(your zeppelin ip):(port)/api/notebook/job/2A94M5J1Z -H'Content-Type:application/json' ``` curl -XPOST http://127.0.0.1:8080/api/notebook/job/2A94M5J1Z -H'Content-Type:application/json' ``` 2. if correct for execution then ``` {"status":"OK"} ``` if invalid notebook id then ``` { "status": "NOT_FOUND", "message": "note not found." } ``` if not binding interpreters ![notebind](https://cloud.githubusercontent.com/assets/10525473/17242167/a2db8ba8-55b0-11e6-89ec-aca49fefbfde.png) ``` { "status": "PRECONDITION_FAILED", "message": "paragraph_(paragraphid) Not selected or Invalid Interpreter bind" } ``` ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? yes Author: CloverHearts <cloverheartsdev@gmail.com> Author: CloverHearts <cloverheartsdev+github@gmail.com> Closes #1242 from cloverhearts/ZEPPELIN-960 and squashes the following commits: 92c8a10 [CloverHearts] remove empty try-catch brace 33b0732 [CloverHearts] Merge branch 'master' into ZEPPELIN-960 9b42898 [CloverHearts] to short msg and removed confusion code. b9e197c [CloverHearts] Merge branch 'master' into ZEPPELIN-960 a672cf3 [CloverHearts] reimplement run.eachParagraph to run.all method 1428795 [CloverHearts] Merge branch 'master' into ZEPPELIN-960 7b71ced [CloverHearts] Merge branch 'master' into ZEPPELIN-960 ff0f213 [CloverHearts] Merge branch 'master' into ZEPPELIN-960 8446513 [CloverHearts] add docs for runNoteJobs restful api 251bb52 [CloverHearts] fixed api method for runNoteJob in notebook rest api
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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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>
[ZEPPELIN-960] When there is no interpreter, paragraph runJobapi modified. ### What is this PR for? Among Zeppelin API Fixed runNote. According to whether the interpreter specified, was added to an exception processing for a result and operation. run success (HTTP STATUS : 200) ``` { "status": "OK" } ``` can't not found note id (HTTP STATUS : 404) ``` { "status": "NOT_FOUND", "message": "note not found." } ``` interpter not found or not bind (HTTP STATUS : 412 - PRECONDITION FAILED) ``` { "status": "PRECONDITION_FAILED", "message": "paragraph_1469771130099_-278315611 Not selected or Invalid Interpreter bind" } ``` ### What type of PR is it? Bug Fix ### Todos - [x] runNote api can apply by jdbc alias naming. - [x] The results are recorded in the paragraph. - [x] Binding fails when the interpreter 'HTTP STATUS CODE (412: PRECONDITION FAILED) and returns a message. - [x] modification docs. ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-960 ### How should this be tested? execute to curl command line. 1. curl -XPOST http://(your zeppelin ip):(port)/api/notebook/job/2A94M5J1Z -H'Content-Type:application/json' ``` curl -XPOST http://127.0.0.1:8080/api/notebook/job/2A94M5J1Z -H'Content-Type:application/json' ``` 2. if correct for execution then ``` {"status":"OK"} ``` if invalid notebook id then ``` { "status": "NOT_FOUND", "message": "note not found." } ``` if not binding interpreters ![notebind](https://cloud.githubusercontent.com/assets/10525473/17242167/a2db8ba8-55b0-11e6-89ec-aca49fefbfde.png) ``` { "status": "PRECONDITION_FAILED", "message": "paragraph_(paragraphid) Not selected or Invalid Interpreter bind" } ``` ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? yes Author: CloverHearts <cloverheartsdev@gmail.com> Author: CloverHearts <cloverheartsdev+github@gmail.com> Closes #1242 from cloverhearts/ZEPPELIN-960 and squashes the following commits: 92c8a10 [CloverHearts] remove empty try-catch brace 33b0732 [CloverHearts] Merge branch 'master' into ZEPPELIN-960 9b42898 [CloverHearts] to short msg and removed confusion code. b9e197c [CloverHearts] Merge branch 'master' into ZEPPELIN-960 a672cf3 [CloverHearts] reimplement run.eachParagraph to run.all method 1428795 [CloverHearts] Merge branch 'master' into ZEPPELIN-960 7b71ced [CloverHearts] Merge branch 'master' into ZEPPELIN-960 ff0f213 [CloverHearts] Merge branch 'master' into ZEPPELIN-960 8446513 [CloverHearts] add docs for runNoteJobs restful api 251bb52 [CloverHearts] fixed api method for runNoteJob in notebook rest api
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>
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/>
[ZEPPELIN-1018] Apply auto "Table of Contents" generator to Zeppelin docs website ### What is this PR for? I added auto TOC(Table of Contents) generator for Zeppelin documentation website. TOC can help people looking through whole contents at a glance and finding what they want quickly. I just added `<div id="toc"></div>` to the each documentation header. [`toc`](https://github.com/apache/zeppelin/compare/master...AhyoungRyu:ZEPPELIN-1018?expand=1#diff-85af09fb498a5667ea455391533f945dR3) recognize `<h2>` & `<h3>` as a title in the docs and it automatically generate TOC. So I set a rule for this work. (I'll write this rule on `docs/CONTRIBUTING.md` or [docs/howtocontributewebsite](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/howtocontributewebsite.html)). ``` # Level-1 Heading <- Use only for the main title of the page ## Level-2 Heading <- Start with this one ### Level-3 heading <- Only use this one for child of Level-2 toc only recognize Level-2 & Level-3 ``` Please see the below attached screenshot image. ### What type of PR is it? Improvement & Documentation ### Todos * [x] - Add TOC generator * [x] - Apply TOC(`<div id="toc"></div>`) to every documentation and reorganize each headers(apply the above rule) * [x] - Fix some broken code block in several docs * [x] - Apply TOC to `r.md` (Currently R docs has some duplicated info since [this one](https://github.com/apache/zeppelin/commit/d5e87fb8ba98f08db5b0a4995104ce19f182c678) and [this one](https://github.com/apache/zeppelin/commit/7d6cc7e99154e2d337c11fdf8be1a874ed3e9ada) ) * [x] - Apply TOC to `install.md` after #1010 merged * [x] - Apply TOC to `interpreterinstallation.md` after #1042 merged ### What is the Jira issue? [ZEPPELIN-1018](https://issues.apache.org/jira/browse/ZEPPELIN-1018) ### How should this be tested? 1. Apply this patch and build `docs/` with [this guide](https://github.com/apache/zeppelin/tree/master/docs#build-documentation) 2. Visit some docs page. Then you can see TOC in the header of page. ### Screenshots (if appropriate) - Automatically generated TOC in Spark interpreter docs page <img width="831" alt="screen shot 2016-06-16 at 9 37 18 pm" src="https://cloud.githubusercontent.com/assets/10060731/16140902/945b9c7a-340a-11e6-91f3-b6174738bed0.png"> ### Questions: * Does the licenses files need update? No. Actually I used [jekyll-table-of-contents#copyright](https://github.com/ghiculescu/jekyll-table-of-contents#copyright). But I don't need to add a license for this :) * Is there breaking changes for older versions? No * Does this needs documentation? Maybe Author: AhyoungRyu <fbdkdud93@hanmail.net> Closes #1031 from AhyoungRyu/ZEPPELIN-1018 and squashes the following commits: e66397b [AhyoungRyu] Apply TOC to interpreterinstallation.md 009579b [AhyoungRyu] Add more info to 'What is the next?' in install.md 04cf501 [AhyoungRyu] Revert 'where to start' section b7cbe5f [AhyoungRyu] Fix typo cf0911c [AhyoungRyu] Rename license file 388f35a [AhyoungRyu] Add jekyll-table-of-contents license info 6394c70 [AhyoungRyu] Fix image path in python.md d00e4b1 [AhyoungRyu] Move interpreter/screenshot/ -> asset/../img/docs-img/ 3ffb383 [AhyoungRyu] Remove duplicated info in r.md & apply toc a03ca99 [AhyoungRyu] Exclude toc.js from pom.xml 3fae7df [AhyoungRyu] Apply auto generated toc to install.md d114a9d [AhyoungRyu] Address @felixcheung feedback 6a788fe [AhyoungRyu] Resize TOC tab indent 6760c00 [AhyoungRyu] Apply auto TOC to all of docs under docs/storage/ fbde57f [AhyoungRyu] Apply auto TOC to all of docs under docs/quickstart/ db76eb6 [AhyoungRyu] Apply auto TOC to all of docs under docs/install/ f35db47 [AhyoungRyu] Apply auto TOC to all of docs under docs/displaysystem/ b05365f [AhyoungRyu] Apply auto TOC to all of docs under docs/rest-api/ 163691c [AhyoungRyu] Apply auto TOC to all of docs under docs/manual/ bef398e [AhyoungRyu] Apply auto TOC to all of docs under docs/development/ 9c5f76b [AhyoungRyu] Apply auto TOC to all of docs under docs/interpreter/ 587d4ba [AhyoungRyu] Apply auto TOC to all of docs under docs/security/ 1f10b97 [AhyoungRyu] Change toc configuration 78dca9e [AhyoungRyu] Add toc.js for auto generating TOC
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
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/>
[ZEPPELIN-1018] Apply auto "Table of Contents" generator to Zeppelin docs website ### What is this PR for? I added auto TOC(Table of Contents) generator for Zeppelin documentation website. TOC can help people looking through whole contents at a glance and finding what they want quickly. I just added `<div id="toc"></div>` to the each documentation header. [`toc`](https://github.com/apache/zeppelin/compare/master...AhyoungRyu:ZEPPELIN-1018?expand=1#diff-85af09fb498a5667ea455391533f945dR3) recognize `<h2>` & `<h3>` as a title in the docs and it automatically generate TOC. So I set a rule for this work. (I'll write this rule on `docs/CONTRIBUTING.md` or [docs/howtocontributewebsite](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/howtocontributewebsite.html)). ``` # Level-1 Heading <- Use only for the main title of the page ## Level-2 Heading <- Start with this one ### Level-3 heading <- Only use this one for child of Level-2 toc only recognize Level-2 & Level-3 ``` Please see the below attached screenshot image. ### What type of PR is it? Improvement & Documentation ### Todos * [x] - Add TOC generator * [x] - Apply TOC(`<div id="toc"></div>`) to every documentation and reorganize each headers(apply the above rule) * [x] - Fix some broken code block in several docs * [x] - Apply TOC to `r.md` (Currently R docs has some duplicated info since [this one](https://github.com/apache/zeppelin/commit/d5e87fb8ba98f08db5b0a4995104ce19f182c678) and [this one](https://github.com/apache/zeppelin/commit/7d6cc7e99154e2d337c11fdf8be1a874ed3e9ada) ) * [x] - Apply TOC to `install.md` after #1010 merged * [x] - Apply TOC to `interpreterinstallation.md` after #1042 merged ### What is the Jira issue? [ZEPPELIN-1018](https://issues.apache.org/jira/browse/ZEPPELIN-1018) ### How should this be tested? 1. Apply this patch and build `docs/` with [this guide](https://github.com/apache/zeppelin/tree/master/docs#build-documentation) 2. Visit some docs page. Then you can see TOC in the header of page. ### Screenshots (if appropriate) - Automatically generated TOC in Spark interpreter docs page <img width="831" alt="screen shot 2016-06-16 at 9 37 18 pm" src="https://cloud.githubusercontent.com/assets/10060731/16140902/945b9c7a-340a-11e6-91f3-b6174738bed0.png"> ### Questions: * Does the licenses files need update? No. Actually I used [jekyll-table-of-contents#copyright](https://github.com/ghiculescu/jekyll-table-of-contents#copyright). But I don't need to add a license for this :) * Is there breaking changes for older versions? No * Does this needs documentation? Maybe Author: AhyoungRyu <fbdkdud93@hanmail.net> Closes #1031 from AhyoungRyu/ZEPPELIN-1018 and squashes the following commits: e66397b [AhyoungRyu] Apply TOC to interpreterinstallation.md 009579b [AhyoungRyu] Add more info to 'What is the next?' in install.md 04cf501 [AhyoungRyu] Revert 'where to start' section b7cbe5f [AhyoungRyu] Fix typo cf0911c [AhyoungRyu] Rename license file 388f35a [AhyoungRyu] Add jekyll-table-of-contents license info 6394c70 [AhyoungRyu] Fix image path in python.md d00e4b1 [AhyoungRyu] Move interpreter/screenshot/ -> asset/../img/docs-img/ 3ffb383 [AhyoungRyu] Remove duplicated info in r.md & apply toc a03ca99 [AhyoungRyu] Exclude toc.js from pom.xml 3fae7df [AhyoungRyu] Apply auto generated toc to install.md d114a9d [AhyoungRyu] Address @felixcheung feedback 6a788fe [AhyoungRyu] Resize TOC tab indent 6760c00 [AhyoungRyu] Apply auto TOC to all of docs under docs/storage/ fbde57f [AhyoungRyu] Apply auto TOC to all of docs under docs/quickstart/ db76eb6 [AhyoungRyu] Apply auto TOC to all of docs under docs/install/ f35db47 [AhyoungRyu] Apply auto TOC to all of docs under docs/displaysystem/ b05365f [AhyoungRyu] Apply auto TOC to all of docs under docs/rest-api/ 163691c [AhyoungRyu] Apply auto TOC to all of docs under docs/manual/ bef398e [AhyoungRyu] Apply auto TOC to all of docs under docs/development/ 9c5f76b [AhyoungRyu] Apply auto TOC to all of docs under docs/interpreter/ 587d4ba [AhyoungRyu] Apply auto TOC to all of docs under docs/security/ 1f10b97 [AhyoungRyu] Change toc configuration 78dca9e [AhyoungRyu] Add toc.js for auto generating TOC
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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>
<br/>
### Get the status of a single paragraph
<table class="table-configuration">
<col width="200">
<tr>
<td>Description</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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.
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>```http://[zeppelin-server]:[zeppelin-port]/api/notebook/job/[noteId]/[paragraphId]```</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>
<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/>
[ZEPPELIN-699] Add new synchronous paragraph run REST API ### What is this PR for? Right now, when calling the REST API `http://<ip>:<port>/api/notebook/job/<note_id>/<paragraph_id>` Zeppelin always returns **OK** as shown by this source code: https://github.com/apache/incubator-zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java#L477 This ticket will update the behavior so that Zeppelin also return the result of the paragraph execution ### What type of PR is it? [Improvement] ### Todos * [ ] - Code Review * [ ] - Simple Test ### Is there a relevant Jira issue? **[ZEPPELIN-699]** ### How should this be tested? * `git fetch origin pull/746/head:ParagraphExecutionRESTAPI` * `git checkout ParagraphExecutionRESTAPI` * `mvn clean package -DskipTests` * `bin/zeppelin-daemon.sh restart` * Create a new note * In the first paragraph, put the following code ```scala %sh echo "Current time = "`date +"%T" ``` * Retrieve the current note id in the URL * Retrieve the current paragraph id * Use a REST Client like **[POSTman]** to create a HTTP POST query `http://<ip>:<port>/api/notebook/run/<note_id>/<paragraph_id>` * You should receive something similar as follow for answer ``` { "status": "OK", "body": { "code": "SUCCESS", "type": "TEXT", "msg": "Current time = 16:14:18\n" } } ``` ### Screenshots (if appropriate) ![zeppelin_synchronous_rest_api](https://cloud.githubusercontent.com/assets/1532977/15748069/b4a26a46-28dd-11e6-8f51-aa13ddba3f1c.gif) API Documentation update **Existing asynchronous API** ![image](https://cloud.githubusercontent.com/assets/1532977/15773274/5b508cae-2976-11e6-9e52-14d8b7e7828e.png) **New synchronous API** ![image](https://cloud.githubusercontent.com/assets/1532977/15773309/84965a94-2976-11e6-9719-81d8b555c3c4.png) ### Questions: * Does the licenses files need update? --> **No** * Is there breaking changes for older versions? --> **No** * Does this needs documentation? --> **Yes** [ZEPPELIN-699]: https://issues.apache.org/jira/browse/ZEPPELIN-699 [POSTman]: https://www.getpostman.com/ Author: DuyHai DOAN <doanduyhai@gmail.com> Closes #746 from doanduyhai/ZEPPELIN-699 and squashes the following commits: fb0570c [DuyHai DOAN] [ZEPPELIN-699] Update Notebook REST API documentation 8367acf [DuyHai DOAN] [ZEPPELIN-699] Add new synchronous paragraph run REST API
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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 input (optional, only needed when if you want to update dynamic form's value) </td>
<td><pre>
{
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
"name": "name of new note",
"params": {
"formLabel1": "value1",
"formLabel2": "value2"
}
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
}</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
<tr>
<td> sample JSON response </td>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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>
[ZEPPELIN-699] Add new synchronous paragraph run REST API ### What is this PR for? Right now, when calling the REST API `http://<ip>:<port>/api/notebook/job/<note_id>/<paragraph_id>` Zeppelin always returns **OK** as shown by this source code: https://github.com/apache/incubator-zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java#L477 This ticket will update the behavior so that Zeppelin also return the result of the paragraph execution ### What type of PR is it? [Improvement] ### Todos * [ ] - Code Review * [ ] - Simple Test ### Is there a relevant Jira issue? **[ZEPPELIN-699]** ### How should this be tested? * `git fetch origin pull/746/head:ParagraphExecutionRESTAPI` * `git checkout ParagraphExecutionRESTAPI` * `mvn clean package -DskipTests` * `bin/zeppelin-daemon.sh restart` * Create a new note * In the first paragraph, put the following code ```scala %sh echo "Current time = "`date +"%T" ``` * Retrieve the current note id in the URL * Retrieve the current paragraph id * Use a REST Client like **[POSTman]** to create a HTTP POST query `http://<ip>:<port>/api/notebook/run/<note_id>/<paragraph_id>` * You should receive something similar as follow for answer ``` { "status": "OK", "body": { "code": "SUCCESS", "type": "TEXT", "msg": "Current time = 16:14:18\n" } } ``` ### Screenshots (if appropriate) ![zeppelin_synchronous_rest_api](https://cloud.githubusercontent.com/assets/1532977/15748069/b4a26a46-28dd-11e6-8f51-aa13ddba3f1c.gif) API Documentation update **Existing asynchronous API** ![image](https://cloud.githubusercontent.com/assets/1532977/15773274/5b508cae-2976-11e6-9e52-14d8b7e7828e.png) **New synchronous API** ![image](https://cloud.githubusercontent.com/assets/1532977/15773309/84965a94-2976-11e6-9719-81d8b555c3c4.png) ### Questions: * Does the licenses files need update? --> **No** * Is there breaking changes for older versions? --> **No** * Does this needs documentation? --> **Yes** [ZEPPELIN-699]: https://issues.apache.org/jira/browse/ZEPPELIN-699 [POSTman]: https://www.getpostman.com/ Author: DuyHai DOAN <doanduyhai@gmail.com> Closes #746 from doanduyhai/ZEPPELIN-699 and squashes the following commits: fb0570c [DuyHai DOAN] [ZEPPELIN-699] Update Notebook REST API documentation 8367acf [DuyHai DOAN] [ZEPPELIN-699] Add new synchronous paragraph run REST API
2016-06-02 14:24:38 +00:00
<br/>
### Run a paragraph synchronously
<table class="table-configuration">
<col width="200">
<tr>
<td>Description</td>
[ZEPPELIN-1564] Enable note deletion and paragraph output clear from main page ### What is this PR for? - Enables removing note and clear all paragraph's output from Zeppelin main page. - Add rest api for clearing all paragraph output Next possible improvement can be removing notes in folder level and rename folder. ### What type of PR is it? Improvement ### Todos * [x] - Merge #1567 and apply security to `clearAllParagraphOutput` rest api method ### What is the Jira issue? [ZEPPELIN-1564](https://issues.apache.org/jira/browse/ZEPPELIN-1564) ### Screenshots (if appropriate) ![oct-27-2016 18-26-03](https://cloud.githubusercontent.com/assets/8503346/19761938/e013ea02-9c72-11e6-9a08-0a70aca145d2.gif) ### Questions: - Does the licenses files need update? no - Is there breaking changes for older versions? no - Does this needs documentation? yes Author: Mina Lee <minalee@apache.org> Closes #1565 from minahlee/ZEPPELIN-1564 and squashes the following commits: 749aebe [Mina Lee] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1564 1393ee9 [Mina Lee] Rename class name from UnauthorizedException to ForbiddenException Update clear output rest api doc response code 2ee452e [Mina Lee] Add auth check before clearing all paragraph fb7e6ae [Mina Lee] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1564 f349dbf [Mina Lee] Change post to put 7eb3521 [Mina Lee] Give writer permission to clear output dea3ef6 [Mina Lee] Remove unused import d66600c [Mina Lee] Add rest api endpoint for clear paragraph result to document 3d19141 [Mina Lee] Add rest api for clear all paragraph result and add test 98d7604 [Mina Lee] Add clearAllParagraphOutput unit test 4adddb4 [Mina Lee] Clear all paragraphs and remove note from main page
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
[ZEPPELIN-699] Add new synchronous paragraph run REST API ### What is this PR for? Right now, when calling the REST API `http://<ip>:<port>/api/notebook/job/<note_id>/<paragraph_id>` Zeppelin always returns **OK** as shown by this source code: https://github.com/apache/incubator-zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java#L477 This ticket will update the behavior so that Zeppelin also return the result of the paragraph execution ### What type of PR is it? [Improvement] ### Todos * [ ] - Code Review * [ ] - Simple Test ### Is there a relevant Jira issue? **[ZEPPELIN-699]** ### How should this be tested? * `git fetch origin pull/746/head:ParagraphExecutionRESTAPI` * `git checkout ParagraphExecutionRESTAPI` * `mvn clean package -DskipTests` * `bin/zeppelin-daemon.sh restart` * Create a new note * In the first paragraph, put the following code ```scala %sh echo "Current time = "`date +"%T" ``` * Retrieve the current note id in the URL * Retrieve the current paragraph id * Use a REST Client like **[POSTman]** to create a HTTP POST query `http://<ip>:<port>/api/notebook/run/<note_id>/<paragraph_id>` * You should receive something similar as follow for answer ``` { "status": "OK", "body": { "code": "SUCCESS", "type": "TEXT", "msg": "Current time = 16:14:18\n" } } ``` ### Screenshots (if appropriate) ![zeppelin_synchronous_rest_api](https://cloud.githubusercontent.com/assets/1532977/15748069/b4a26a46-28dd-11e6-8f51-aa13ddba3f1c.gif) API Documentation update **Existing asynchronous API** ![image](https://cloud.githubusercontent.com/assets/1532977/15773274/5b508cae-2976-11e6-9e52-14d8b7e7828e.png) **New synchronous API** ![image](https://cloud.githubusercontent.com/assets/1532977/15773309/84965a94-2976-11e6-9719-81d8b555c3c4.png) ### Questions: * Does the licenses files need update? --> **No** * Is there breaking changes for older versions? --> **No** * Does this needs documentation? --> **Yes** [ZEPPELIN-699]: https://issues.apache.org/jira/browse/ZEPPELIN-699 [POSTman]: https://www.getpostman.com/ Author: DuyHai DOAN <doanduyhai@gmail.com> Closes #746 from doanduyhai/ZEPPELIN-699 and squashes the following commits: fb0570c [DuyHai DOAN] [ZEPPELIN-699] Update Notebook REST API documentation 8367acf [DuyHai DOAN] [ZEPPELIN-699] Add new synchronous paragraph run REST API
2016-06-02 14:24:38 +00:00
</td>
</tr>
<tr>
<td>URL</td>
<td>```http://[zeppelin-server]:[zeppelin-port]/api/notebook/run/[noteId]/[paragraphId]```</td>
[ZEPPELIN-699] Add new synchronous paragraph run REST API ### What is this PR for? Right now, when calling the REST API `http://<ip>:<port>/api/notebook/job/<note_id>/<paragraph_id>` Zeppelin always returns **OK** as shown by this source code: https://github.com/apache/incubator-zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java#L477 This ticket will update the behavior so that Zeppelin also return the result of the paragraph execution ### What type of PR is it? [Improvement] ### Todos * [ ] - Code Review * [ ] - Simple Test ### Is there a relevant Jira issue? **[ZEPPELIN-699]** ### How should this be tested? * `git fetch origin pull/746/head:ParagraphExecutionRESTAPI` * `git checkout ParagraphExecutionRESTAPI` * `mvn clean package -DskipTests` * `bin/zeppelin-daemon.sh restart` * Create a new note * In the first paragraph, put the following code ```scala %sh echo "Current time = "`date +"%T" ``` * Retrieve the current note id in the URL * Retrieve the current paragraph id * Use a REST Client like **[POSTman]** to create a HTTP POST query `http://<ip>:<port>/api/notebook/run/<note_id>/<paragraph_id>` * You should receive something similar as follow for answer ``` { "status": "OK", "body": { "code": "SUCCESS", "type": "TEXT", "msg": "Current time = 16:14:18\n" } } ``` ### Screenshots (if appropriate) ![zeppelin_synchronous_rest_api](https://cloud.githubusercontent.com/assets/1532977/15748069/b4a26a46-28dd-11e6-8f51-aa13ddba3f1c.gif) API Documentation update **Existing asynchronous API** ![image](https://cloud.githubusercontent.com/assets/1532977/15773274/5b508cae-2976-11e6-9e52-14d8b7e7828e.png) **New synchronous API** ![image](https://cloud.githubusercontent.com/assets/1532977/15773309/84965a94-2976-11e6-9719-81d8b555c3c4.png) ### Questions: * Does the licenses files need update? --> **No** * Is there breaking changes for older versions? --> **No** * Does this needs documentation? --> **Yes** [ZEPPELIN-699]: https://issues.apache.org/jira/browse/ZEPPELIN-699 [POSTman]: https://www.getpostman.com/ Author: DuyHai DOAN <doanduyhai@gmail.com> Closes #746 from doanduyhai/ZEPPELIN-699 and squashes the following commits: fb0570c [DuyHai DOAN] [ZEPPELIN-699] Update Notebook REST API documentation 8367acf [DuyHai DOAN] [ZEPPELIN-699] Add new synchronous paragraph run REST API
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>
{
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
"name": "name of new note",
[ZEPPELIN-699] Add new synchronous paragraph run REST API ### What is this PR for? Right now, when calling the REST API `http://<ip>:<port>/api/notebook/job/<note_id>/<paragraph_id>` Zeppelin always returns **OK** as shown by this source code: https://github.com/apache/incubator-zeppelin/blob/master/zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java#L477 This ticket will update the behavior so that Zeppelin also return the result of the paragraph execution ### What type of PR is it? [Improvement] ### Todos * [ ] - Code Review * [ ] - Simple Test ### Is there a relevant Jira issue? **[ZEPPELIN-699]** ### How should this be tested? * `git fetch origin pull/746/head:ParagraphExecutionRESTAPI` * `git checkout ParagraphExecutionRESTAPI` * `mvn clean package -DskipTests` * `bin/zeppelin-daemon.sh restart` * Create a new note * In the first paragraph, put the following code ```scala %sh echo "Current time = "`date +"%T" ``` * Retrieve the current note id in the URL * Retrieve the current paragraph id * Use a REST Client like **[POSTman]** to create a HTTP POST query `http://<ip>:<port>/api/notebook/run/<note_id>/<paragraph_id>` * You should receive something similar as follow for answer ``` { "status": "OK", "body": { "code": "SUCCESS", "type": "TEXT", "msg": "Current time = 16:14:18\n" } } ``` ### Screenshots (if appropriate) ![zeppelin_synchronous_rest_api](https://cloud.githubusercontent.com/assets/1532977/15748069/b4a26a46-28dd-11e6-8f51-aa13ddba3f1c.gif) API Documentation update **Existing asynchronous API** ![image](https://cloud.githubusercontent.com/assets/1532977/15773274/5b508cae-2976-11e6-9e52-14d8b7e7828e.png) **New synchronous API** ![image](https://cloud.githubusercontent.com/assets/1532977/15773309/84965a94-2976-11e6-9719-81d8b555c3c4.png) ### Questions: * Does the licenses files need update? --> **No** * Is there breaking changes for older versions? --> **No** * Does this needs documentation? --> **Yes** [ZEPPELIN-699]: https://issues.apache.org/jira/browse/ZEPPELIN-699 [POSTman]: https://www.getpostman.com/ Author: DuyHai DOAN <doanduyhai@gmail.com> Closes #746 from doanduyhai/ZEPPELIN-699 and squashes the following commits: fb0570c [DuyHai DOAN] [ZEPPELIN-699] Update Notebook REST API documentation 8367acf [DuyHai DOAN] [ZEPPELIN-699] Add new synchronous paragraph run REST API
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/>
[ZEPPELIN-1018] Apply auto "Table of Contents" generator to Zeppelin docs website ### What is this PR for? I added auto TOC(Table of Contents) generator for Zeppelin documentation website. TOC can help people looking through whole contents at a glance and finding what they want quickly. I just added `<div id="toc"></div>` to the each documentation header. [`toc`](https://github.com/apache/zeppelin/compare/master...AhyoungRyu:ZEPPELIN-1018?expand=1#diff-85af09fb498a5667ea455391533f945dR3) recognize `<h2>` & `<h3>` as a title in the docs and it automatically generate TOC. So I set a rule for this work. (I'll write this rule on `docs/CONTRIBUTING.md` or [docs/howtocontributewebsite](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/howtocontributewebsite.html)). ``` # Level-1 Heading <- Use only for the main title of the page ## Level-2 Heading <- Start with this one ### Level-3 heading <- Only use this one for child of Level-2 toc only recognize Level-2 & Level-3 ``` Please see the below attached screenshot image. ### What type of PR is it? Improvement & Documentation ### Todos * [x] - Add TOC generator * [x] - Apply TOC(`<div id="toc"></div>`) to every documentation and reorganize each headers(apply the above rule) * [x] - Fix some broken code block in several docs * [x] - Apply TOC to `r.md` (Currently R docs has some duplicated info since [this one](https://github.com/apache/zeppelin/commit/d5e87fb8ba98f08db5b0a4995104ce19f182c678) and [this one](https://github.com/apache/zeppelin/commit/7d6cc7e99154e2d337c11fdf8be1a874ed3e9ada) ) * [x] - Apply TOC to `install.md` after #1010 merged * [x] - Apply TOC to `interpreterinstallation.md` after #1042 merged ### What is the Jira issue? [ZEPPELIN-1018](https://issues.apache.org/jira/browse/ZEPPELIN-1018) ### How should this be tested? 1. Apply this patch and build `docs/` with [this guide](https://github.com/apache/zeppelin/tree/master/docs#build-documentation) 2. Visit some docs page. Then you can see TOC in the header of page. ### Screenshots (if appropriate) - Automatically generated TOC in Spark interpreter docs page <img width="831" alt="screen shot 2016-06-16 at 9 37 18 pm" src="https://cloud.githubusercontent.com/assets/10060731/16140902/945b9c7a-340a-11e6-91f3-b6174738bed0.png"> ### Questions: * Does the licenses files need update? No. Actually I used [jekyll-table-of-contents#copyright](https://github.com/ghiculescu/jekyll-table-of-contents#copyright). But I don't need to add a license for this :) * Is there breaking changes for older versions? No * Does this needs documentation? Maybe Author: AhyoungRyu <fbdkdud93@hanmail.net> Closes #1031 from AhyoungRyu/ZEPPELIN-1018 and squashes the following commits: e66397b [AhyoungRyu] Apply TOC to interpreterinstallation.md 009579b [AhyoungRyu] Add more info to 'What is the next?' in install.md 04cf501 [AhyoungRyu] Revert 'where to start' section b7cbe5f [AhyoungRyu] Fix typo cf0911c [AhyoungRyu] Rename license file 388f35a [AhyoungRyu] Add jekyll-table-of-contents license info 6394c70 [AhyoungRyu] Fix image path in python.md d00e4b1 [AhyoungRyu] Move interpreter/screenshot/ -> asset/../img/docs-img/ 3ffb383 [AhyoungRyu] Remove duplicated info in r.md & apply toc a03ca99 [AhyoungRyu] Exclude toc.js from pom.xml 3fae7df [AhyoungRyu] Apply auto generated toc to install.md d114a9d [AhyoungRyu] Address @felixcheung feedback 6a788fe [AhyoungRyu] Resize TOC tab indent 6760c00 [AhyoungRyu] Apply auto TOC to all of docs under docs/storage/ fbde57f [AhyoungRyu] Apply auto TOC to all of docs under docs/quickstart/ db76eb6 [AhyoungRyu] Apply auto TOC to all of docs under docs/install/ f35db47 [AhyoungRyu] Apply auto TOC to all of docs under docs/displaysystem/ b05365f [AhyoungRyu] Apply auto TOC to all of docs under docs/rest-api/ 163691c [AhyoungRyu] Apply auto TOC to all of docs under docs/manual/ bef398e [AhyoungRyu] Apply auto TOC to all of docs under docs/development/ 9c5f76b [AhyoungRyu] Apply auto TOC to all of docs under docs/interpreter/ 587d4ba [AhyoungRyu] Apply auto TOC to all of docs under docs/security/ 1f10b97 [AhyoungRyu] Change toc configuration 78dca9e [AhyoungRyu] Add toc.js for auto generating TOC
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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>
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/>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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>
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/>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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>
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/>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>This ```GET``` method gets cron job expression of given note id.
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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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) ![screen shot 2015-12-15 at 19 49 18](https://cloud.githubusercontent.com/assets/5582506/11808681/34d004e8-a365-11e5-9452-ea616029073c.png) ![screen shot 2015-12-15 at 19 52 03](https://cloud.githubusercontent.com/assets/5582506/11808699/5dc023ce-a365-11e5-953d-c23235446f9c.png) ### 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
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
<br />
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
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) ![screen shot 2015-12-15 at 19 49 18](https://cloud.githubusercontent.com/assets/5582506/11808681/34d004e8-a365-11e5-9452-ea616029073c.png) ![screen shot 2015-12-15 at 19 52 03](https://cloud.githubusercontent.com/assets/5582506/11808699/5dc023ce-a365-11e5-953d-c23235446f9c.png) ### 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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
<td><pre>
{
"status": "OK",
"body": [
{
"id": "<noteId>/paragraph/<paragraphId>",
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
"name":"Note Name",
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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) ![screen shot 2015-12-15 at 19 49 18](https://cloud.githubusercontent.com/assets/5582506/11808681/34d004e8-a365-11e5-9452-ea616029073c.png) ![screen shot 2015-12-15 at 19 52 03](https://cloud.githubusercontent.com/assets/5582506/11808699/5dc023ce-a365-11e5-953d-c23235446f9c.png) ### 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>
<br/>
[ZEPPELIN-1018] Apply auto "Table of Contents" generator to Zeppelin docs website ### What is this PR for? I added auto TOC(Table of Contents) generator for Zeppelin documentation website. TOC can help people looking through whole contents at a glance and finding what they want quickly. I just added `<div id="toc"></div>` to the each documentation header. [`toc`](https://github.com/apache/zeppelin/compare/master...AhyoungRyu:ZEPPELIN-1018?expand=1#diff-85af09fb498a5667ea455391533f945dR3) recognize `<h2>` & `<h3>` as a title in the docs and it automatically generate TOC. So I set a rule for this work. (I'll write this rule on `docs/CONTRIBUTING.md` or [docs/howtocontributewebsite](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/howtocontributewebsite.html)). ``` # Level-1 Heading <- Use only for the main title of the page ## Level-2 Heading <- Start with this one ### Level-3 heading <- Only use this one for child of Level-2 toc only recognize Level-2 & Level-3 ``` Please see the below attached screenshot image. ### What type of PR is it? Improvement & Documentation ### Todos * [x] - Add TOC generator * [x] - Apply TOC(`<div id="toc"></div>`) to every documentation and reorganize each headers(apply the above rule) * [x] - Fix some broken code block in several docs * [x] - Apply TOC to `r.md` (Currently R docs has some duplicated info since [this one](https://github.com/apache/zeppelin/commit/d5e87fb8ba98f08db5b0a4995104ce19f182c678) and [this one](https://github.com/apache/zeppelin/commit/7d6cc7e99154e2d337c11fdf8be1a874ed3e9ada) ) * [x] - Apply TOC to `install.md` after #1010 merged * [x] - Apply TOC to `interpreterinstallation.md` after #1042 merged ### What is the Jira issue? [ZEPPELIN-1018](https://issues.apache.org/jira/browse/ZEPPELIN-1018) ### How should this be tested? 1. Apply this patch and build `docs/` with [this guide](https://github.com/apache/zeppelin/tree/master/docs#build-documentation) 2. Visit some docs page. Then you can see TOC in the header of page. ### Screenshots (if appropriate) - Automatically generated TOC in Spark interpreter docs page <img width="831" alt="screen shot 2016-06-16 at 9 37 18 pm" src="https://cloud.githubusercontent.com/assets/10060731/16140902/945b9c7a-340a-11e6-91f3-b6174738bed0.png"> ### Questions: * Does the licenses files need update? No. Actually I used [jekyll-table-of-contents#copyright](https://github.com/ghiculescu/jekyll-table-of-contents#copyright). But I don't need to add a license for this :) * Is there breaking changes for older versions? No * Does this needs documentation? Maybe Author: AhyoungRyu <fbdkdud93@hanmail.net> Closes #1031 from AhyoungRyu/ZEPPELIN-1018 and squashes the following commits: e66397b [AhyoungRyu] Apply TOC to interpreterinstallation.md 009579b [AhyoungRyu] Add more info to 'What is the next?' in install.md 04cf501 [AhyoungRyu] Revert 'where to start' section b7cbe5f [AhyoungRyu] Fix typo cf0911c [AhyoungRyu] Rename license file 388f35a [AhyoungRyu] Add jekyll-table-of-contents license info 6394c70 [AhyoungRyu] Fix image path in python.md d00e4b1 [AhyoungRyu] Move interpreter/screenshot/ -> asset/../img/docs-img/ 3ffb383 [AhyoungRyu] Remove duplicated info in r.md & apply toc a03ca99 [AhyoungRyu] Exclude toc.js from pom.xml 3fae7df [AhyoungRyu] Apply auto generated toc to install.md d114a9d [AhyoungRyu] Address @felixcheung feedback 6a788fe [AhyoungRyu] Resize TOC tab indent 6760c00 [AhyoungRyu] Apply auto TOC to all of docs under docs/storage/ fbde57f [AhyoungRyu] Apply auto TOC to all of docs under docs/quickstart/ db76eb6 [AhyoungRyu] Apply auto TOC to all of docs under docs/install/ f35db47 [AhyoungRyu] Apply auto TOC to all of docs under docs/displaysystem/ b05365f [AhyoungRyu] Apply auto TOC to all of docs under docs/rest-api/ 163691c [AhyoungRyu] Apply auto TOC to all of docs under docs/manual/ bef398e [AhyoungRyu] Apply auto TOC to all of docs under docs/development/ 9c5f76b [AhyoungRyu] Apply auto TOC to all of docs under docs/interpreter/ 587d4ba [AhyoungRyu] Apply auto TOC to all of docs under docs/security/ 1f10b97 [AhyoungRyu] Change toc configuration 78dca9e [AhyoungRyu] Add toc.js for auto generating TOC
2016-06-25 19:44:53 +00:00
### Create a new paragraph
<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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]/paragraph```</td>
</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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
{
"title": "Paragraph insert revised",
"text": "%spark\nprintln(\"Paragraph insert revised\")"
}</pre></td>
</tr>
<tr>
<td> sample JSON input (add to specific index) </td>
<td><pre>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
{
"title": "Paragraph insert revised",
"text": "%spark\nprintln(\"Paragraph insert revised\")",
"index": 0
}</pre></td>
</tr>
<tr>
<td> sample JSON response </td>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
<td><pre>
{
"status": "CREATED",
"message": "",
"body": "20151218-100330\_1754029574"
}</pre></td>
</tr>
</table>
<br/>
[ZEPPELIN-1018] Apply auto "Table of Contents" generator to Zeppelin docs website ### What is this PR for? I added auto TOC(Table of Contents) generator for Zeppelin documentation website. TOC can help people looking through whole contents at a glance and finding what they want quickly. I just added `<div id="toc"></div>` to the each documentation header. [`toc`](https://github.com/apache/zeppelin/compare/master...AhyoungRyu:ZEPPELIN-1018?expand=1#diff-85af09fb498a5667ea455391533f945dR3) recognize `<h2>` & `<h3>` as a title in the docs and it automatically generate TOC. So I set a rule for this work. (I'll write this rule on `docs/CONTRIBUTING.md` or [docs/howtocontributewebsite](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/howtocontributewebsite.html)). ``` # Level-1 Heading <- Use only for the main title of the page ## Level-2 Heading <- Start with this one ### Level-3 heading <- Only use this one for child of Level-2 toc only recognize Level-2 & Level-3 ``` Please see the below attached screenshot image. ### What type of PR is it? Improvement & Documentation ### Todos * [x] - Add TOC generator * [x] - Apply TOC(`<div id="toc"></div>`) to every documentation and reorganize each headers(apply the above rule) * [x] - Fix some broken code block in several docs * [x] - Apply TOC to `r.md` (Currently R docs has some duplicated info since [this one](https://github.com/apache/zeppelin/commit/d5e87fb8ba98f08db5b0a4995104ce19f182c678) and [this one](https://github.com/apache/zeppelin/commit/7d6cc7e99154e2d337c11fdf8be1a874ed3e9ada) ) * [x] - Apply TOC to `install.md` after #1010 merged * [x] - Apply TOC to `interpreterinstallation.md` after #1042 merged ### What is the Jira issue? [ZEPPELIN-1018](https://issues.apache.org/jira/browse/ZEPPELIN-1018) ### How should this be tested? 1. Apply this patch and build `docs/` with [this guide](https://github.com/apache/zeppelin/tree/master/docs#build-documentation) 2. Visit some docs page. Then you can see TOC in the header of page. ### Screenshots (if appropriate) - Automatically generated TOC in Spark interpreter docs page <img width="831" alt="screen shot 2016-06-16 at 9 37 18 pm" src="https://cloud.githubusercontent.com/assets/10060731/16140902/945b9c7a-340a-11e6-91f3-b6174738bed0.png"> ### Questions: * Does the licenses files need update? No. Actually I used [jekyll-table-of-contents#copyright](https://github.com/ghiculescu/jekyll-table-of-contents#copyright). But I don't need to add a license for this :) * Is there breaking changes for older versions? No * Does this needs documentation? Maybe Author: AhyoungRyu <fbdkdud93@hanmail.net> Closes #1031 from AhyoungRyu/ZEPPELIN-1018 and squashes the following commits: e66397b [AhyoungRyu] Apply TOC to interpreterinstallation.md 009579b [AhyoungRyu] Add more info to 'What is the next?' in install.md 04cf501 [AhyoungRyu] Revert 'where to start' section b7cbe5f [AhyoungRyu] Fix typo cf0911c [AhyoungRyu] Rename license file 388f35a [AhyoungRyu] Add jekyll-table-of-contents license info 6394c70 [AhyoungRyu] Fix image path in python.md d00e4b1 [AhyoungRyu] Move interpreter/screenshot/ -> asset/../img/docs-img/ 3ffb383 [AhyoungRyu] Remove duplicated info in r.md & apply toc a03ca99 [AhyoungRyu] Exclude toc.js from pom.xml 3fae7df [AhyoungRyu] Apply auto generated toc to install.md d114a9d [AhyoungRyu] Address @felixcheung feedback 6a788fe [AhyoungRyu] Resize TOC tab indent 6760c00 [AhyoungRyu] Apply auto TOC to all of docs under docs/storage/ fbde57f [AhyoungRyu] Apply auto TOC to all of docs under docs/quickstart/ db76eb6 [AhyoungRyu] Apply auto TOC to all of docs under docs/install/ f35db47 [AhyoungRyu] Apply auto TOC to all of docs under docs/displaysystem/ b05365f [AhyoungRyu] Apply auto TOC to all of docs under docs/rest-api/ 163691c [AhyoungRyu] Apply auto TOC to all of docs under docs/manual/ bef398e [AhyoungRyu] Apply auto TOC to all of docs under docs/development/ 9c5f76b [AhyoungRyu] Apply auto TOC to all of docs under docs/interpreter/ 587d4ba [AhyoungRyu] Apply auto TOC to all of docs under docs/security/ 1f10b97 [AhyoungRyu] Change toc configuration 78dca9e [AhyoungRyu] Add toc.js for auto generating TOC
2016-06-25 19:44:53 +00:00
### Get a paragraph information
<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>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]/paragraph/[paragraphId]```</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>
<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": {}
},
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
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) ![multipleout](https://cloud.githubusercontent.com/assets/1540981/20465902/23379948-af1d-11e6-85cf-4d70597fb94e.gif) ### 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": {
"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) ![multipleout](https://cloud.githubusercontent.com/assets/1540981/20465902/23379948-af1d-11e6-85cf-4d70597fb94e.gif) ### 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"
}
]
},
"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
}
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
}</pre></td>
</tr>
</table>
<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) ![multipleout](https://cloud.githubusercontent.com/assets/1540981/20465902/23379948-af1d-11e6-85cf-4d70597fb94e.gif) ### 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":{
"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) ![multipleout](https://cloud.githubusercontent.com/assets/1540981/20465902/23379948-af1d-11e6-85cf-4d70597fb94e.gif) ### 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"
}
]
},
"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>
<br/>
[ZEPPELIN-1018] Apply auto "Table of Contents" generator to Zeppelin docs website ### What is this PR for? I added auto TOC(Table of Contents) generator for Zeppelin documentation website. TOC can help people looking through whole contents at a glance and finding what they want quickly. I just added `<div id="toc"></div>` to the each documentation header. [`toc`](https://github.com/apache/zeppelin/compare/master...AhyoungRyu:ZEPPELIN-1018?expand=1#diff-85af09fb498a5667ea455391533f945dR3) recognize `<h2>` & `<h3>` as a title in the docs and it automatically generate TOC. So I set a rule for this work. (I'll write this rule on `docs/CONTRIBUTING.md` or [docs/howtocontributewebsite](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/howtocontributewebsite.html)). ``` # Level-1 Heading <- Use only for the main title of the page ## Level-2 Heading <- Start with this one ### Level-3 heading <- Only use this one for child of Level-2 toc only recognize Level-2 & Level-3 ``` Please see the below attached screenshot image. ### What type of PR is it? Improvement & Documentation ### Todos * [x] - Add TOC generator * [x] - Apply TOC(`<div id="toc"></div>`) to every documentation and reorganize each headers(apply the above rule) * [x] - Fix some broken code block in several docs * [x] - Apply TOC to `r.md` (Currently R docs has some duplicated info since [this one](https://github.com/apache/zeppelin/commit/d5e87fb8ba98f08db5b0a4995104ce19f182c678) and [this one](https://github.com/apache/zeppelin/commit/7d6cc7e99154e2d337c11fdf8be1a874ed3e9ada) ) * [x] - Apply TOC to `install.md` after #1010 merged * [x] - Apply TOC to `interpreterinstallation.md` after #1042 merged ### What is the Jira issue? [ZEPPELIN-1018](https://issues.apache.org/jira/browse/ZEPPELIN-1018) ### How should this be tested? 1. Apply this patch and build `docs/` with [this guide](https://github.com/apache/zeppelin/tree/master/docs#build-documentation) 2. Visit some docs page. Then you can see TOC in the header of page. ### Screenshots (if appropriate) - Automatically generated TOC in Spark interpreter docs page <img width="831" alt="screen shot 2016-06-16 at 9 37 18 pm" src="https://cloud.githubusercontent.com/assets/10060731/16140902/945b9c7a-340a-11e6-91f3-b6174738bed0.png"> ### Questions: * Does the licenses files need update? No. Actually I used [jekyll-table-of-contents#copyright](https://github.com/ghiculescu/jekyll-table-of-contents#copyright). But I don't need to add a license for this :) * Is there breaking changes for older versions? No * Does this needs documentation? Maybe Author: AhyoungRyu <fbdkdud93@hanmail.net> Closes #1031 from AhyoungRyu/ZEPPELIN-1018 and squashes the following commits: e66397b [AhyoungRyu] Apply TOC to interpreterinstallation.md 009579b [AhyoungRyu] Add more info to 'What is the next?' in install.md 04cf501 [AhyoungRyu] Revert 'where to start' section b7cbe5f [AhyoungRyu] Fix typo cf0911c [AhyoungRyu] Rename license file 388f35a [AhyoungRyu] Add jekyll-table-of-contents license info 6394c70 [AhyoungRyu] Fix image path in python.md d00e4b1 [AhyoungRyu] Move interpreter/screenshot/ -> asset/../img/docs-img/ 3ffb383 [AhyoungRyu] Remove duplicated info in r.md & apply toc a03ca99 [AhyoungRyu] Exclude toc.js from pom.xml 3fae7df [AhyoungRyu] Apply auto generated toc to install.md d114a9d [AhyoungRyu] Address @felixcheung feedback 6a788fe [AhyoungRyu] Resize TOC tab indent 6760c00 [AhyoungRyu] Apply auto TOC to all of docs under docs/storage/ fbde57f [AhyoungRyu] Apply auto TOC to all of docs under docs/quickstart/ db76eb6 [AhyoungRyu] Apply auto TOC to all of docs under docs/install/ f35db47 [AhyoungRyu] Apply auto TOC to all of docs under docs/displaysystem/ b05365f [AhyoungRyu] Apply auto TOC to all of docs under docs/rest-api/ 163691c [AhyoungRyu] Apply auto TOC to all of docs under docs/manual/ bef398e [AhyoungRyu] Apply auto TOC to all of docs under docs/development/ 9c5f76b [AhyoungRyu] Apply auto TOC to all of docs under docs/interpreter/ 587d4ba [AhyoungRyu] Apply auto TOC to all of docs under docs/security/ 1f10b97 [AhyoungRyu] Change toc configuration 78dca9e [AhyoungRyu] Add toc.js for auto generating TOC
2016-06-25 19:44:53 +00:00
### Move a paragraph to the specific index
<table class="table-configuration">
<col width="200">
<tr>
<td>Description</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>This ```POST``` method moves a paragraph to the specific index (order) from the note.
</td>
</tr>
<tr>
<td>URL</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]/paragraph/[paragraphId]/move/[newIndex]```</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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
<td><pre>{"status": "OK","message": ""}</pre></td>
</tr>
</table>
<br/>
[ZEPPELIN-1018] Apply auto "Table of Contents" generator to Zeppelin docs website ### What is this PR for? I added auto TOC(Table of Contents) generator for Zeppelin documentation website. TOC can help people looking through whole contents at a glance and finding what they want quickly. I just added `<div id="toc"></div>` to the each documentation header. [`toc`](https://github.com/apache/zeppelin/compare/master...AhyoungRyu:ZEPPELIN-1018?expand=1#diff-85af09fb498a5667ea455391533f945dR3) recognize `<h2>` & `<h3>` as a title in the docs and it automatically generate TOC. So I set a rule for this work. (I'll write this rule on `docs/CONTRIBUTING.md` or [docs/howtocontributewebsite](https://zeppelin.apache.org/docs/0.6.0-SNAPSHOT/development/howtocontributewebsite.html)). ``` # Level-1 Heading <- Use only for the main title of the page ## Level-2 Heading <- Start with this one ### Level-3 heading <- Only use this one for child of Level-2 toc only recognize Level-2 & Level-3 ``` Please see the below attached screenshot image. ### What type of PR is it? Improvement & Documentation ### Todos * [x] - Add TOC generator * [x] - Apply TOC(`<div id="toc"></div>`) to every documentation and reorganize each headers(apply the above rule) * [x] - Fix some broken code block in several docs * [x] - Apply TOC to `r.md` (Currently R docs has some duplicated info since [this one](https://github.com/apache/zeppelin/commit/d5e87fb8ba98f08db5b0a4995104ce19f182c678) and [this one](https://github.com/apache/zeppelin/commit/7d6cc7e99154e2d337c11fdf8be1a874ed3e9ada) ) * [x] - Apply TOC to `install.md` after #1010 merged * [x] - Apply TOC to `interpreterinstallation.md` after #1042 merged ### What is the Jira issue? [ZEPPELIN-1018](https://issues.apache.org/jira/browse/ZEPPELIN-1018) ### How should this be tested? 1. Apply this patch and build `docs/` with [this guide](https://github.com/apache/zeppelin/tree/master/docs#build-documentation) 2. Visit some docs page. Then you can see TOC in the header of page. ### Screenshots (if appropriate) - Automatically generated TOC in Spark interpreter docs page <img width="831" alt="screen shot 2016-06-16 at 9 37 18 pm" src="https://cloud.githubusercontent.com/assets/10060731/16140902/945b9c7a-340a-11e6-91f3-b6174738bed0.png"> ### Questions: * Does the licenses files need update? No. Actually I used [jekyll-table-of-contents#copyright](https://github.com/ghiculescu/jekyll-table-of-contents#copyright). But I don't need to add a license for this :) * Is there breaking changes for older versions? No * Does this needs documentation? Maybe Author: AhyoungRyu <fbdkdud93@hanmail.net> Closes #1031 from AhyoungRyu/ZEPPELIN-1018 and squashes the following commits: e66397b [AhyoungRyu] Apply TOC to interpreterinstallation.md 009579b [AhyoungRyu] Add more info to 'What is the next?' in install.md 04cf501 [AhyoungRyu] Revert 'where to start' section b7cbe5f [AhyoungRyu] Fix typo cf0911c [AhyoungRyu] Rename license file 388f35a [AhyoungRyu] Add jekyll-table-of-contents license info 6394c70 [AhyoungRyu] Fix image path in python.md d00e4b1 [AhyoungRyu] Move interpreter/screenshot/ -> asset/../img/docs-img/ 3ffb383 [AhyoungRyu] Remove duplicated info in r.md & apply toc a03ca99 [AhyoungRyu] Exclude toc.js from pom.xml 3fae7df [AhyoungRyu] Apply auto generated toc to install.md d114a9d [AhyoungRyu] Address @felixcheung feedback 6a788fe [AhyoungRyu] Resize TOC tab indent 6760c00 [AhyoungRyu] Apply auto TOC to all of docs under docs/storage/ fbde57f [AhyoungRyu] Apply auto TOC to all of docs under docs/quickstart/ db76eb6 [AhyoungRyu] Apply auto TOC to all of docs under docs/install/ f35db47 [AhyoungRyu] Apply auto TOC to all of docs under docs/displaysystem/ b05365f [AhyoungRyu] Apply auto TOC to all of docs under docs/rest-api/ 163691c [AhyoungRyu] Apply auto TOC to all of docs under docs/manual/ bef398e [AhyoungRyu] Apply auto TOC to all of docs under docs/development/ 9c5f76b [AhyoungRyu] Apply auto TOC to all of docs under docs/interpreter/ 587d4ba [AhyoungRyu] Apply auto TOC to all of docs under docs/security/ 1f10b97 [AhyoungRyu] Change toc configuration 78dca9e [AhyoungRyu] Add toc.js for auto generating TOC
2016-06-25 19:44:53 +00:00
### Delete a paragraph
<table class="table-configuration">
<col width="200">
<tr>
<td>Description</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>This ```DELETE``` method deletes a paragraph by the given note and paragraph id.
</td>
</tr>
<tr>
<td>URL</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>```http://[zeppelin-server]:[zeppelin-port]/api/notebook/[noteId]/paragraph/[paragraphId]```</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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
<td><pre>{"status": "OK","message": ""}</pre></td>
</tr>
</table>
Rest Apis to export/import with common code base 1) Rest apis to export notebook as JSON 2) Rest api to import notebook from JSON https://issues.apache.org/jira/browse/ZEPPELIN-590 Author: swakrish <swakrish@gmail.com> Author: Ramaswamy Devarajan <ram.devarajan@us.ibm.com> Closes #614 from swakrish/master and squashes the following commits: 83e7a6d [swakrish] Merge pull request #7 from apache/master 042d9af [swakrish] Merge pull request #6 from apache/master f5b0805 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 869b48f [swakrish] logging the error f8bf1f3 [swakrish] Merge pull request #5 from apache/master f8a992c [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 270e17b [swakrish] changed soureJSON to sourceJson 4cb69be [swakrish] Merge pull request #4 from apache/master e282958 [swakrish] Changed websocket import to use common code e928c14 [swakrish] changed doc to make it http post 4be62f6 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git db6a580 [swakrish] changed HTTP Put to POST in the docs ec14034 [swakrish] Merge pull request #3 from apache/master 630664c [swakrish] Merge pull request #2 from apache/master b080d7d [swakrish] Merge pull request #1 from apache/master db8b016 [Ramaswamy Devarajan] added note not found check for export 7351f31 [Ramaswamy Devarajan] Moved export/import methods to Notebook.java 6c19668 [Ramaswamy Devarajan] Changed http put to Http post for REST import ecb8f1e [Ramaswamy Devarajan] Formatting for google style 9b64a66 [Ramaswamy Devarajan] fixed alignments 0e94dce [Ramaswamy Devarajan] add documentation 3645354 [Ramaswamy Devarajan] Rest Apis to export/import
2016-01-22 00:16:14 +00:00
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
<br />
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
### Export a note
Rest Apis to export/import with common code base 1) Rest apis to export notebook as JSON 2) Rest api to import notebook from JSON https://issues.apache.org/jira/browse/ZEPPELIN-590 Author: swakrish <swakrish@gmail.com> Author: Ramaswamy Devarajan <ram.devarajan@us.ibm.com> Closes #614 from swakrish/master and squashes the following commits: 83e7a6d [swakrish] Merge pull request #7 from apache/master 042d9af [swakrish] Merge pull request #6 from apache/master f5b0805 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 869b48f [swakrish] logging the error f8bf1f3 [swakrish] Merge pull request #5 from apache/master f8a992c [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 270e17b [swakrish] changed soureJSON to sourceJson 4cb69be [swakrish] Merge pull request #4 from apache/master e282958 [swakrish] Changed websocket import to use common code e928c14 [swakrish] changed doc to make it http post 4be62f6 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git db6a580 [swakrish] changed HTTP Put to POST in the docs ec14034 [swakrish] Merge pull request #3 from apache/master 630664c [swakrish] Merge pull request #2 from apache/master b080d7d [swakrish] Merge pull request #1 from apache/master db8b016 [Ramaswamy Devarajan] added note not found check for export 7351f31 [Ramaswamy Devarajan] Moved export/import methods to Notebook.java 6c19668 [Ramaswamy Devarajan] Changed http put to Http post for REST import ecb8f1e [Ramaswamy Devarajan] Formatting for google style 9b64a66 [Ramaswamy Devarajan] fixed alignments 0e94dce [Ramaswamy Devarajan] add documentation 3645354 [Ramaswamy Devarajan] Rest Apis to export/import
2016-01-22 00:16:14 +00:00
<table class="table-configuration">
<col width="200">
<tr>
<td>Description</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>This ```GET``` method exports a note by the given id and gernerates a JSON
Rest Apis to export/import with common code base 1) Rest apis to export notebook as JSON 2) Rest api to import notebook from JSON https://issues.apache.org/jira/browse/ZEPPELIN-590 Author: swakrish <swakrish@gmail.com> Author: Ramaswamy Devarajan <ram.devarajan@us.ibm.com> Closes #614 from swakrish/master and squashes the following commits: 83e7a6d [swakrish] Merge pull request #7 from apache/master 042d9af [swakrish] Merge pull request #6 from apache/master f5b0805 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 869b48f [swakrish] logging the error f8bf1f3 [swakrish] Merge pull request #5 from apache/master f8a992c [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 270e17b [swakrish] changed soureJSON to sourceJson 4cb69be [swakrish] Merge pull request #4 from apache/master e282958 [swakrish] Changed websocket import to use common code e928c14 [swakrish] changed doc to make it http post 4be62f6 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git db6a580 [swakrish] changed HTTP Put to POST in the docs ec14034 [swakrish] Merge pull request #3 from apache/master 630664c [swakrish] Merge pull request #2 from apache/master b080d7d [swakrish] Merge pull request #1 from apache/master db8b016 [Ramaswamy Devarajan] added note not found check for export 7351f31 [Ramaswamy Devarajan] Moved export/import methods to Notebook.java 6c19668 [Ramaswamy Devarajan] Changed http put to Http post for REST import ecb8f1e [Ramaswamy Devarajan] Formatting for google style 9b64a66 [Ramaswamy Devarajan] fixed alignments 0e94dce [Ramaswamy Devarajan] add documentation 3645354 [Ramaswamy Devarajan] Rest Apis to export/import
2016-01-22 00:16:14 +00:00
</td>
</tr>
<tr>
<td>URL</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>```http://[zeppelin-server]:[zeppelin-port]/api/notebook/export/[noteId]```</td>
Rest Apis to export/import with common code base 1) Rest apis to export notebook as JSON 2) Rest api to import notebook from JSON https://issues.apache.org/jira/browse/ZEPPELIN-590 Author: swakrish <swakrish@gmail.com> Author: Ramaswamy Devarajan <ram.devarajan@us.ibm.com> Closes #614 from swakrish/master and squashes the following commits: 83e7a6d [swakrish] Merge pull request #7 from apache/master 042d9af [swakrish] Merge pull request #6 from apache/master f5b0805 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 869b48f [swakrish] logging the error f8bf1f3 [swakrish] Merge pull request #5 from apache/master f8a992c [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 270e17b [swakrish] changed soureJSON to sourceJson 4cb69be [swakrish] Merge pull request #4 from apache/master e282958 [swakrish] Changed websocket import to use common code e928c14 [swakrish] changed doc to make it http post 4be62f6 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git db6a580 [swakrish] changed HTTP Put to POST in the docs ec14034 [swakrish] Merge pull request #3 from apache/master 630664c [swakrish] Merge pull request #2 from apache/master b080d7d [swakrish] Merge pull request #1 from apache/master db8b016 [Ramaswamy Devarajan] added note not found check for export 7351f31 [Ramaswamy Devarajan] Moved export/import methods to Notebook.java 6c19668 [Ramaswamy Devarajan] Changed http put to Http post for REST import ecb8f1e [Ramaswamy Devarajan] Formatting for google style 9b64a66 [Ramaswamy Devarajan] fixed alignments 0e94dce [Ramaswamy Devarajan] add documentation 3645354 [Ramaswamy Devarajan] Rest Apis to export/import
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": {}
},
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
"jobName": "paragraph\_1452300578795\_1196072540",
"id": "20160108-164938\_1685162144",
Rest Apis to export/import with common code base 1) Rest apis to export notebook as JSON 2) Rest api to import notebook from JSON https://issues.apache.org/jira/browse/ZEPPELIN-590 Author: swakrish <swakrish@gmail.com> Author: Ramaswamy Devarajan <ram.devarajan@us.ibm.com> Closes #614 from swakrish/master and squashes the following commits: 83e7a6d [swakrish] Merge pull request #7 from apache/master 042d9af [swakrish] Merge pull request #6 from apache/master f5b0805 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 869b48f [swakrish] logging the error f8bf1f3 [swakrish] Merge pull request #5 from apache/master f8a992c [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 270e17b [swakrish] changed soureJSON to sourceJson 4cb69be [swakrish] Merge pull request #4 from apache/master e282958 [swakrish] Changed websocket import to use common code e928c14 [swakrish] changed doc to make it http post 4be62f6 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git db6a580 [swakrish] changed HTTP Put to POST in the docs ec14034 [swakrish] Merge pull request #3 from apache/master 630664c [swakrish] Merge pull request #2 from apache/master b080d7d [swakrish] Merge pull request #1 from apache/master db8b016 [Ramaswamy Devarajan] added note not found check for export 7351f31 [Ramaswamy Devarajan] Moved export/import methods to Notebook.java 6c19668 [Ramaswamy Devarajan] Changed http put to Http post for REST import ecb8f1e [Ramaswamy Devarajan] Formatting for google style 9b64a66 [Ramaswamy Devarajan] fixed alignments 0e94dce [Ramaswamy Devarajan] add documentation 3645354 [Ramaswamy Devarajan] Rest Apis to export/import
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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
<br />
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
### Import a note
Rest Apis to export/import with common code base 1) Rest apis to export notebook as JSON 2) Rest api to import notebook from JSON https://issues.apache.org/jira/browse/ZEPPELIN-590 Author: swakrish <swakrish@gmail.com> Author: Ramaswamy Devarajan <ram.devarajan@us.ibm.com> Closes #614 from swakrish/master and squashes the following commits: 83e7a6d [swakrish] Merge pull request #7 from apache/master 042d9af [swakrish] Merge pull request #6 from apache/master f5b0805 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 869b48f [swakrish] logging the error f8bf1f3 [swakrish] Merge pull request #5 from apache/master f8a992c [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 270e17b [swakrish] changed soureJSON to sourceJson 4cb69be [swakrish] Merge pull request #4 from apache/master e282958 [swakrish] Changed websocket import to use common code e928c14 [swakrish] changed doc to make it http post 4be62f6 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git db6a580 [swakrish] changed HTTP Put to POST in the docs ec14034 [swakrish] Merge pull request #3 from apache/master 630664c [swakrish] Merge pull request #2 from apache/master b080d7d [swakrish] Merge pull request #1 from apache/master db8b016 [Ramaswamy Devarajan] added note not found check for export 7351f31 [Ramaswamy Devarajan] Moved export/import methods to Notebook.java 6c19668 [Ramaswamy Devarajan] Changed http put to Http post for REST import ecb8f1e [Ramaswamy Devarajan] Formatting for google style 9b64a66 [Ramaswamy Devarajan] fixed alignments 0e94dce [Ramaswamy Devarajan] add documentation 3645354 [Ramaswamy Devarajan] Rest Apis to export/import
2016-01-22 00:16:14 +00:00
<table class="table-configuration">
<col width="200">
<tr>
<td>Description</td>
[ZEPPELIN-1549] Change NotebookID variable name to NoteID ### What is this PR for? This PR fixes wrong written NotebookID to NoteID. ### What type of PR is it? [Improvement] ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1549 ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No Author: hyonzin <hyeonjin507@gmail.com> Author: 정현진 <hyeonjin507@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1518 from hyonzin/ZEPPELIN-1549 and squashes the following commits: 2c5d461 [hyonzin] fix pullNoteID to pullNoteId f843abd [hyonzin] Fix missed line 22aecb3 [hyonzin] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1549 ac03666 [정현진] Merge pull request #1 from minahlee/ZEPPELIN-1549 8b3fffd [Mina Lee] Change notebook to note and fix indentation 000605f [hyonzin] Change clonedNotebookId to clonedNoteId 496695c [hyonzin] Change noteID to noteId 1e87463 [hyonzin] Remove tab indent 5647d37 [hyonzin] Rebase and solve conflicts 09bacd8 [hyonzin] Fix more lines unchanged 070bc2d [hyonzin] fix more in ZeppelinRestApiTest.java 24822a3 [hyonzin] Fix more code not changed (notebookIndex to noteSearchService) 4b4e1e8 [hyonzin] Fix detail (function's name) & Change some placeholder 429203d [hyonzin] Fix details & convention to camel 5fa270d [hyonzin] pull upstream master & fix some details 294bea5 [hyonzin] Fix some wrong written term: Notebook -> Note cc0d315 [hyonzin] Change NotebookID variable name to NoteID
2016-10-24 11:26:33 +00:00
<td>This ```POST``` method imports a note from the note JSON input
Rest Apis to export/import with common code base 1) Rest apis to export notebook as JSON 2) Rest api to import notebook from JSON https://issues.apache.org/jira/browse/ZEPPELIN-590 Author: swakrish <swakrish@gmail.com> Author: Ramaswamy Devarajan <ram.devarajan@us.ibm.com> Closes #614 from swakrish/master and squashes the following commits: 83e7a6d [swakrish] Merge pull request #7 from apache/master 042d9af [swakrish] Merge pull request #6 from apache/master f5b0805 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 869b48f [swakrish] logging the error f8bf1f3 [swakrish] Merge pull request #5 from apache/master f8a992c [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 270e17b [swakrish] changed soureJSON to sourceJson 4cb69be [swakrish] Merge pull request #4 from apache/master e282958 [swakrish] Changed websocket import to use common code e928c14 [swakrish] changed doc to make it http post 4be62f6 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git db6a580 [swakrish] changed HTTP Put to POST in the docs ec14034 [swakrish] Merge pull request #3 from apache/master 630664c [swakrish] Merge pull request #2 from apache/master b080d7d [swakrish] Merge pull request #1 from apache/master db8b016 [Ramaswamy Devarajan] added note not found check for export 7351f31 [Ramaswamy Devarajan] Moved export/import methods to Notebook.java 6c19668 [Ramaswamy Devarajan] Changed http put to Http post for REST import ecb8f1e [Ramaswamy Devarajan] Formatting for google style 9b64a66 [Ramaswamy Devarajan] fixed alignments 0e94dce [Ramaswamy Devarajan] add documentation 3645354 [Ramaswamy Devarajan] Rest Apis to export/import
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>
<tr>
<td>sample JSON input</td>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
<td><pre>
{
Rest Apis to export/import with common code base 1) Rest apis to export notebook as JSON 2) Rest api to import notebook from JSON https://issues.apache.org/jira/browse/ZEPPELIN-590 Author: swakrish <swakrish@gmail.com> Author: Ramaswamy Devarajan <ram.devarajan@us.ibm.com> Closes #614 from swakrish/master and squashes the following commits: 83e7a6d [swakrish] Merge pull request #7 from apache/master 042d9af [swakrish] Merge pull request #6 from apache/master f5b0805 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 869b48f [swakrish] logging the error f8bf1f3 [swakrish] Merge pull request #5 from apache/master f8a992c [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 270e17b [swakrish] changed soureJSON to sourceJson 4cb69be [swakrish] Merge pull request #4 from apache/master e282958 [swakrish] Changed websocket import to use common code e928c14 [swakrish] changed doc to make it http post 4be62f6 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git db6a580 [swakrish] changed HTTP Put to POST in the docs ec14034 [swakrish] Merge pull request #3 from apache/master 630664c [swakrish] Merge pull request #2 from apache/master b080d7d [swakrish] Merge pull request #1 from apache/master db8b016 [Ramaswamy Devarajan] added note not found check for export 7351f31 [Ramaswamy Devarajan] Moved export/import methods to Notebook.java 6c19668 [Ramaswamy Devarajan] Changed http put to Http post for REST import ecb8f1e [Ramaswamy Devarajan] Formatting for google style 9b64a66 [Ramaswamy Devarajan] fixed alignments 0e94dce [Ramaswamy Devarajan] add documentation 3645354 [Ramaswamy Devarajan] Rest Apis to export/import
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": {}
},
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
"jobName": "paragraph\_1452300578795\_1196072540",
"id": "20160108-164938\_1685162144",
Rest Apis to export/import with common code base 1) Rest apis to export notebook as JSON 2) Rest api to import notebook from JSON https://issues.apache.org/jira/browse/ZEPPELIN-590 Author: swakrish <swakrish@gmail.com> Author: Ramaswamy Devarajan <ram.devarajan@us.ibm.com> Closes #614 from swakrish/master and squashes the following commits: 83e7a6d [swakrish] Merge pull request #7 from apache/master 042d9af [swakrish] Merge pull request #6 from apache/master f5b0805 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 869b48f [swakrish] logging the error f8bf1f3 [swakrish] Merge pull request #5 from apache/master f8a992c [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 270e17b [swakrish] changed soureJSON to sourceJson 4cb69be [swakrish] Merge pull request #4 from apache/master e282958 [swakrish] Changed websocket import to use common code e928c14 [swakrish] changed doc to make it http post 4be62f6 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git db6a580 [swakrish] changed HTTP Put to POST in the docs ec14034 [swakrish] Merge pull request #3 from apache/master 630664c [swakrish] Merge pull request #2 from apache/master b080d7d [swakrish] Merge pull request #1 from apache/master db8b016 [Ramaswamy Devarajan] added note not found check for export 7351f31 [Ramaswamy Devarajan] Moved export/import methods to Notebook.java 6c19668 [Ramaswamy Devarajan] Changed http put to Http post for REST import ecb8f1e [Ramaswamy Devarajan] Formatting for google style 9b64a66 [Ramaswamy Devarajan] fixed alignments 0e94dce [Ramaswamy Devarajan] add documentation 3645354 [Ramaswamy Devarajan] Rest Apis to export/import
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>
[ZEPPELIN-952] Refine website style ### What is this PR for? - update document style (font, line-spacing) - apply same formats for documents - fix broke document styles ### What type of PR is it? Documentation ### What is the Jira issue? [ZEPPELIN-952](https://issues.apache.org/jira/browse/ZEPPELIN-952) ### Screenshots (if appropriate) **Before** <img width="1184" alt="screen shot 2016-06-04 at 9 51 38 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803667/d0dd5ac2-2a9f-11e6-9ed0-ddc369a97612.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 9 15 08 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803666/cd9212ea-2a9f-11e6-986e-17992a495ab6.png"> **Before** <img width="1183" alt="screen shot 2016-06-04 at 10 08 53 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803695/03e73126-2aa1-11e6-8675-3ca437aeb833.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 08 18 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803696/078ce866-2aa1-11e6-9044-4f5e16649eb4.png"> **Before** <img width="1184" alt="screen shot 2016-06-04 at 10 10 47 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803704/5787e9ba-2aa1-11e6-804c-076a8f3aa852.png"> **After** <img width="1184" alt="screen shot 2016-06-04 at 10 11 22 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803707/5afb5d0c-2aa1-11e6-98c7-7440db35bd2f.png"> **Before** <img width="188" alt="screen shot 2016-06-04 at 10 12 36 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803719/92e5cc3e-2aa1-11e6-9a9f-e12150e78733.png"> **After** <img width="199" alt="screen shot 2016-06-04 at 10 12 55 pm" src="https://cloud.githubusercontent.com/assets/8503346/15803721/958e8c00-2aa1-11e6-8768-8350db6e7173.png"> ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Mina Lee <minalee@nflabs.com> Closes #962 from minahlee/ZEPPELIN-952 and squashes the following commits: f9bee91 [Mina Lee] Capitalize hawq 72481bd [Mina Lee] Update doc titles 495a074 [Mina Lee] remove old style.css 27ca869 [Mina Lee] use code block for file location in spark.md eb821f1 [Mina Lee] Change file location and rename file 72f8ec3 [Mina Lee] change storage doc layout and fix pre block 4202208 [Mina Lee] Apply same format for rest api docs 5875066 [Mina Lee] split display page into text and html 8bc5a6e [Mina Lee] prettify document 0cb953e [Mina Lee] remove incubating tag
2016-06-05 04:54:02 +00:00
<tr>
<td>sample JSON response</td>
<td><pre>
{
"status": "CREATED",
"message": "",
"body": "2AZPHY918"
}</pre></td>
Rest Apis to export/import with common code base 1) Rest apis to export notebook as JSON 2) Rest api to import notebook from JSON https://issues.apache.org/jira/browse/ZEPPELIN-590 Author: swakrish <swakrish@gmail.com> Author: Ramaswamy Devarajan <ram.devarajan@us.ibm.com> Closes #614 from swakrish/master and squashes the following commits: 83e7a6d [swakrish] Merge pull request #7 from apache/master 042d9af [swakrish] Merge pull request #6 from apache/master f5b0805 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 869b48f [swakrish] logging the error f8bf1f3 [swakrish] Merge pull request #5 from apache/master f8a992c [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git 270e17b [swakrish] changed soureJSON to sourceJson 4cb69be [swakrish] Merge pull request #4 from apache/master e282958 [swakrish] Changed websocket import to use common code e928c14 [swakrish] changed doc to make it http post 4be62f6 [swakrish] Merge branch 'master' of git@github.com:swakrish/incubator-zeppelin.git db6a580 [swakrish] changed HTTP Put to POST in the docs ec14034 [swakrish] Merge pull request #3 from apache/master 630664c [swakrish] Merge pull request #2 from apache/master b080d7d [swakrish] Merge pull request #1 from apache/master db8b016 [Ramaswamy Devarajan] added note not found check for export 7351f31 [Ramaswamy Devarajan] Moved export/import methods to Notebook.java 6c19668 [Ramaswamy Devarajan] Changed http put to Http post for REST import ecb8f1e [Ramaswamy Devarajan] Formatting for google style 9b64a66 [Ramaswamy Devarajan] fixed alignments 0e94dce [Ramaswamy Devarajan] add documentation 3645354 [Ramaswamy Devarajan] Rest Apis to export/import
2016-01-22 00:16:14 +00:00
</tr>
</table>
[ZEPPELIN-1564] Enable note deletion and paragraph output clear from main page ### What is this PR for? - Enables removing note and clear all paragraph's output from Zeppelin main page. - Add rest api for clearing all paragraph output Next possible improvement can be removing notes in folder level and rename folder. ### What type of PR is it? Improvement ### Todos * [x] - Merge #1567 and apply security to `clearAllParagraphOutput` rest api method ### What is the Jira issue? [ZEPPELIN-1564](https://issues.apache.org/jira/browse/ZEPPELIN-1564) ### Screenshots (if appropriate) ![oct-27-2016 18-26-03](https://cloud.githubusercontent.com/assets/8503346/19761938/e013ea02-9c72-11e6-9a08-0a70aca145d2.gif) ### Questions: - Does the licenses files need update? no - Is there breaking changes for older versions? no - Does this needs documentation? yes Author: Mina Lee <minalee@apache.org> Closes #1565 from minahlee/ZEPPELIN-1564 and squashes the following commits: 749aebe [Mina Lee] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1564 1393ee9 [Mina Lee] Rename class name from UnauthorizedException to ForbiddenException Update clear output rest api doc response code 2ee452e [Mina Lee] Add auth check before clearing all paragraph fb7e6ae [Mina Lee] Merge branch 'master' of https://github.com/apache/zeppelin into ZEPPELIN-1564 f349dbf [Mina Lee] Change post to put 7eb3521 [Mina Lee] Give writer permission to clear output dea3ef6 [Mina Lee] Remove unused import d66600c [Mina Lee] Add rest api endpoint for clear paragraph result to document 3d19141 [Mina Lee] Add rest api for clear all paragraph result and add test 98d7604 [Mina Lee] Add clearAllParagraphOutput unit test 4adddb4 [Mina Lee] Clear all paragraphs and remove note from main page
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>