Author: moon
Date: Mon Nov  9 12:38:50 2015
New Revision: 1713424

URL: http://svn.apache.org/viewvc?rev=1713424&view=rev
Log:
Add docs for notebook storage in S3

Added:
    incubator/zeppelin/site/docs/storage/
    incubator/zeppelin/site/docs/storage/storage.html
Modified:
    incubator/zeppelin/site/docs/index.html

Modified: incubator/zeppelin/site/docs/index.html
URL: 
http://svn.apache.org/viewvc/incubator/zeppelin/site/docs/index.html?rev=1713424&r1=1713423&r2=1713424&view=diff
==============================================================================
--- incubator/zeppelin/site/docs/index.html (original)
+++ incubator/zeppelin/site/docs/index.html Mon Nov  9 12:38:50 2015
@@ -184,6 +184,10 @@
       
     
   
+    
+      
+    
+  
 
 
 
@@ -309,6 +313,10 @@
   
     
       
+    
+  
+    
+      
        
        <li><a href="/download.html">Download</a></li>
        
@@ -392,6 +400,12 @@
 <li><a href="../docs/pleasecontribute.html">tajo</a></li>
 </ul>
 
+<h3>Storage</h3>
+
+<ul>
+<li><a href="./storage/storage.html">S3 Storage</a></li>
+</ul>
+
 <h3>Display System</h3>
 
 <ul>

