Skip to content

Commit

Permalink
add docs for notebook storage in S3
Browse files Browse the repository at this point in the history
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
vgmartinez authored and Leemoonsoo committed Nov 9, 2015
1 parent d9ddceb commit 81f0248
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ group: nav-right
* [spark](./interpreter/spark.html)
* [tajo](../docs/pleasecontribute.html)

### Storage
* [S3 Storage](./storage/storage.html)

### Display System

* [text](./displaysystem/display.html)
Expand Down
68 changes: 68 additions & 0 deletions docs/docs/storage/storage.md
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>
```

0 comments on commit 81f0248

Please sign in to comment.