| |
| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="utf-8"> |
| <title>Apache Zeppelin 0.7.1 Documentation: Notebook Storage for Apache Zeppelin</title> |
| <meta name="description" content="Apache Zeppelin has a pluggable notebook storage mechanism controlled by zeppelin.notebook.storage configuration option with multiple implementations.""> |
| <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]--> |
| |
| <link href="/docs/0.7.1/assets/themes/zeppelin/font-awesome.min.css" rel="stylesheet"> |
| |
| <!-- Le styles --> |
| <link href="/docs/0.7.1/assets/themes/zeppelin/bootstrap/css/bootstrap.css" rel="stylesheet"> |
| <link href="/docs/0.7.1/assets/themes/zeppelin/css/style.css?body=1" rel="stylesheet" type="text/css"> |
| <link href="/docs/0.7.1/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="/docs/0.7.1/assets/themes/zeppelin/jquery-1.10.2.min.js"></script> |
| <script src="/docs/0.7.1/assets/themes/zeppelin/bootstrap/js/bootstrap.min.js"></script> |
| <script src="/docs/0.7.1/assets/themes/zeppelin/js/docs.js"></script> |
| <script src="/docs/0.7.1/assets/themes/zeppelin/js/anchor.min.js"></script> |
| <script src="/docs/0.7.1/assets/themes/zeppelin/js/toc.js"></script> |
| <script src="/docs/0.7.1/assets/themes/zeppelin/js/lunr.min.js"></script> |
| <script src="/docs/0.7.1/assets/themes/zeppelin/js/search.js"></script> |
| |
| <!-- atom & rss feed --> |
| <link href="/docs/0.7.1/atom.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed"> |
| <link href="/docs/0.7.1/rss.xml" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed"> |
| |
| <!-- Matomo --> |
| <script> |
| var _paq = window._paq = window._paq || []; |
| /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ |
| _paq.push["setDoNotTrack", true]; |
| _paq.push["disableCookies"]; |
| _paq.push['trackPageView']; |
| _paq.push['enableLinkTracking']; |
| function { |
| var u="https://analytics.apache.org/"; |
| _paq.push['setTrackerUrl', u+'matomo.php']; |
| _paq.push['setSiteId', '69']; |
| var d=document, g=d.createElement'script', s=d.getElementsByTagName'script'[0]; |
| g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBeforeg,s; |
| }; |
| </script> |
| <!-- End Matomo Code --> |
| </head> |
| |
| <body> |
| |
| <div id="menu" 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> |
| <div class="navbar-brand"> |
| <a class="navbar-brand-main" href="http://zeppelin.apache.org"> |
| <img src="/assets/themes/zeppelin/img/zeppelin_logo.png" width="50" alt="I'm zeppelin"> |
| <span style="vertical-align:middle">Zeppelin</span> |
| </a> |
| <a class="navbar-brand-version" href="/docs/0.7.1"> |
| <span><small>0.7.1</small></span> |
| </a> |
| </div> |
| </div> |
| <nav class="navbar-collapse collapse" role="navigation"> |
| <ul class="nav navbar-nav"> |
| <li> |
| <a href="#" data-toggle="dropdown" class="dropdown-toggle">Quick Start <b class="caret"></b></a> |
| <ul class="dropdown-menu"> |
| <li><a href="/docs/0.7.1/index.html">What is Apache Zeppelin ?</a></li> |
| <li role="separator" class="divider"></li> |
| <li class="title"><span><b>Getting Started</b><span></li> |
| <li><a href="/docs/0.7.1/install/install.html">Install</a></li> |
| <li><a href="/docs/0.7.1/install/configuration.html">Configuration</a></li> |
| <li><a href="/docs/0.7.1/quickstart/explorezeppelinui.html">Explore Zeppelin UI</a></li> |
| <li><a href="/docs/0.7.1/quickstart/tutorial.html">Tutorial</a></li> |
| <li role="separator" class="divider"></li> |
| <li class="title"><span><b>Basic Feature Guide</b><span></li> |
| <li><a href="/docs/0.7.1/manual/dynamicform.html">Dynamic Form</a></li> |
| <li><a href="/docs/0.7.1/manual/publish.html">Publish your Paragraph</a></li> |
| <li><a href="/docs/0.7.1/manual/notebookashomepage.html">Customize Zeppelin Homepage</a></li> |
| <li role="separator" class="divider"></li> |
| <li class="title"><span><b>More</b><span></li> |
| <li><a href="/docs/0.7.1/install/upgrade.html">Upgrade Zeppelin Version</a></li> |
| <li><a href="/docs/0.7.1/install/build.html">Build from source</a></li> |
| <li><a href="/docs/0.7.1/quickstart/install_with_flink_and_spark_cluster.html">Install Zeppelin with Flink and Spark Clusters Tutorial</a></li> |
| </ul> |
| </li> |
| <li> |
| <a href="#" data-toggle="dropdown" class="dropdown-toggle">Interpreter <b class="caret"></b></a> |
| <ul class="dropdown-menu scrollable-menu"> |
| <li><a href="/docs/0.7.1/manual/interpreters.html">Overview</a></li> |
| <li role="separator" class="divider"></li> |
| <li class="title"><span><b>Usage</b><span></li> |
| <li><a href="/docs/0.7.1/manual/interpreterinstallation.html">Interpreter Installation</a></li> |
| <!--<li><a href="/docs/0.7.1/manual/dynamicinterpreterload.html">Dynamic Interpreter Loading</a></li>--> |
| <li><a href="/docs/0.7.1/manual/dependencymanagement.html">Interpreter Dependency Management</a></li> |
| <li><a href="/docs/0.7.1/manual/userimpersonation.html">Interpreter User Impersonation</a></li> |
| <li><a href="/docs/0.7.1/manual/interpreterexechooks.html">Interpreter Execution Hooks (Experimental)</a></li> |
| <li role="separator" class="divider"></li> |
| <li class="title"><span><b>Available Interpreters</b><span></li> |
| <li><a href="/docs/0.7.1/interpreter/alluxio.html">Alluxio</a></li> |
| <li><a href="/docs/0.7.1/interpreter/beam.html">Beam</a></li> |
| <li><a href="/docs/0.7.1/interpreter/bigquery.html">BigQuery</a></li> |
| <li><a href="/docs/0.7.1/interpreter/cassandra.html">Cassandra</a></li> |
| <li><a href="/docs/0.7.1/interpreter/elasticsearch.html">Elasticsearch</a></li> |
| <li><a href="/docs/0.7.1/interpreter/flink.html">Flink</a></li> |
| <li><a href="/docs/0.7.1/interpreter/geode.html">Geode</a></li> |
| <li><a href="/docs/0.7.1/interpreter/hbase.html">HBase</a></li> |
| <li><a href="/docs/0.7.1/interpreter/hdfs.html">HDFS</a></li> |
| <li><a href="/docs/0.7.1/interpreter/hive.html">Hive</a></li> |
| <li><a href="/docs/0.7.1/interpreter/ignite.html">Ignite</a></li> |
| <li><a href="/docs/0.7.1/interpreter/jdbc.html">JDBC</a></li> |
| <li><a href="/docs/0.7.1/interpreter/kylin.html">Kylin</a></li> |
| <li><a href="/docs/0.7.1/interpreter/lens.html">Lens</a></li> |
| <li><a href="/docs/0.7.1/interpreter/livy.html">Livy</a></li> |
| <li><a href="/docs/0.7.1/interpreter/markdown.html">Markdown</a></li> |
| <li><a href="/docs/0.7.1/interpreter/pig.html">Pig</a></li> |
| <li><a href="/docs/0.7.1/interpreter/python.html">Python</a></li> |
| <li><a href="/docs/0.7.1/interpreter/postgresql.html">Postgresql, HAWQ</a></li> |
| <li><a href="/docs/0.7.1/interpreter/r.html">R</a></li> |
| <li><a href="/docs/0.7.1/interpreter/scalding.html">Scalding</a></li> |
| <li><a href="/docs/0.7.1/interpreter/scio.html">Scio</a></li> |
| <li><a href="/docs/0.7.1/interpreter/shell.html">Shell</a></li> |
| <li><a href="/docs/0.7.1/interpreter/spark.html">Spark</a></li> |
| </ul> |
| </li> |
| <li> |
| <a href="#" data-toggle="dropdown" class="dropdown-toggle">Display System <b class="caret"></b></a> |
| <ul class="dropdown-menu"> |
| <li class="title"><span><b>Basic Display System</b><span></li> |
| <li><a href="/docs/0.7.1/displaysystem/basicdisplaysystem.html#text">Text</a></li> |
| <li><a href="/docs/0.7.1/displaysystem/basicdisplaysystem.html#html">Html</a></li> |
| <li><a href="/docs/0.7.1/displaysystem/basicdisplaysystem.html#table">Table</a></li> |
| <li role="separator" class="divider"></li> |
| <li class="title"><span><b>Angular API</b><span></li> |
| <li><a href="/docs/0.7.1/displaysystem/back-end-angular.html">Angular (backend API)</a></li> |
| <li><a href="/docs/0.7.1/displaysystem/front-end-angular.html">Angular (frontend API)</a></li> |
| </ul> |
| </li> |
| <li> |
| <a href="#" data-toggle="dropdown" class="dropdown-toggle">More<b class="caret"></b></a> |
| <ul class="dropdown-menu scrollable-menu" style="right: 0; left: auto;"> |
| <li class="title"><span><b>Notebook Storage</b><span></li> |
| <li><a href="/docs/0.7.1/storage/storage.html#notebook-storage-in-local-git-repository">Git Storage</a></li> |
| <li><a href="/docs/0.7.1/storage/storage.html#notebook-storage-in-s3">S3 Storage</a></li> |
| <li><a href="/docs/0.7.1/storage/storage.html#notebook-storage-in-azure">Azure Storage</a></li> |
| <li><a href="/docs/0.7.1/storage/storage.html#storage-in-zeppelinhub">ZeppelinHub Storage</a></li> |
| <li role="separator" class="divider"></li> |
| <li class="title"><span><b>REST API</b><span></li> |
| <li><a href="/docs/0.7.1/rest-api/rest-interpreter.html">Interpreter API</a></li> |
| <li><a href="/docs/0.7.1/rest-api/rest-notebook.html">Notebook API</a></li> |
| <li><a href="/docs/0.7.1/rest-api/rest-notebookRepo.html">Notebook Repository API</a></li> |
| <li><a href="/docs/0.7.1/rest-api/rest-configuration.html">Configuration API</a></li> |
| <li><a href="/docs/0.7.1/rest-api/rest-credential.html">Credential API</a></li> |
| <li><a href="/docs/0.7.1/rest-api/rest-helium.html">Helium API</a></li> |
| <li role="separator" class="divider"></li> |
| <li class="title"><span><b>Security</b><span></li> |
| <li><a href="/docs/0.7.1/security/shiroauthentication.html">Shiro Authentication</a></li> |
| <li><a href="/docs/0.7.1/security/notebook_authorization.html">Notebook Authorization</a></li> |
| <li><a href="/docs/0.7.1/security/datasource_authorization.html">Data Source Authorization</a></li> |
| <li role="separator" class="divider"></li> |
| <li class="title"><span><b>Advanced</b><span></li> |
| <li><a href="/docs/0.7.1/install/virtual_machine.html">Zeppelin on Vagrant VM</a></li> |
| <li><a href="/docs/0.7.1/install/spark_cluster_mode.html#spark-standalone-mode">Zeppelin on Spark Cluster Mode (Standalone)</a></li> |
| <li><a href="/docs/0.7.1/install/spark_cluster_mode.html#spark-on-yarn-mode">Zeppelin on Spark Cluster Mode (YARN)</a></li> |
| <li><a href="/docs/0.7.1/install/spark_cluster_mode.html#spark-on-mesos-mode">Zeppelin on Spark Cluster Mode (Mesos)</a></li> |
| <li><a href="/docs/0.7.1/install/cdh.html">Zeppelin on CDH</a></li> |
| <li role="separator" class="divider"></li> |
| <li class="title"><span><b>Contibute</b><span></li> |
| <li><a href="/docs/0.7.1/development/writingzeppelininterpreter.html">Writing Zeppelin Interpreter</a></li> |
| <li><a href="/docs/0.7.1/development/writingzeppelinvisualization.html">Writing Zeppelin Visualization (Experimental)</a></li> |
| <li><a href="/docs/0.7.1/development/writingzeppelinapplication.html">Writing Zeppelin Application (Experimental)</a></li> |
| <li><a href="/docs/0.7.1/development/howtocontribute.html">How to contribute (code)</a></li> |
| <li><a href="/docs/0.7.1/development/howtocontributewebsite.html">How to contribute (website)</a></li> |
| </ul> |
| </li> |
| <li> |
| <a href="/docs/0.7.1/search.html" class="nav-search-link"> |
| <span class="fa fa-search nav-search-icon"></span> |
| </a> |
| </li> |
| </ul> |
| </nav><!--/.navbar-collapse --> |
| </div> |
| </div> |
| |
| |
| |
| <div class="content"> |
| |
| <!--<div class="hero-unit Notebook Storage for Apache Zeppelin"> |
| <h1></h1> |
| </div> |
| --> |
| |
| <div class="row"> |
| <div class="col-md-12"> |
| <!-- |
| 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. |
| --> |
| |
| <h1>Notebook storage options for Apache Zeppelin</h1> |
| |
| <div id="toc"></div> |
| |
| <h2>Overview</h2> |
| |
| <p>Apache Zeppelin has a pluggable notebook storage mechanism controlled by <code>zeppelin.notebook.storage</code> configuration option with multiple implementations. |
| There are few notebook storage systems available for a use out of the box:</p> |
| |
| <ul> |
| <li>(default) use local file system and version it using local Git repository - <code>GitNotebookRepo</code></li> |
| <li>all notes are saved in the notebook folder in your local File System - <code>VFSNotebookRepo</code></li> |
| <li>storage using Amazon S3 service - <code>S3NotebookRepo</code></li> |
| <li>storage using Azure service - <code>AzureNotebookRepo</code></li> |
| </ul> |
| |
| <p>Multiple storage systems can be used at the same time by providing a comma-separated list of the class-names in the configuration. |
| By default, only first two of them will be automatically kept in sync by Zeppelin.</p> |
| |
| <p></br></p> |
| |
| <h2>Notebook Storage in local Git repository <a name="Git"></a></h2> |
| |
| <p>To enable versioning for all your local notebooks though a standard Git repository - uncomment the next property in <code>zeppelin-site.xml</code> in order to use GitNotebookRepo class:</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text"><property> |
| <name>zeppelin.notebook.storage</name> |
| <value>org.apache.zeppelin.notebook.repo.GitNotebookRepo</value> |
| <description>notebook persistence layer implementation</description> |
| </property> |
| </code></pre></div> |
| <p></br></p> |
| |
| <h2>Notebook Storage in S3 <a name="S3"></a></h2> |
| |
| <p>Notebooks may be stored in S3, and optionally encrypted. The <a href="https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/DefaultAWSCredentialsProviderChain.html"><code>DefaultAWSCredentialsProviderChain</code></a> credentials provider is used for credentials and checks the following:</p> |
| |
| <ul> |
| <li>The <code>AWS_ACCESS_KEY_ID</code> and <code>AWS_SECRET_ACCESS_KEY</code> environment variables</li> |
| <li>The <code>aws.accessKeyId</code> and <code>aws.secretKey</code> Java System properties</li> |
| <li>Credential profiles file at the default location (<code>~/.aws/credentials</code>) used by the AWS CLI</li> |
| <li>Instance profile credentials delivered through the Amazon EC2 metadata service</li> |
| </ul> |
| |
| <p></br> |
| The following folder structure will be created in S3:</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text">s3://bucket_name/username/notebook-id/ |
| </code></pre></div> |
| <p>Configure by setting environment variables 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>Or using the file <strong>zeppelin-site.xml</strong> uncomment and complete the S3 settings:</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text"><property> |
| <name>zeppelin.notebook.s3.bucket</name> |
| <value>bucket_name</value> |
| <description>bucket name for notebook storage</description> |
| </property> |
| <property> |
| <name>zeppelin.notebook.s3.user</name> |
| <value>username</value> |
| <description>user name for s3 folder structure</description> |
| </property> |
| </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"><property> |
| <name>zeppelin.notebook.storage</name> |
| <value>org.apache.zeppelin.notebook.repo.S3NotebookRepo</value> |
| <description>notebook persistence layer implementation</description> |
| </property> |
| </code></pre></div> |
| <p>Comment out the next property to disable local git notebook storage (the default):</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text"><property> |
| <name>zeppelin.notebook.storage</name> |
| <value>org.apache.zeppelin.notebook.repo.GitNotebookRepo</value> |
| <description>versioned notebook persistence layer implementation</description> |
| </property> |
| </code></pre></div> |
| <h3>Data Encryption in S3</h3> |
| |
| <h4>AWS KMS encryption keys</h4> |
| |
| <p>To use an <a href="https://aws.amazon.com/kms/">AWS KMS</a> encryption key to encrypt notebooks, set the following environment 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_KMS_KEY_ID = kms-key-id |
| </code></pre></div> |
| <p>Or using the following setting in <strong>zeppelin-site.xml</strong>:</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text"><property> |
| <name>zeppelin.notebook.s3.kmsKeyID</name> |
| <value>AWS-KMS-Key-UUID</value> |
| <description>AWS KMS key ID used to encrypt notebook data in S3</description> |
| </property> |
| </code></pre></div> |
| <p>In order to set custom KMS key region, set the following environment 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_KMS_KEY_REGION = kms-key-region |
| </code></pre></div> |
| <p>Or using the following setting in <strong>zeppelin-site.xml</strong>:</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text"><property> |
| <name>zeppelin.notebook.s3.kmsKeyRegion</name> |
| <value>target-region</value> |
| <description>AWS KMS key region in your AWS account</description> |
| </property> |
| </code></pre></div> |
| <p>Format of <code>target-region</code> is described in more details <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#kms_region">here</a> in second <code>Region</code> column (e.g. <code>us-east-1</code>).</p> |
| |
| <h4>Custom Encryption Materials Provider class</h4> |
| |
| <p>You may use a custom <a href="https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/model/EncryptionMaterialsProvider.html"><code>EncryptionMaterialsProvider</code></a> class as long as it is available in the classpath and able to initialize itself from system properties or another mechanism. To use this, set the following environment 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_EMP = class-name |
| </code></pre></div> |
| <p>Or using the following setting in <strong>zeppelin-site.xml</strong>:</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text"><property> |
| <name>zeppelin.notebook.s3.encryptionMaterialsProvider</name> |
| <value>provider implementation class name</value> |
| <description>Custom encryption materials provider used to encrypt notebook data in S3</description> |
| </code></pre></div> |
| <p></br></p> |
| |
| <h2>Notebook Storage in Azure <a name="Azure"></a></h2> |
| |
| <p>Using <code>AzureNotebookRepo</code> you can connect your Zeppelin with your Azure account for notebook storage.</p> |
| |
| <p>First of all, input your <code>AccountName</code>, <code>AccountKey</code>, and <code>Share Name</code> in the file <strong>zeppelin-site.xml</strong> by commenting out and completing the next properties:</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text"><property> |
| <name>zeppelin.notebook.azure.connectionString</name> |
| <value>DefaultEndpointsProtocol=https;AccountName=<accountName>;AccountKey=<accountKey></value> |
| <description>Azure account credentials</description> |
| </property> |
| |
| <property> |
| <name>zeppelin.notebook.azure.share</name> |
| <value>zeppelin</value> |
| <description>share name for notebook storage</description> |
| </property> |
| </code></pre></div> |
| <p>Secondly, you can initialize <code>AzureNotebookRepo</code> class in the file <strong>zeppelin-site.xml</strong> by commenting the next property:</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text"><property> |
| <name>zeppelin.notebook.storage</name> |
| <value>org.apache.zeppelin.notebook.repo.GitNotebookRepo</value> |
| <description>versioned notebook persistence layer implementation</description> |
| </property> |
| </code></pre></div> |
| <p>and commenting out:</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text"><property> |
| <name>zeppelin.notebook.storage</name> |
| <value>org.apache.zeppelin.notebook.repo.AzureNotebookRepo</value> |
| <description>notebook persistence layer implementation</description> |
| </property> |
| </code></pre></div> |
| <p>In case you want to use simultaneously your local git storage with Azure storage use the following property instead:</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text"><property> |
| <name>zeppelin.notebook.storage</name> |
| <value>org.apache.zeppelin.notebook.repo.GitNotebookRepo, apache.zeppelin.notebook.repo.AzureNotebookRepo</value> |
| <description>notebook persistence layer implementation</description> |
| </property> |
| </code></pre></div> |
| <p>Optionally, you can specify Azure folder structure name in the file <strong>zeppelin-site.xml</strong> by commenting out the next property:</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text"> <property> |
| <name>zeppelin.notebook.azure.user</name> |
| <value>user</value> |
| <description>optional user name for Azure folder structure</description> |
| </property> |
| </code></pre></div> |
| <p></br></p> |
| |
| <h2>Storage in ZeppelinHub <a name="ZeppelinHub"></a></h2> |
| |
| <p>ZeppelinHub storage layer allows out of the box connection of Zeppelin instance with your ZeppelinHub account. First of all, you need to either comment out the following property in <strong>zeppelin-site.xml</strong>:</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text"><!-- For connecting your Zeppelin with ZeppelinHub --> |
| <!-- |
| <property> |
| <name>zeppelin.notebook.storage</name> |
| <value>org.apache.zeppelin.notebook.repo.GitNotebookRepo, org.apache.zeppelin.notebook.repo.zeppelinhub.ZeppelinHubRepo</value> |
| <description>two notebook persistence layers (local + ZeppelinHub)</description> |
| </property> |
| --> |
| </code></pre></div> |
| <p>or set the environment 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_STORAGE="org.apache.zeppelin.notebook.repo.GitNotebookRepo, org.apache.zeppelin.notebook.repo.zeppelinhub.ZeppelinHubRepo" |
| </code></pre></div> |
| <p>Secondly, you need to set the environment variables in the file <strong>zeppelin-env.sh</strong>:</p> |
| <div class="highlight"><pre><code class="text language-text" data-lang="text">export ZEPPELINHUB_API_TOKEN = ZeppelinHub token |
| export ZEPPELINHUB_API_ADDRESS = address of ZeppelinHub service (e.g. https://www.zeppelinhub.com) |
| </code></pre></div> |
| <p>You can get more information on generating <code>token</code> and using authentication on the corresponding <a href="http://help.zeppelinhub.com/zeppelin_integration/#add-a-new-zeppelin-instance-and-generate-a-token">help page</a>.</p> |
| |
| </div> |
| </div> |
| |
| |
| <hr> |
| <footer> |
| <!-- <p>© 2017 The Apache Software Foundation</p>--> |
| </footer> |
| </div> |
| |
| |
| |
| |
| |
| |
| |
| </body> |
| </html> |
| |