GitHub user aspen01 opened a pull request:
https://github.com/apache/zeppelin/pull/1600
Using HDFS to backup and restore notebook
### What is this PR for?
This PR supports using HDFS to backup and restore notebook.
It is similar to https://github.com/apache/zeppelin/pull/1479.
However this PR just use WebHDFS API, so we don't need to care about hadoop
libraries' dependency.
### What type of PR is it?
Improvement
### Todos
* [ ] - Task
### What is the Jira issue?
[https://issues.apache.org/jira/browse/ZEPPELIN-1515](https://issues.apache.org/jira/browse/ZEPPELIN-1515)
### How should this be tested?
Set the variables in zeppelin-site.xml
- zeppelin.notebook.storage :
org.apache.zeppelin.notebook.repo.HDFSNotebookRepo
- hdfs.url : Hadoop WebHDFS URL. default: http://localhost:50070/webhdfs/v1/
- hdfs.user : HDFS user. default: hdfs
- hdfs.maxlength : Maximum number of lines of results fetched. default:
100000
- hdfs.notebook.dir : notebook location directory in HDFS. default: /tmp
After zeppelin daemon start, check the notebook directories in
``hdfs.notebook.dir``.
### Screenshots (if appropriate)
### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? Yes
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aspen01/zeppelin branch-0.6
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zeppelin/pull/1600.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1600
----
commit 4b57a2faefdd34f4675e1acd78b25677111a5e57
Author: miru <[email protected]>
Date: 2016-10-26T09:38:21Z
Using HDFS to backup and restore notebook
commit 2cc65adabc760c5da032cf1e7525aeece6705799
Author: miru <[email protected]>
Date: 2016-11-01T09:14:53Z
add hadoop pseudo auth in GETFILESTATUS, LISTSTATUS
add header for uploading file using REST API
commit 858e31beed3903fbdd12fe08b88ee028d397903b
Author: miru <[email protected]>
Date: 2016-11-04T03:19:47Z
always add hadoop pseudo authentication
commit 45f182419fe451cdee970c95b67704fa6cff09a4
Author: miru <[email protected]>
Date: 2016-11-04T14:39:35Z
add document for HDFSNotebookRepo
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---