forked from apache/zeppelin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Author: Victor <[email protected]> Closes apache#392 from vgmartinez/docs_storage and squashes the following commits: 985c4e2 [Victor] add docs for notebook storage in S3
- Loading branch information
1 parent
d9ddceb
commit 81f0248
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
layout: page | ||
title: "Storage" | ||
description: "Notebook Storage option for Zeppelin" | ||
group: storage | ||
--- | ||
|
||
### Notebook Storage | ||
|
||
In Zeppelin there are two option for storage Notebook, by default the notebook is storage in the notebook folder in your local File System and the second option is S3. | ||
|
||
</br> | ||
#### Notebook Storage in S3 | ||
|
||
For notebook storage in S3 you need the AWS credentials, for this there are three options, the enviroment variable ```AWS_ACCESS_KEY_ID``` and ```AWS_ACCESS_SECRET_KEY```, credentials file in the folder .aws in you home and IAM role for your instance. For complete the need steps is necessary: | ||
|
||
</br> | ||
you need the following folder structure on S3 | ||
|
||
``` | ||
bucket_name/ | ||
username/ | ||
notebook/ | ||
``` | ||
|
||
set the enviroment variable in the file **zeppelin-env.sh**: | ||
|
||
``` | ||
export ZEPPELIN_NOTEBOOK_S3_BUCKET = bucket_name | ||
export ZEPPELIN_NOTEBOOK_S3_USER = username | ||
``` | ||
|
||
in the file **zeppelin-site.xml** uncommet and complete the next property: | ||
|
||
``` | ||
<!--If used S3 to storage, it is necessary the following folder structure bucket_name/username/notebook/--> | ||
<property> | ||
<name>zeppelin.notebook.s3.user</name> | ||
<value>username</value> | ||
<description>user name for s3 folder structure</description> | ||
</property> | ||
<property> | ||
<name>zeppelin.notebook.s3.bucket</name> | ||
<value>bucket_name</value> | ||
<description>bucket name for notebook storage</description> | ||
</property> | ||
``` | ||
|
||
uncomment the next property for use S3NotebookRepo class: | ||
|
||
``` | ||
<property> | ||
<name>zeppelin.notebook.storage</name> | ||
<value>org.apache.zeppelin.notebook.repo.S3NotebookRepo</value> | ||
<description>notebook persistence layer implementation</description> | ||
</property> | ||
``` | ||
|
||
comment the next property: | ||
|
||
``` | ||
<property> | ||
<name>zeppelin.notebook.storage</name> | ||
<value>org.apache.zeppelin.notebook.repo.VFSNotebookRepo</value> | ||
<description>notebook persistence layer implementation</description> | ||
</property> | ||
``` |