Added: incubator/zeppelin/site/docs/storage/storage.html
URL: 
http://svn.apache.org/viewvc/incubator/zeppelin/site/docs/storage/storage.html?rev=1713424&view=auto
==============================================================================
--- incubator/zeppelin/site/docs/storage/storage.html (added)
+++ incubator/zeppelin/site/docs/storage/storage.html Mon Nov  9 12:38:50 2015
@@ -0,0 +1,448 @@
+
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+    <title>Storage</title>
+    <meta name="description" content="Notebook Storage option for Zeppelin">
+    <meta name="author" content="The Apache Software Foundation">
+
+    <!-- Enable responsive viewport -->
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
+    <!--[if lt IE 9]>
+      <script 
src="http://html5shim.googlecode.com/svn/trunk/html5.js";></script>
+    <![endif]-->
+
+    <!-- Le styles -->
+    <link href="/assets/themes/zeppelin/bootstrap/css/bootstrap.css" 
rel="stylesheet">
+    <link href="/assets/themes/zeppelin/css/style.css?body=1" rel="stylesheet" 
type="text/css">
+    <link href="/assets/themes/zeppelin/css/syntax.css" rel="stylesheet"  
type="text/css" media="screen" /> 
+    <!-- Le fav and touch icons -->
+    <!-- Update these with your own images
+    <link rel="shortcut icon" href="images/favicon.ico">
+    <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
+    <link rel="apple-touch-icon" sizes="72x72" 
href="images/apple-touch-icon-72x72.png">
+    <link rel="apple-touch-icon" sizes="114x114" 
href="images/apple-touch-icon-114x114.png">
+    -->
+
+    <!-- Js -->
+    <script src="https://code.jquery.com/jquery-1.10.2.min.js";></script>
+    <script 
src="/assets/themes/zeppelin/bootstrap/js/bootstrap.min.js"></script>
+
+    <!-- atom & rss feed -->
+    <link href="/atom.xml" type="application/atom+xml" rel="alternate" 
title="Sitewide ATOM Feed">
+    <link href="/rss.xml" type="application/rss+xml" rel="alternate" 
title="Sitewide RSS Feed">
+  </head>
+
+  <body>
+    
+        <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
+      <div class="container">
+        <div class="navbar-header">
+          <button type="button" class="navbar-toggle" data-toggle="collapse" 
data-target=".navbar-collapse">
+            <span class="sr-only">Toggle navigation</span>
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+          </button>
+          <a class="navbar-brand" href="/">
+            <img src="/assets/themes/zeppelin/img/zeppelin_logo.png" 
width="50" alt="I'm zeppelin">
+            Apache Zeppelin <small>(incubating)</small>
+          </a>
+        </div>
+        <nav class="navbar-collapse collapse" role="navigation">
+          <ul class="nav navbar-nav">
+            
+            
+            
+
+
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+
+
+
+          </ul>
+          <ul class="nav navbar-nav navbar-right">
+            
+            
+            
+
+
+  
+    
+      
+    
+  
+    
+      
+       
+       <li><a href="/community.html">Community</a></li>
+       
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+       
+       <li><a href="/docs/index.html">Docs</a></li>
+       
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+       
+       <li><a href="/download.html">Download</a></li>
+       
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+    
+      
+    
+  
+
+
+
+            <li><a 
href="https://github.com/apache/incubator-zeppelin";>GitHub</a></li>
+            <li id="apache">
+              <a href="#" data-toggle="dropdown" 
class="dropdown-toggle">Apache<b class="caret"></b></a>
+               <ul class="dropdown-menu">
+                <li><a 
href="http://www.apache.org/foundation/how-it-works.html";>Apache Software 
Foundation</a></li>
+                <li><a href="http://www.apache.org/licenses/";>Apache 
License</a></li>
+                <li><a 
href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a></li>
+                <li><a 
href="http://www.apache.org/foundation/thanks.html";>Thanks</a></li>
+            </ul>
+            </li>
+          </ul>
+        </nav><!--/.navbar-collapse -->
+      </div>
+    </div>
+
+
+
+
+    <div class="container">
+      
+<!--<div class="hero-unit Storage">
+  <h1></h1>
+</div>
+-->
+
+<div class="row">
+  <div class="col-md-12">
+    <h3>Notebook Storage</h3>
+
+<p>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.</p>
+
+<p></br></p>
+
+<h4>Notebook Storage in S3</h4>
+
+<p>For notebook storage in S3 you need the AWS credentials, for this there are 
three options, the enviroment variable <code>AWS_ACCESS_KEY_ID</code> and 
<code>AWS_ACCESS_SECRET_KEY</code>,  credentials file in the folder .aws in you 
home and IAM role for your instance. For complete the need steps is 
necessary:</p>
+
+<p></br>
+you need the following folder structure on S3</p>
+<div class="highlight"><pre><code class="text language-text" 
data-lang="text">bucket_name/
+  username/
+    notebook/
+</code></pre></div>
+<p>set the enviroment variable in the file 
<strong>zeppelin-env.sh</strong>:</p>
+<div class="highlight"><pre><code class="text language-text" 
data-lang="text">export ZEPPELIN_NOTEBOOK_S3_BUCKET = bucket_name
+export ZEPPELIN_NOTEBOOK_S3_USER = username
+</code></pre></div>
+<p>in the file <strong>zeppelin-site.xml</strong> uncommet and complete the 
next property:</p>
+<div class="highlight"><pre><code class="text language-text" 
data-lang="text">&lt;!--If used S3 to storage, it is necessary the following 
folder structure bucket_name/username/notebook/--&gt;
+&lt;property&gt;
+  &lt;name&gt;zeppelin.notebook.s3.user&lt;/name&gt;
+  &lt;value&gt;username&lt;/value&gt;
+  &lt;description&gt;user name for s3 folder structure&lt;/description&gt;
+&lt;/property&gt;
+&lt;property&gt;
+  &lt;name&gt;zeppelin.notebook.s3.bucket&lt;/name&gt;
+  &lt;value&gt;bucket_name&lt;/value&gt;
+  &lt;description&gt;bucket name for notebook storage&lt;/description&gt;
+&lt;/property&gt;
+</code></pre></div>
+<p>uncomment the next property for use S3NotebookRepo class:</p>
+<div class="highlight"><pre><code class="text language-text" 
data-lang="text">&lt;property&gt;
+  &lt;name&gt;zeppelin.notebook.storage&lt;/name&gt;
+  &lt;value&gt;org.apache.zeppelin.notebook.repo.S3NotebookRepo&lt;/value&gt;
+  &lt;description&gt;notebook persistence layer 
implementation&lt;/description&gt;
+&lt;/property&gt;
+</code></pre></div>
+<p>comment the next property:</p>
+<div class="highlight"><pre><code class="text language-text" 
data-lang="text">&lt;property&gt;
+  &lt;name&gt;zeppelin.notebook.storage&lt;/name&gt;
+  &lt;value&gt;org.apache.zeppelin.notebook.repo.VFSNotebookRepo&lt;/value&gt;
+  &lt;description&gt;notebook persistence layer 
implementation&lt;/description&gt;
+&lt;/property&gt;
+</code></pre></div>
+  </div>
+</div>
+
+
+      <hr>
+      <footer>
+        <!-- <p>&copy; 2015 The Apache Software Foundation</p>-->
+      </footer>
+    </div>
+
+    
+
+
+  <script type="text/javascript">
+  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new 
Date();a=s.createElement(o),
+  
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+  ga('create', 'UA-45176241-5', 'zeppelin.incubator.apache.org');
+  ga('require', 'linkid', 'linkid.js');
+  ga('send', 'pageview');
+
+</script>
+
+
+
+  </body>
+</html>
+


Reply via email to