Added: zeppelin/site/docs/0.6.2/quickstart/tutorial.html
URL: 
http://svn.apache.org/viewvc/zeppelin/site/docs/0.6.2/quickstart/tutorial.html?rev=1765205&view=auto
==============================================================================
--- zeppelin/site/docs/0.6.2/quickstart/tutorial.html (added)
+++ zeppelin/site/docs/0.6.2/quickstart/tutorial.html Mon Oct 17 04:13:33 2016
@@ -0,0 +1,364 @@
+
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+    <title>Tutorial</title>
+    <meta name="description" content="Tutorial is valid for Spark 1.3 and 
higher">
+    <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="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" 
rel="stylesheet">
+
+    <!-- Le styles -->
+    <link 
href="/docs/0.6.2/assets/themes/zeppelin/bootstrap/css/bootstrap.css" 
rel="stylesheet">
+    <link href="/docs/0.6.2/assets/themes/zeppelin/css/style.css?body=1" 
rel="stylesheet" type="text/css">
+    <link href="/docs/0.6.2/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="/docs/0.6.2/assets/themes/zeppelin/bootstrap/js/bootstrap.min.js"></script>
+    <script src="/docs/0.6.2/assets/themes/zeppelin/js/docs.js"></script>
+    <script src="/docs/0.6.2/assets/themes/zeppelin/js/anchor.min.js"></script>
+    <script src="/docs/0.6.2/assets/themes/zeppelin/js/toc.js"></script>
+
+    <!-- atom & rss feed -->
+    <link href="/docs/0.6.2/atom.xml" type="application/atom+xml" 
rel="alternate" title="Sitewide ATOM Feed">
+    <link href="/docs/0.6.2/rss.xml" type="application/rss+xml" 
rel="alternate" title="Sitewide RSS Feed">
+  </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>
+          <a class="navbar-brand" href="/docs/0.6.2">
+            <img src="/assets/themes/zeppelin/img/zeppelin_logo.png" 
width="50" alt="I'm zeppelin">
+            <span style="vertical-align:middle">Zeppelin</span>
+            <span style="vertical-align:baseline"><small>0.6.2</small></span>
+          </a>
+        </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.6.2/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.6.2/install/install.html">Install</a></li>
+                <li><a 
href="/docs/0.6.2/install/install.html#apache-zeppelin-configuration">Configuration</a></li>
+                <li><a 
href="/docs/0.6.2/quickstart/explorezeppelinui.html">Explore Zeppelin 
UI</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/manual/dynamicform.html">Dynamic 
Form</a></li>
+                <li><a href="/docs/0.6.2/manual/publish.html">Publish your 
Paragraph</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/install/virtual_machine.html">Zeppelin on Vagrant VM</a></li>
+                <li><a href="/docs/0.6.2/install/upgrade.html">Upgrade 
Zeppelin Version</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.6.2/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.6.2/manual/interpreterinstallation.html">Interpreter 
Installation</a></li>
+                <!--<li><a 
href="/docs/0.6.2/manual/dynamicinterpreterload.html">Dynamic Interpreter 
Loading</a></li>-->
+                <li><a 
href="/docs/0.6.2/manual/dependencymanagement.html">Interpreter Dependency 
Management</a></li>
+                <li role="separator" class="divider"></li>
+                <li class="title"><span><b>Available 
Interpreters</b><span></li>
+                <li><a 
href="/docs/0.6.2/interpreter/alluxio.html">Alluxio</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/bigquery.html">BigQuery</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/cassandra.html">Cassandra</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/elasticsearch.html">Elasticsearch</a></li>
+                <li><a href="/docs/0.6.2/interpreter/flink.html">Flink</a></li>
+                <li><a href="/docs/0.6.2/interpreter/geode.html">Geode</a></li>
+                <li><a href="/docs/0.6.2/interpreter/hbase.html">HBase</a></li>
+                <li><a href="/docs/0.6.2/interpreter/hdfs.html">HDFS</a></li>
+                <li><a href="/docs/0.6.2/interpreter/hive.html">Hive</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/ignite.html">Ignite</a></li>
+                <li><a href="/docs/0.6.2/interpreter/jdbc.html">JDBC</a></li>
+                <li><a href="/docs/0.6.2/interpreter/lens.html">Lens</a></li>
+                <li><a href="/docs/0.6.2/interpreter/livy.html">Livy</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/markdown.html">Markdown</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/python.html">Python</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/postgresql.html">Postgresql, HAWQ</a></li>
+                <li><a href="/docs/0.6.2/interpreter/r.html">R</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/scalding.html">Scalding</a></li>
+                <li><a href="/docs/0.6.2/pleasecontribute.html">Shell</a></li>
+                <li><a href="/docs/0.6.2/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.6.2/displaysystem/basicdisplaysystem.html#text">Text</a></li>
+                <li><a 
href="/docs/0.6.2/displaysystem/basicdisplaysystem.html#html">Html</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/displaysystem/back-end-angular.html">Angular (backend 
API)</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/storage/storage.html#notebook-storage-in-local-git-repository">Git
 Storage</a></li>
+                <li><a 
href="/docs/0.6.2/storage/storage.html#notebook-storage-in-s3">S3 
Storage</a></li>
+                <li><a 
href="/docs/0.6.2/storage/storage.html#notebook-storage-in-azure">Azure 
Storage</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/rest-api/rest-interpreter.html">Interpreter API</a></li>
+                <li><a href="/docs/0.6.2/rest-api/rest-notebook.html">Notebook 
API</a></li>
+                <li><a 
href="/docs/0.6.2/rest-api/rest-configuration.html">Configuration API</a></li>
+                <li role="separator" class="divider"></li>
+                <li class="title"><span><b>Security</b><span></li>
+                <li><a 
href="/docs/0.6.2/security/authentication.html">Authentication for 
NGINX</a></li>
+                <li><a 
href="/docs/0.6.2/security/shiroauthentication.html">Shiro 
Authentication</a></li>
+                <li><a 
href="/docs/0.6.2/security/notebook_authorization.html">Notebook 
Authorization</a></li>
+                <li><a 
href="/docs/0.6.2/security/interpreter_authorization.html">Interpreter & Data 
Resource Authorization</a></li>
+                <li role="separator" class="divider"></li>
+                <li class="title"><span><b>Contibute</b><span></li>
+                <li><a 
href="/docs/0.6.2/development/writingzeppelininterpreter.html">Writing Zeppelin 
Interpreter</a></li>
+                <li><a href="/docs/0.6.2/development/howtocontribute.html">How 
to contribute (code)</a></li>
+                <li><a 
href="/docs/0.6.2/development/howtocontributewebsite.html">How to contribute 
(website)</a></li>
+              </ul>
+            </li>
+          </ul>
+        </nav><!--/.navbar-collapse -->
+      </div>
+    </div>
+    
+
+
+    <div class="content">
+      
+<!--<div class="hero-unit Tutorial">
+  <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>Zeppelin Tutorial</h1>
+
+<div id="toc"></div>
+
+<p>This tutorial walks you through some of the fundamental Zeppelin concepts. 
We will assume you have already installed Zeppelin. If not, please see <a 
href="../install/install.html">here</a> first.</p>
+
+<p>Current main backend processing engine of Zeppelin is <a 
href="https://spark.apache.org";>Apache Spark</a>. If you&#39;re new to this 
system, you might want to start by getting an idea of how it processes data to 
get the most out of Zeppelin.</p>
+
+<h2>Tutorial with Local File</h2>
+
+<h3>Data Refine</h3>
+
+<p>Before you start Zeppelin tutorial, you will need to download <a 
href="http://archive.ics.uci.edu/ml/machine-learning-databases/00222/bank.zip";>bank.zip</a>.
 </p>
+
+<p>First, to transform csv format data into RDD of <code>Bank</code> objects, 
run following script. This will also remove header using <code>filter</code> 
function.</p>
+<div class="highlight"><pre><code class="scala language-scala" 
data-lang="scala"><span class="k">val</span> <span class="n">bankText</span> 
<span class="k">=</span> <span class="n">sc</span><span class="o">.</span><span 
class="n">textFile</span><span class="o">(</span><span 
class="s">&quot;yourPath/bank/bank-full.csv&quot;</span><span class="o">)</span>
+
+<span class="k">case</span> <span class="k">class</span> <span 
class="nc">Bank</span><span class="o">(</span><span class="n">age</span><span 
class="k">:</span><span class="kt">Integer</span><span class="o">,</span> <span 
class="n">job</span><span class="k">:</span><span class="kt">String</span><span 
class="o">,</span> <span class="n">marital</span> <span class="k">:</span> 
<span class="kt">String</span><span class="o">,</span> <span 
class="n">education</span> <span class="k">:</span> <span 
class="kt">String</span><span class="o">,</span> <span class="n">balance</span> 
<span class="k">:</span> <span class="kt">Integer</span><span class="o">)</span>
+
+<span class="c1">// split each line, filter out header (starts with 
&quot;age&quot;), and map it into Bank case class</span>
+<span class="k">val</span> <span class="n">bank</span> <span 
class="k">=</span> <span class="n">bankText</span><span class="o">.</span><span 
class="n">map</span><span class="o">(</span><span class="n">s</span><span 
class="k">=&gt;</span><span class="n">s</span><span class="o">.</span><span 
class="n">split</span><span class="o">(</span><span 
class="s">&quot;;&quot;</span><span class="o">)).</span><span 
class="n">filter</span><span class="o">(</span><span class="n">s</span><span 
class="k">=&gt;</span><span class="n">s</span><span class="o">(</span><span 
class="mi">0</span><span class="o">)!=</span><span 
class="s">&quot;\&quot;age\&quot;&quot;</span><span class="o">).</span><span 
class="n">map</span><span class="o">(</span>
+    <span class="n">s</span><span class="k">=&gt;</span><span 
class="nc">Bank</span><span class="o">(</span><span class="n">s</span><span 
class="o">(</span><span class="mi">0</span><span class="o">).</span><span 
class="n">toInt</span><span class="o">,</span> 
+            <span class="n">s</span><span class="o">(</span><span 
class="mi">1</span><span class="o">).</span><span 
class="n">replaceAll</span><span class="o">(</span><span 
class="s">&quot;\&quot;&quot;</span><span class="o">,</span> <span 
class="s">&quot;&quot;</span><span class="o">),</span>
+            <span class="n">s</span><span class="o">(</span><span 
class="mi">2</span><span class="o">).</span><span 
class="n">replaceAll</span><span class="o">(</span><span 
class="s">&quot;\&quot;&quot;</span><span class="o">,</span> <span 
class="s">&quot;&quot;</span><span class="o">),</span>
+            <span class="n">s</span><span class="o">(</span><span 
class="mi">3</span><span class="o">).</span><span 
class="n">replaceAll</span><span class="o">(</span><span 
class="s">&quot;\&quot;&quot;</span><span class="o">,</span> <span 
class="s">&quot;&quot;</span><span class="o">),</span>
+            <span class="n">s</span><span class="o">(</span><span 
class="mi">5</span><span class="o">).</span><span 
class="n">replaceAll</span><span class="o">(</span><span 
class="s">&quot;\&quot;&quot;</span><span class="o">,</span> <span 
class="s">&quot;&quot;</span><span class="o">).</span><span 
class="n">toInt</span>
+        <span class="o">)</span>
+<span class="o">)</span>
+
+<span class="c1">// convert to DataFrame and create temporal table</span>
+<span class="n">bank</span><span class="o">.</span><span 
class="n">toDF</span><span class="o">().</span><span 
class="n">registerTempTable</span><span class="o">(</span><span 
class="s">&quot;bank&quot;</span><span class="o">)</span>
+</code></pre></div>
+<h3>Data Retrieval</h3>
+
+<p>Suppose we want to see age distribution from <code>bank</code>. To do this, 
run:</p>
+<div class="highlight"><pre><code class="sql language-sql" 
data-lang="sql"><span class="o">%</span><span class="k">sql</span> <span 
class="k">select</span> <span class="n">age</span><span class="p">,</span> 
<span class="k">count</span><span class="p">(</span><span 
class="mi">1</span><span class="p">)</span> <span class="k">from</span> <span 
class="n">bank</span> <span class="k">where</span> <span class="n">age</span> 
<span class="o">&lt;</span> <span class="mi">30</span> <span 
class="k">group</span> <span class="k">by</span> <span class="n">age</span> 
<span class="k">order</span> <span class="k">by</span> <span 
class="n">age</span>
+</code></pre></div>
+<p>You can make input box for setting age condition by replacing 
<code>30</code> with <code>${maxAge=30}</code>.</p>
+<div class="highlight"><pre><code class="sql language-sql" 
data-lang="sql"><span class="o">%</span><span class="k">sql</span> <span 
class="k">select</span> <span class="n">age</span><span class="p">,</span> 
<span class="k">count</span><span class="p">(</span><span 
class="mi">1</span><span class="p">)</span> <span class="k">from</span> <span 
class="n">bank</span> <span class="k">where</span> <span class="n">age</span> 
<span class="o">&lt;</span> <span class="err">${</span><span 
class="n">maxAge</span><span class="o">=</span><span class="mi">30</span><span 
class="err">}</span> <span class="k">group</span> <span class="k">by</span> 
<span class="n">age</span> <span class="k">order</span> <span 
class="k">by</span> <span class="n">age</span>
+</code></pre></div>
+<p>Now we want to see age distribution with certain marital status and add 
combo box to select marital status. Run:</p>
+<div class="highlight"><pre><code class="sql language-sql" 
data-lang="sql"><span class="o">%</span><span class="k">sql</span> <span 
class="k">select</span> <span class="n">age</span><span class="p">,</span> 
<span class="k">count</span><span class="p">(</span><span 
class="mi">1</span><span class="p">)</span> <span class="k">from</span> <span 
class="n">bank</span> <span class="k">where</span> <span 
class="n">marital</span><span class="o">=</span><span 
class="ss">&quot;${marital=single,single|divorced|married}&quot;</span> <span 
class="k">group</span> <span class="k">by</span> <span class="n">age</span> 
<span class="k">order</span> <span class="k">by</span> <span 
class="n">age</span>
+</code></pre></div>
+<p><br /></p>
+
+<h2>Tutorial with Streaming Data</h2>
+
+<h3>Data Refine</h3>
+
+<p>Since this tutorial is based on Twitter&#39;s sample tweet stream, you must 
configure authentication with a Twitter account. To do this, take a look at <a 
href="https://databricks-training.s3.amazonaws.com/realtime-processing-with-spark-streaming.html#twitter-credential-setup";>Twitter
 Credential Setup</a>. After you get API keys, you should fill out credential 
related values(<code>apiKey</code>, <code>apiSecret</code>, 
<code>accessToken</code>, <code>accessTokenSecret</code>) with your API keys on 
following script.</p>
+
+<p>This will create a RDD of <code>Tweet</code> objects and register these 
stream data as a table:</p>
+<div class="highlight"><pre><code class="scala language-scala" 
data-lang="scala"><span class="k">import</span> <span 
class="nn">org.apache.spark.streaming._</span>
+<span class="k">import</span> <span 
class="nn">org.apache.spark.streaming.twitter._</span>
+<span class="k">import</span> <span 
class="nn">org.apache.spark.storage.StorageLevel</span>
+<span class="k">import</span> <span class="nn">scala.io.Source</span>
+<span class="k">import</span> <span 
class="nn">scala.collection.mutable.HashMap</span>
+<span class="k">import</span> <span class="nn">java.io.File</span>
+<span class="k">import</span> <span class="nn">org.apache.log4j.Logger</span>
+<span class="k">import</span> <span class="nn">org.apache.log4j.Level</span>
+<span class="k">import</span> <span 
class="nn">sys.process.stringSeqToProcess</span>
+
+<span class="cm">/** Configures the Oauth Credentials for accessing Twitter 
*/</span>
+<span class="k">def</span> <span 
class="n">configureTwitterCredentials</span><span class="o">(</span><span 
class="n">apiKey</span><span class="k">:</span> <span 
class="kt">String</span><span class="o">,</span> <span 
class="n">apiSecret</span><span class="k">:</span> <span 
class="kt">String</span><span class="o">,</span> <span 
class="n">accessToken</span><span class="k">:</span> <span 
class="kt">String</span><span class="o">,</span> <span 
class="n">accessTokenSecret</span><span class="k">:</span> <span 
class="kt">String</span><span class="o">)</span> <span class="o">{</span>
+  <span class="k">val</span> <span class="n">configs</span> <span 
class="k">=</span> <span class="k">new</span> <span 
class="nc">HashMap</span><span class="o">[</span><span 
class="kt">String</span>, <span class="kt">String</span><span 
class="o">]</span> <span class="o">++=</span> <span class="nc">Seq</span><span 
class="o">(</span>
+    <span class="s">&quot;apiKey&quot;</span> <span class="o">-&gt;</span> 
<span class="n">apiKey</span><span class="o">,</span> <span 
class="s">&quot;apiSecret&quot;</span> <span class="o">-&gt;</span> <span 
class="n">apiSecret</span><span class="o">,</span> <span 
class="s">&quot;accessToken&quot;</span> <span class="o">-&gt;</span> <span 
class="n">accessToken</span><span class="o">,</span> <span 
class="s">&quot;accessTokenSecret&quot;</span> <span class="o">-&gt;</span> 
<span class="n">accessTokenSecret</span><span class="o">)</span>
+  <span class="n">println</span><span class="o">(</span><span 
class="s">&quot;Configuring Twitter OAuth&quot;</span><span class="o">)</span>
+  <span class="n">configs</span><span class="o">.</span><span 
class="n">foreach</span><span class="o">{</span> <span 
class="k">case</span><span class="o">(</span><span class="n">key</span><span 
class="o">,</span> <span class="n">value</span><span class="o">)</span> <span 
class="k">=&gt;</span>
+    <span class="k">if</span> <span class="o">(</span><span 
class="n">value</span><span class="o">.</span><span class="n">trim</span><span 
class="o">.</span><span class="n">isEmpty</span><span class="o">)</span> <span 
class="o">{</span>
+      <span class="k">throw</span> <span class="k">new</span> <span 
class="nc">Exception</span><span class="o">(</span><span class="s">&quot;Error 
setting authentication - value for &quot;</span> <span class="o">+</span> <span 
class="n">key</span> <span class="o">+</span> <span class="s">&quot; not 
set&quot;</span><span class="o">)</span>
+    <span class="o">}</span>
+    <span class="k">val</span> <span class="n">fullKey</span> <span 
class="k">=</span> <span class="s">&quot;twitter4j.oauth.&quot;</span> <span 
class="o">+</span> <span class="n">key</span><span class="o">.</span><span 
class="n">replace</span><span class="o">(</span><span 
class="s">&quot;api&quot;</span><span class="o">,</span> <span 
class="s">&quot;consumer&quot;</span><span class="o">)</span>
+    <span class="nc">System</span><span class="o">.</span><span 
class="n">setProperty</span><span class="o">(</span><span 
class="n">fullKey</span><span class="o">,</span> <span 
class="n">value</span><span class="o">.</span><span class="n">trim</span><span 
class="o">)</span>
+    <span class="n">println</span><span class="o">(</span><span 
class="s">&quot;\tProperty &quot;</span> <span class="o">+</span> <span 
class="n">fullKey</span> <span class="o">+</span> <span class="s">&quot; set as 
[&quot;</span> <span class="o">+</span> <span class="n">value</span><span 
class="o">.</span><span class="n">trim</span> <span class="o">+</span> <span 
class="s">&quot;]&quot;</span><span class="o">)</span>
+  <span class="o">}</span>
+  <span class="n">println</span><span class="o">()</span>
+<span class="o">}</span>
+
+<span class="c1">// Configure Twitter credentials</span>
+<span class="k">val</span> <span class="n">apiKey</span> <span 
class="k">=</span> <span class="s">&quot;xxxxxxxxxxxxxxxxxxxxxxxxx&quot;</span>
+<span class="k">val</span> <span class="n">apiSecret</span> <span 
class="k">=</span> <span 
class="s">&quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;</span>
+<span class="k">val</span> <span class="n">accessToken</span> <span 
class="k">=</span> <span 
class="s">&quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;</span>
+<span class="k">val</span> <span class="n">accessTokenSecret</span> <span 
class="k">=</span> <span 
class="s">&quot;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;</span>
+<span class="n">configureTwitterCredentials</span><span 
class="o">(</span><span class="n">apiKey</span><span class="o">,</span> <span 
class="n">apiSecret</span><span class="o">,</span> <span 
class="n">accessToken</span><span class="o">,</span> <span 
class="n">accessTokenSecret</span><span class="o">)</span>
+
+<span class="k">import</span> <span 
class="nn">org.apache.spark.streaming.twitter._</span>
+<span class="k">val</span> <span class="n">ssc</span> <span class="k">=</span> 
<span class="k">new</span> <span class="nc">StreamingContext</span><span 
class="o">(</span><span class="n">sc</span><span class="o">,</span> <span 
class="nc">Seconds</span><span class="o">(</span><span class="mi">2</span><span 
class="o">))</span>
+<span class="k">val</span> <span class="n">tweets</span> <span 
class="k">=</span> <span class="nc">TwitterUtils</span><span 
class="o">.</span><span class="n">createStream</span><span 
class="o">(</span><span class="n">ssc</span><span class="o">,</span> <span 
class="nc">None</span><span class="o">)</span>
+<span class="k">val</span> <span class="n">twt</span> <span class="k">=</span> 
<span class="n">tweets</span><span class="o">.</span><span 
class="n">window</span><span class="o">(</span><span 
class="nc">Seconds</span><span class="o">(</span><span 
class="mi">60</span><span class="o">))</span>
+
+<span class="k">case</span> <span class="k">class</span> <span 
class="nc">Tweet</span><span class="o">(</span><span 
class="n">createdAt</span><span class="k">:</span><span 
class="kt">Long</span><span class="o">,</span> <span class="n">text</span><span 
class="k">:</span><span class="kt">String</span><span class="o">)</span>
+<span class="n">twt</span><span class="o">.</span><span 
class="n">map</span><span class="o">(</span><span class="n">status</span><span 
class="k">=&gt;</span>
+  <span class="nc">Tweet</span><span class="o">(</span><span 
class="n">status</span><span class="o">.</span><span 
class="n">getCreatedAt</span><span class="o">().</span><span 
class="n">getTime</span><span class="o">()/</span><span 
class="mi">1000</span><span class="o">,</span> <span 
class="n">status</span><span class="o">.</span><span 
class="n">getText</span><span class="o">())</span>
+<span class="o">).</span><span class="n">foreachRDD</span><span 
class="o">(</span><span class="n">rdd</span><span class="k">=&gt;</span>
+  <span class="c1">// Below line works only in spark 1.3.0.</span>
+  <span class="c1">// For spark 1.1.x and spark 1.2.x,</span>
+  <span class="c1">// use rdd.registerTempTable(&quot;tweets&quot;) 
instead.</span>
+  <span class="n">rdd</span><span class="o">.</span><span 
class="n">toDF</span><span class="o">().</span><span 
class="n">registerAsTable</span><span class="o">(</span><span 
class="s">&quot;tweets&quot;</span><span class="o">)</span>
+<span class="o">)</span>
+
+<span class="n">twt</span><span class="o">.</span><span class="n">print</span>
+
+<span class="n">ssc</span><span class="o">.</span><span 
class="n">start</span><span class="o">()</span>
+</code></pre></div>
+<h3>Data Retrieval</h3>
+
+<p>For each following script, every time you click run button you will see 
different result since it is based on real-time data.</p>
+
+<p>Let&#39;s begin by extracting maximum 10 tweets which contain the word 
<strong>girl</strong>.</p>
+<div class="highlight"><pre><code class="sql language-sql" 
data-lang="sql"><span class="o">%</span><span class="k">sql</span> <span 
class="k">select</span> <span class="o">*</span> <span class="k">from</span> 
<span class="n">tweets</span> <span class="k">where</span> <span 
class="nb">text</span> <span class="k">like</span> <span 
class="s1">&#39;%girl%&#39;</span> <span class="k">limit</span> <span 
class="mi">10</span>
+</code></pre></div>
+<p>This time suppose we want to see how many tweets have been created per sec 
during last 60 sec. To do this, run:</p>
+<div class="highlight"><pre><code class="sql language-sql" 
data-lang="sql"><span class="o">%</span><span class="k">sql</span> <span 
class="k">select</span> <span class="n">createdAt</span><span 
class="p">,</span> <span class="k">count</span><span class="p">(</span><span 
class="mi">1</span><span class="p">)</span> <span class="k">from</span> <span 
class="n">tweets</span> <span class="k">group</span> <span class="k">by</span> 
<span class="n">createdAt</span> <span class="k">order</span> <span 
class="k">by</span> <span class="n">createdAt</span>
+</code></pre></div>
+<p>You can make user-defined function and use it in Spark SQL. Let&#39;s try 
it by making function named <code>sentiment</code>. This function will return 
one of the three attitudes( positive, negative, neutral ) towards the 
parameter.</p>
+<div class="highlight"><pre><code class="scala language-scala" 
data-lang="scala"><span class="k">def</span> <span 
class="n">sentiment</span><span class="o">(</span><span class="n">s</span><span 
class="k">:</span><span class="kt">String</span><span class="o">)</span> <span 
class="k">:</span> <span class="kt">String</span> <span class="o">=</span> 
<span class="o">{</span>
+    <span class="k">val</span> <span class="n">positive</span> <span 
class="k">=</span> <span class="nc">Array</span><span class="o">(</span><span 
class="s">&quot;like&quot;</span><span class="o">,</span> <span 
class="s">&quot;love&quot;</span><span class="o">,</span> <span 
class="s">&quot;good&quot;</span><span class="o">,</span> <span 
class="s">&quot;great&quot;</span><span class="o">,</span> <span 
class="s">&quot;happy&quot;</span><span class="o">,</span> <span 
class="s">&quot;cool&quot;</span><span class="o">,</span> <span 
class="s">&quot;the&quot;</span><span class="o">,</span> <span 
class="s">&quot;one&quot;</span><span class="o">,</span> <span 
class="s">&quot;that&quot;</span><span class="o">)</span>
+    <span class="k">val</span> <span class="n">negative</span> <span 
class="k">=</span> <span class="nc">Array</span><span class="o">(</span><span 
class="s">&quot;hate&quot;</span><span class="o">,</span> <span 
class="s">&quot;bad&quot;</span><span class="o">,</span> <span 
class="s">&quot;stupid&quot;</span><span class="o">,</span> <span 
class="s">&quot;is&quot;</span><span class="o">)</span>
+
+    <span class="k">var</span> <span class="n">st</span> <span 
class="k">=</span> <span class="mi">0</span><span class="o">;</span>
+
+    <span class="k">val</span> <span class="n">words</span> <span 
class="k">=</span> <span class="n">s</span><span class="o">.</span><span 
class="n">split</span><span class="o">(</span><span class="s">&quot; 
&quot;</span><span class="o">)</span>    
+    <span class="n">positive</span><span class="o">.</span><span 
class="n">foreach</span><span class="o">(</span><span class="n">p</span> <span 
class="k">=&gt;</span>
+        <span class="n">words</span><span class="o">.</span><span 
class="n">foreach</span><span class="o">(</span><span class="n">w</span> <span 
class="k">=&gt;</span>
+            <span class="k">if</span><span class="o">(</span><span 
class="n">p</span><span class="o">==</span><span class="n">w</span><span 
class="o">)</span> <span class="n">st</span> <span class="k">=</span> <span 
class="n">st</span><span class="o">+</span><span class="mi">1</span>
+        <span class="o">)</span>
+    <span class="o">)</span>
+
+    <span class="n">negative</span><span class="o">.</span><span 
class="n">foreach</span><span class="o">(</span><span class="n">p</span><span 
class="k">=&gt;</span>
+        <span class="n">words</span><span class="o">.</span><span 
class="n">foreach</span><span class="o">(</span><span class="n">w</span><span 
class="k">=&gt;</span>
+            <span class="k">if</span><span class="o">(</span><span 
class="n">p</span><span class="o">==</span><span class="n">w</span><span 
class="o">)</span> <span class="n">st</span> <span class="k">=</span> <span 
class="n">st</span><span class="o">-</span><span class="mi">1</span>
+        <span class="o">)</span>
+    <span class="o">)</span>
+    <span class="k">if</span><span class="o">(</span><span 
class="n">st</span><span class="o">&gt;</span><span class="mi">0</span><span 
class="o">)</span>
+        <span class="s">&quot;positivie&quot;</span>
+    <span class="k">else</span> <span class="k">if</span><span 
class="o">(</span><span class="n">st</span><span class="o">&lt;</span><span 
class="mi">0</span><span class="o">)</span>
+        <span class="s">&quot;negative&quot;</span>
+    <span class="k">else</span>
+        <span class="s">&quot;neutral&quot;</span>
+<span class="o">}</span>
+
+<span class="c1">// Below line works only in spark 1.3.0.</span>
+<span class="c1">// For spark 1.1.x and spark 1.2.x,</span>
+<span class="c1">// use sqlc.registerFunction(&quot;sentiment&quot;, sentiment 
_) instead.</span>
+<span class="n">sqlc</span><span class="o">.</span><span 
class="n">udf</span><span class="o">.</span><span 
class="n">register</span><span class="o">(</span><span 
class="s">&quot;sentiment&quot;</span><span class="o">,</span> <span 
class="n">sentiment</span> <span class="k">_</span><span class="o">)</span>
+</code></pre></div>
+<p>To check how people think about girls using <code>sentiment</code> function 
we&#39;ve made above, run this:</p>
+<div class="highlight"><pre><code class="sql language-sql" 
data-lang="sql"><span class="o">%</span><span class="k">sql</span> <span 
class="k">select</span> <span class="n">sentiment</span><span 
class="p">(</span><span class="nb">text</span><span class="p">),</span> <span 
class="k">count</span><span class="p">(</span><span class="mi">1</span><span 
class="p">)</span> <span class="k">from</span> <span class="n">tweets</span> 
<span class="k">where</span> <span class="nb">text</span> <span 
class="k">like</span> <span class="s1">&#39;%girl%&#39;</span> <span 
class="k">group</span> <span class="k">by</span> <span 
class="n">sentiment</span><span class="p">(</span><span 
class="nb">text</span><span class="p">)</span>
+</code></pre></div>
+  </div>
+</div>
+
+
+      <hr>
+      <footer>
+        <!-- <p>&copy; 2016 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.apache.org');
+  ga('require', 'linkid', 'linkid.js');
+  ga('send', 'pageview');
+
+</script>
+
+
+
+  </body>
+</html>
+

Propchange: zeppelin/site/docs/0.6.2/quickstart/tutorial.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: zeppelin/site/docs/0.6.2/rest-api/rest-configuration.html
URL: 
http://svn.apache.org/viewvc/zeppelin/site/docs/0.6.2/rest-api/rest-configuration.html?rev=1765205&view=auto
==============================================================================
--- zeppelin/site/docs/0.6.2/rest-api/rest-configuration.html (added)
+++ zeppelin/site/docs/0.6.2/rest-api/rest-configuration.html Mon Oct 17 
04:13:33 2016
@@ -0,0 +1,331 @@
+
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+    <title>Configuration REST API</title>
+    <meta name="description" content="">
+    <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="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" 
rel="stylesheet">
+
+    <!-- Le styles -->
+    <link 
href="/docs/0.6.2/assets/themes/zeppelin/bootstrap/css/bootstrap.css" 
rel="stylesheet">
+    <link href="/docs/0.6.2/assets/themes/zeppelin/css/style.css?body=1" 
rel="stylesheet" type="text/css">
+    <link href="/docs/0.6.2/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="/docs/0.6.2/assets/themes/zeppelin/bootstrap/js/bootstrap.min.js"></script>
+    <script src="/docs/0.6.2/assets/themes/zeppelin/js/docs.js"></script>
+    <script src="/docs/0.6.2/assets/themes/zeppelin/js/anchor.min.js"></script>
+    <script src="/docs/0.6.2/assets/themes/zeppelin/js/toc.js"></script>
+
+    <!-- atom & rss feed -->
+    <link href="/docs/0.6.2/atom.xml" type="application/atom+xml" 
rel="alternate" title="Sitewide ATOM Feed">
+    <link href="/docs/0.6.2/rss.xml" type="application/rss+xml" 
rel="alternate" title="Sitewide RSS Feed">
+  </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>
+          <a class="navbar-brand" href="/docs/0.6.2">
+            <img src="/assets/themes/zeppelin/img/zeppelin_logo.png" 
width="50" alt="I'm zeppelin">
+            <span style="vertical-align:middle">Zeppelin</span>
+            <span style="vertical-align:baseline"><small>0.6.2</small></span>
+          </a>
+        </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.6.2/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.6.2/install/install.html">Install</a></li>
+                <li><a 
href="/docs/0.6.2/install/install.html#apache-zeppelin-configuration">Configuration</a></li>
+                <li><a 
href="/docs/0.6.2/quickstart/explorezeppelinui.html">Explore Zeppelin 
UI</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/manual/dynamicform.html">Dynamic 
Form</a></li>
+                <li><a href="/docs/0.6.2/manual/publish.html">Publish your 
Paragraph</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/install/virtual_machine.html">Zeppelin on Vagrant VM</a></li>
+                <li><a href="/docs/0.6.2/install/upgrade.html">Upgrade 
Zeppelin Version</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.6.2/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.6.2/manual/interpreterinstallation.html">Interpreter 
Installation</a></li>
+                <!--<li><a 
href="/docs/0.6.2/manual/dynamicinterpreterload.html">Dynamic Interpreter 
Loading</a></li>-->
+                <li><a 
href="/docs/0.6.2/manual/dependencymanagement.html">Interpreter Dependency 
Management</a></li>
+                <li role="separator" class="divider"></li>
+                <li class="title"><span><b>Available 
Interpreters</b><span></li>
+                <li><a 
href="/docs/0.6.2/interpreter/alluxio.html">Alluxio</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/bigquery.html">BigQuery</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/cassandra.html">Cassandra</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/elasticsearch.html">Elasticsearch</a></li>
+                <li><a href="/docs/0.6.2/interpreter/flink.html">Flink</a></li>
+                <li><a href="/docs/0.6.2/interpreter/geode.html">Geode</a></li>
+                <li><a href="/docs/0.6.2/interpreter/hbase.html">HBase</a></li>
+                <li><a href="/docs/0.6.2/interpreter/hdfs.html">HDFS</a></li>
+                <li><a href="/docs/0.6.2/interpreter/hive.html">Hive</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/ignite.html">Ignite</a></li>
+                <li><a href="/docs/0.6.2/interpreter/jdbc.html">JDBC</a></li>
+                <li><a href="/docs/0.6.2/interpreter/lens.html">Lens</a></li>
+                <li><a href="/docs/0.6.2/interpreter/livy.html">Livy</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/markdown.html">Markdown</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/python.html">Python</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/postgresql.html">Postgresql, HAWQ</a></li>
+                <li><a href="/docs/0.6.2/interpreter/r.html">R</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/scalding.html">Scalding</a></li>
+                <li><a href="/docs/0.6.2/pleasecontribute.html">Shell</a></li>
+                <li><a href="/docs/0.6.2/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.6.2/displaysystem/basicdisplaysystem.html#text">Text</a></li>
+                <li><a 
href="/docs/0.6.2/displaysystem/basicdisplaysystem.html#html">Html</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/displaysystem/back-end-angular.html">Angular (backend 
API)</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/storage/storage.html#notebook-storage-in-local-git-repository">Git
 Storage</a></li>
+                <li><a 
href="/docs/0.6.2/storage/storage.html#notebook-storage-in-s3">S3 
Storage</a></li>
+                <li><a 
href="/docs/0.6.2/storage/storage.html#notebook-storage-in-azure">Azure 
Storage</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/rest-api/rest-interpreter.html">Interpreter API</a></li>
+                <li><a href="/docs/0.6.2/rest-api/rest-notebook.html">Notebook 
API</a></li>
+                <li><a 
href="/docs/0.6.2/rest-api/rest-configuration.html">Configuration API</a></li>
+                <li role="separator" class="divider"></li>
+                <li class="title"><span><b>Security</b><span></li>
+                <li><a 
href="/docs/0.6.2/security/authentication.html">Authentication for 
NGINX</a></li>
+                <li><a 
href="/docs/0.6.2/security/shiroauthentication.html">Shiro 
Authentication</a></li>
+                <li><a 
href="/docs/0.6.2/security/notebook_authorization.html">Notebook 
Authorization</a></li>
+                <li><a 
href="/docs/0.6.2/security/interpreter_authorization.html">Interpreter & Data 
Resource Authorization</a></li>
+                <li role="separator" class="divider"></li>
+                <li class="title"><span><b>Contibute</b><span></li>
+                <li><a 
href="/docs/0.6.2/development/writingzeppelininterpreter.html">Writing Zeppelin 
Interpreter</a></li>
+                <li><a href="/docs/0.6.2/development/howtocontribute.html">How 
to contribute (code)</a></li>
+                <li><a 
href="/docs/0.6.2/development/howtocontributewebsite.html">How to contribute 
(website)</a></li>
+              </ul>
+            </li>
+          </ul>
+        </nav><!--/.navbar-collapse -->
+      </div>
+    </div>
+    
+
+
+    <div class="content">
+      
+<!--<div class="hero-unit Configuration REST API">
+  <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>Apache Zeppelin Configuration REST API</h1>
+
+<div id="toc"></div>
+
+<h2>Overview</h2>
+
+<p>Apache Zeppelin provides several REST APIs for interaction and remote 
activation of zeppelin functionality.
+All REST APIs are available starting with the following endpoint 
<code>http://[zeppelin-server]:[zeppelin-port]/api</code>. 
+Note that Apache Zeppelin REST APIs receive or return JSON objects, it is 
recommended for you to install some JSON viewers such as <a 
href="https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc";>JSONView</a>.</p>
+
+<p>If you work with Apache Zeppelin and find a need for an additional REST 
API, please <a href="http://zeppelin.apache.org/community.html";>file an issue 
or send us an email</a>.
+nd a need for an additional REST API, please <a 
href="../../community.html">file an issue or send us mail</a>.</p>
+
+<h2>Configuration REST API list</h2>
+
+<h3>List all key/value pair of configurations</h3>
+
+<p><table class="table-configuration">
+    <col width="200">
+    <tr>
+      <td>Description</td>
+      <td>This <code>GET</code> method return all key/value pair of 
configurations on the server.<br/>
+       Note: For security reason, some pairs would not be shown.</td>
+    </tr>
+    <tr>
+      <td>URL</td>
+      
<td><code>http://[zeppelin-server]:[zeppelin-port]/api/configurations/all</code></td>
+    </tr>
+    <tr>
+      <td>Success code</td>
+      <td>200</td>
+    </tr>
+    <tr>
+      <td> Fail code</td>
+      <td> 500 </td>
+    </tr>
+    <tr>
+      <td> sample JSON response
+      </td>
+      <td>
+        <pre>
+{
+  &quot;status&quot;: &quot;OK&quot;,
+  &quot;message&quot;: &quot;&quot;,
+  &quot;body&quot;: {
+    &quot;zeppelin.war.tempdir&quot;: &quot;webapps&quot;,
+    &quot;zeppelin.notebook.homescreen.hide&quot;: &quot;false&quot;,
+    &quot;zeppelin.interpreter.remoterunner&quot;: 
&quot;bin/interpreter.sh&quot;,
+    &quot;zeppelin.notebook.s3.user&quot;: &quot;user&quot;,
+    &quot;zeppelin.server.port&quot;: &quot;8089&quot;,
+    &quot;zeppelin.dep.localrepo&quot;: &quot;local-repo&quot;,
+    &quot;zeppelin.ssl.truststore.type&quot;: &quot;JKS&quot;,
+    &quot;zeppelin.ssl.keystore.path&quot;: &quot;keystore&quot;,
+    &quot;zeppelin.notebook.s3.bucket&quot;: &quot;zeppelin&quot;,
+    &quot;zeppelin.server.addr&quot;: &quot;0.0.0.0&quot;,
+    &quot;zeppelin.ssl.client.auth&quot;: &quot;false&quot;,
+    &quot;zeppelin.server.context.path&quot;: &quot;/&quot;,
+    &quot;zeppelin.ssl.keystore.type&quot;: &quot;JKS&quot;,
+    &quot;zeppelin.ssl.truststore.path&quot;: &quot;truststore&quot;,
+    &quot;zeppelin.interpreters&quot;: 
&quot;org.apache.zeppelin.spark.SparkInterpreter,org.apache.zeppelin.spark.PySparkInterpreter,org.apache.zeppelin.spark.SparkRInterpreter,org.apache.zeppelin.spark.SparkSqlInterpreter,org.apache.zeppelin.spark.DepInterpreter,org.apache.zeppelin.markdown.Markdown,org.apache.zeppelin.angular.AngularInterpreter,org.apache.zeppelin.shell.ShellInterpreter,org.apache.zeppelin.flink.FlinkInterpreter,org.apache.zeppelin.lens.LensInterpreter,org.apache.zeppelin.ignite.IgniteInterpreter,org.apache.zeppelin.ignite.IgniteSqlInterpreter,org.apache.zeppelin.cassandra.CassandraInterpreter,org.apache.zeppelin.geode.GeodeOqlInterpreter,org.apache.zeppelin.postgresql.PostgreSqlInterpreter,org.apache.zeppelin.kylin.KylinInterpreter,org.apache.zeppelin.elasticsearch.ElasticsearchInterpreter,org.apache.zeppelin.scalding.ScaldingInterpreter&quot;,
+    &quot;zeppelin.ssl&quot;: &quot;false&quot;,
+    &quot;zeppelin.notebook.autoInterpreterBinding&quot;: &quot;true&quot;,
+    &quot;zeppelin.notebook.homescreen&quot;: &quot;&quot;,
+    &quot;zeppelin.notebook.storage&quot;: 
&quot;org.apache.zeppelin.notebook.repo.VFSNotebookRepo&quot;,
+    &quot;zeppelin.interpreter.connect.timeout&quot;: &quot;30000&quot;,
+    &quot;zeppelin.anonymous.allowed&quot;: &quot;true&quot;,
+    &quot;zeppelin.server.allowed.origins&quot;:&quot;*&quot;,
+    &quot;zeppelin.encoding&quot;: &quot;UTF-8&quot;
+  }
+}</pre></td>
+    </tr>
+  </table></p>
+
+<p><br/></p>
+
+<h3>List all prefix matched key/value pair of configurations</h3>
+
+<p><table class="table-configuration">
+    <col width="200">
+    <tr>
+      <td>Description</td>
+      <td>This <code>GET</code> method return all prefix matched key/value 
pair of configurations on the server.<br/>
+      Note: For security reason, some pairs would not be shown.</td>
+    </tr>
+    <tr>
+      <td>URL</td>
+      
<td><code>http://[zeppelin-server]:[zeppelin-port]/api/configurations/prefix/[prefix]</code></td>
+    </tr>
+    <tr>
+      <td>Success code</td>
+      <td>200</td>
+    </tr>
+    <tr>
+      <td> Fail code</td>
+      <td> 500 </td>
+    </tr>
+    <tr>
+      <td> sample JSON response
+      </td>
+      <td><pre>
+{
+  &quot;status&quot;: &quot;OK&quot;,
+  &quot;message&quot;: &quot;&quot;,
+  &quot;body&quot;: {
+    &quot;zeppelin.ssl.keystore.type&quot;: &quot;JKS&quot;,
+    &quot;zeppelin.ssl.truststore.path&quot;: &quot;truststore&quot;,
+    &quot;zeppelin.ssl.truststore.type&quot;: &quot;JKS&quot;,
+    &quot;zeppelin.ssl.keystore.path&quot;: &quot;keystore&quot;,
+    &quot;zeppelin.ssl&quot;: &quot;false&quot;,
+    &quot;zeppelin.ssl.client.auth&quot;: &quot;false&quot;
+  }
+}</pre>
+      </td>
+    </tr>
+  </table></p>
+
+  </div>
+</div>
+
+
+      <hr>
+      <footer>
+        <!-- <p>&copy; 2016 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.apache.org');
+  ga('require', 'linkid', 'linkid.js');
+  ga('send', 'pageview');
+
+</script>
+
+
+
+  </body>
+</html>
+

Propchange: zeppelin/site/docs/0.6.2/rest-api/rest-configuration.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: zeppelin/site/docs/0.6.2/rest-api/rest-interpreter.html
URL: 
http://svn.apache.org/viewvc/zeppelin/site/docs/0.6.2/rest-api/rest-interpreter.html?rev=1765205&view=auto
==============================================================================
--- zeppelin/site/docs/0.6.2/rest-api/rest-interpreter.html (added)
+++ zeppelin/site/docs/0.6.2/rest-api/rest-interpreter.html Mon Oct 17 04:13:33 
2016
@@ -0,0 +1,676 @@
+
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+    <title>Interpreter REST API</title>
+    <meta name="description" content="">
+    <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="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" 
rel="stylesheet">
+
+    <!-- Le styles -->
+    <link 
href="/docs/0.6.2/assets/themes/zeppelin/bootstrap/css/bootstrap.css" 
rel="stylesheet">
+    <link href="/docs/0.6.2/assets/themes/zeppelin/css/style.css?body=1" 
rel="stylesheet" type="text/css">
+    <link href="/docs/0.6.2/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="/docs/0.6.2/assets/themes/zeppelin/bootstrap/js/bootstrap.min.js"></script>
+    <script src="/docs/0.6.2/assets/themes/zeppelin/js/docs.js"></script>
+    <script src="/docs/0.6.2/assets/themes/zeppelin/js/anchor.min.js"></script>
+    <script src="/docs/0.6.2/assets/themes/zeppelin/js/toc.js"></script>
+
+    <!-- atom & rss feed -->
+    <link href="/docs/0.6.2/atom.xml" type="application/atom+xml" 
rel="alternate" title="Sitewide ATOM Feed">
+    <link href="/docs/0.6.2/rss.xml" type="application/rss+xml" 
rel="alternate" title="Sitewide RSS Feed">
+  </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>
+          <a class="navbar-brand" href="/docs/0.6.2">
+            <img src="/assets/themes/zeppelin/img/zeppelin_logo.png" 
width="50" alt="I'm zeppelin">
+            <span style="vertical-align:middle">Zeppelin</span>
+            <span style="vertical-align:baseline"><small>0.6.2</small></span>
+          </a>
+        </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.6.2/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.6.2/install/install.html">Install</a></li>
+                <li><a 
href="/docs/0.6.2/install/install.html#apache-zeppelin-configuration">Configuration</a></li>
+                <li><a 
href="/docs/0.6.2/quickstart/explorezeppelinui.html">Explore Zeppelin 
UI</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/manual/dynamicform.html">Dynamic 
Form</a></li>
+                <li><a href="/docs/0.6.2/manual/publish.html">Publish your 
Paragraph</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/install/virtual_machine.html">Zeppelin on Vagrant VM</a></li>
+                <li><a href="/docs/0.6.2/install/upgrade.html">Upgrade 
Zeppelin Version</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.6.2/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.6.2/manual/interpreterinstallation.html">Interpreter 
Installation</a></li>
+                <!--<li><a 
href="/docs/0.6.2/manual/dynamicinterpreterload.html">Dynamic Interpreter 
Loading</a></li>-->
+                <li><a 
href="/docs/0.6.2/manual/dependencymanagement.html">Interpreter Dependency 
Management</a></li>
+                <li role="separator" class="divider"></li>
+                <li class="title"><span><b>Available 
Interpreters</b><span></li>
+                <li><a 
href="/docs/0.6.2/interpreter/alluxio.html">Alluxio</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/bigquery.html">BigQuery</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/cassandra.html">Cassandra</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/elasticsearch.html">Elasticsearch</a></li>
+                <li><a href="/docs/0.6.2/interpreter/flink.html">Flink</a></li>
+                <li><a href="/docs/0.6.2/interpreter/geode.html">Geode</a></li>
+                <li><a href="/docs/0.6.2/interpreter/hbase.html">HBase</a></li>
+                <li><a href="/docs/0.6.2/interpreter/hdfs.html">HDFS</a></li>
+                <li><a href="/docs/0.6.2/interpreter/hive.html">Hive</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/ignite.html">Ignite</a></li>
+                <li><a href="/docs/0.6.2/interpreter/jdbc.html">JDBC</a></li>
+                <li><a href="/docs/0.6.2/interpreter/lens.html">Lens</a></li>
+                <li><a href="/docs/0.6.2/interpreter/livy.html">Livy</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/markdown.html">Markdown</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/python.html">Python</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/postgresql.html">Postgresql, HAWQ</a></li>
+                <li><a href="/docs/0.6.2/interpreter/r.html">R</a></li>
+                <li><a 
href="/docs/0.6.2/interpreter/scalding.html">Scalding</a></li>
+                <li><a href="/docs/0.6.2/pleasecontribute.html">Shell</a></li>
+                <li><a href="/docs/0.6.2/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.6.2/displaysystem/basicdisplaysystem.html#text">Text</a></li>
+                <li><a 
href="/docs/0.6.2/displaysystem/basicdisplaysystem.html#html">Html</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/displaysystem/back-end-angular.html">Angular (backend 
API)</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/storage/storage.html#notebook-storage-in-local-git-repository">Git
 Storage</a></li>
+                <li><a 
href="/docs/0.6.2/storage/storage.html#notebook-storage-in-s3">S3 
Storage</a></li>
+                <li><a 
href="/docs/0.6.2/storage/storage.html#notebook-storage-in-azure">Azure 
Storage</a></li>
+                <li><a 
href="/docs/0.6.2/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.6.2/rest-api/rest-interpreter.html">Interpreter API</a></li>
+                <li><a href="/docs/0.6.2/rest-api/rest-notebook.html">Notebook 
API</a></li>
+                <li><a 
href="/docs/0.6.2/rest-api/rest-configuration.html">Configuration API</a></li>
+                <li role="separator" class="divider"></li>
+                <li class="title"><span><b>Security</b><span></li>
+                <li><a 
href="/docs/0.6.2/security/authentication.html">Authentication for 
NGINX</a></li>
+                <li><a 
href="/docs/0.6.2/security/shiroauthentication.html">Shiro 
Authentication</a></li>
+                <li><a 
href="/docs/0.6.2/security/notebook_authorization.html">Notebook 
Authorization</a></li>
+                <li><a 
href="/docs/0.6.2/security/interpreter_authorization.html">Interpreter & Data 
Resource Authorization</a></li>
+                <li role="separator" class="divider"></li>
+                <li class="title"><span><b>Contibute</b><span></li>
+                <li><a 
href="/docs/0.6.2/development/writingzeppelininterpreter.html">Writing Zeppelin 
Interpreter</a></li>
+                <li><a href="/docs/0.6.2/development/howtocontribute.html">How 
to contribute (code)</a></li>
+                <li><a 
href="/docs/0.6.2/development/howtocontributewebsite.html">How to contribute 
(website)</a></li>
+              </ul>
+            </li>
+          </ul>
+        </nav><!--/.navbar-collapse -->
+      </div>
+    </div>
+    
+
+
+    <div class="content">
+      
+<!--<div class="hero-unit Interpreter REST API">
+  <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>Apache Zeppelin Interpreter REST API</h1>
+
+<div id="toc"></div>
+
+<h2>Overview</h2>
+
+<p>Apache Zeppelin provides several REST APIs for interaction and remote 
activation of zeppelin functionality.
+All REST APIs are available starting with the following endpoint 
<code>http://[zeppelin-server]:[zeppelin-port]/api</code>. 
+Note that Apache Zeppelin REST APIs receive or return JSON objects, it is 
recommended for you to install some JSON viewers such as <a 
href="https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc";>JSONView</a>.</p>
+
+<p>If you work with Apache Zeppelin and find a need for an additional REST 
API, please <a href="http://zeppelin.apache.org/community.html";>file an issue 
or send us an email</a>.</p>
+
+<h2>Interpreter REST API List</h2>
+
+<p>The role of registered interpreters, settings and interpreters group are 
described in <a href="../manual/interpreters.html">here</a>.</p>
+
+<h3>List of registered interpreters</h3>
+
+<p><table class="table-configuration">
+    <col width="200">
+    <tr>
+      <td>Description</td>
+      <td>This <code>GET</code> method returns all the registered interpreters 
available on the server.</td>
+    </tr>
+    <tr>
+      <td>URL</td>
+      
<td><code>http://[zeppelin-server]:[zeppelin-port]/api/interpreter</code></td>
+    </tr>
+    <tr>
+      <td>Success code</td>
+      <td>200</td>
+    </tr>
+    <tr>
+      <td>Fail code</td>
+      <td> 500 </td>
+    </tr>
+    <tr>
+      <td>Sample JSON response</td>
+      <td>
+        <pre>
+{
+  &quot;status&quot;: &quot;OK&quot;,
+  &quot;message&quot;: &quot;&quot;,
+  &quot;body&quot;: {
+    &quot;md.md&quot;: {
+      &quot;name&quot;: &quot;md&quot;,
+      &quot;group&quot;: &quot;md&quot;,
+      &quot;className&quot;: &quot;org.apache.zeppelin.markdown.Markdown&quot;,
+      &quot;properties&quot;: {},
+      &quot;path&quot;: &quot;/zeppelin/interpreter/md&quot;
+    },
+    &quot;spark.spark&quot;: {
+      &quot;name&quot;: &quot;spark&quot;,
+      &quot;group&quot;: &quot;spark&quot;,
+      &quot;className&quot;: 
&quot;org.apache.zeppelin.spark.SparkInterpreter&quot;,
+      &quot;properties&quot;: {
+        &quot;spark.executor.memory&quot;: {
+          &quot;defaultValue&quot;: &quot;512m&quot;,
+          &quot;description&quot;: &quot;Executor memory per worker instance. 
ex) 512m, 32g&quot;
+        },
+        &quot;spark.cores.max&quot;: {
+          &quot;defaultValue&quot;: &quot;&quot;,
+          &quot;description&quot;: &quot;Total number of cores to use. Empty 
value uses all available core.&quot;
+        },
+      },
+      &quot;path&quot;: &quot;/zeppelin/interpreter/spark&quot;
+    },
+    &quot;spark.sql&quot;: {
+      &quot;name&quot;: &quot;sql&quot;,
+      &quot;group&quot;: &quot;spark&quot;,
+      &quot;className&quot;: 
&quot;org.apache.zeppelin.spark.SparkSqlInterpreter&quot;,
+      &quot;properties&quot;: {
+        &quot;zeppelin.spark.maxResult&quot;: {
+          &quot;defaultValue&quot;: &quot;1000&quot;,
+          &quot;description&quot;: &quot;Max number of SparkSQL result to 
display.&quot;
+        }
+      },
+      &quot;path&quot;: &quot;/zeppelin/interpreter/spark&quot;
+    }
+  }
+}
+        </pre>
+      </td>
+    </tr>
+  </table></p>
+
+<p><br/></p>
+
+<h3>List of registered interpreter settings</h3>
+
+<p><table class="table-configuration">
+    <col width="200">
+    <tr>
+      <td>Description</td>
+      <td>This <code>GET</code> method returns all the interpreters settings 
registered on the server.</td>
+    </tr>
+    <tr>
+      <td>URL</td>
+      
<td><code>http://[zeppelin-server]:[zeppelin-port]/api/interpreter/setting</code></td>
+    </tr>
+    <tr>
+      <td>Success code</td>
+      <td>200</td>
+    </tr>
+    <tr>
+      <td>Fail code</td>
+      <td> 500 </td>
+    </tr>
+    <tr>
+      <td>Sample JSON response</td>
+      <td>
+        <pre>
+{
+  &quot;status&quot;: &quot;OK&quot;,
+  &quot;message&quot;: &quot;&quot;,
+  &quot;body&quot;: [
+    {
+      &quot;id&quot;: &quot;2AYUGP2D5&quot;,
+      &quot;name&quot;: &quot;md&quot;,
+      &quot;group&quot;: &quot;md&quot;,
+      &quot;properties&quot;: {
+        &quot;<em>empty</em>&quot;: &quot;&quot;
+      },
+      &quot;interpreterGroup&quot;: [
+        {
+          &quot;class&quot;: &quot;org.apache.zeppelin.markdown.Markdown&quot;,
+          &quot;name&quot;: &quot;md&quot;
+        }
+      ],
+      &quot;dependencies&quot;: []
+    },<br>
+    {
+      &quot;id&quot;: &quot;2AY6GV7Q3&quot;,
+      &quot;name&quot;: &quot;spark&quot;,
+      &quot;group&quot;: &quot;spark&quot;,
+      &quot;properties&quot;: {
+        &quot;spark.cores.max&quot;: &quot;&quot;,
+        &quot;spark.executor.memory&quot;: &quot;512m&quot;,
+      },
+      &quot;interpreterGroup&quot;: [
+        {
+          &quot;class&quot;: 
&quot;org.apache.zeppelin.spark.SparkInterpreter&quot;,
+          &quot;name&quot;: &quot;spark&quot;
+        },
+        {
+          &quot;class&quot;: 
&quot;org.apache.zeppelin.spark.SparkSqlInterpreter&quot;,
+          &quot;name&quot;: &quot;sql&quot;
+        }
+      ],
+      &quot;dependencies&quot;: [
+        {
+          &quot;groupArtifactVersion&quot;: 
&quot;com.databricks:spark-csv_2.10:1.3.0&quot;
+        }
+      ]
+    }
+  ]
+}
+        </pre>
+      </td>
+    </tr>
+  </table></p>
+
+<p><br/></p>
+
+<h3>Create a new interpreter setting</h3>
+
+<p><table class="table-configuration">
+    <col width="200">
+    <tr>
+      <td>Description</td>
+      <td>This <code>POST</code> method adds a new interpreter setting using a 
registered interpreter to the server.</td>
+    </tr>
+    <tr>
+      <td>URL</td>
+      
<td><code>http://[zeppelin-server]:[zeppelin-port]/api/interpreter/setting</code></td>
+    </tr>
+    <tr>
+      <td>Success code</td>
+      <td>201</td>
+    </tr>
+    <tr>
+      <td>Fail code</td>
+      <td>
+          400 if the input json is empty <br/>
+          500 for any other errors
+      </td>
+    </tr>
+    <tr>
+      <td>Sample JSON input</td>
+      <td>
+        <pre>
+{
+  &quot;name&quot;: &quot;Markdown setting name&quot;,
+  &quot;group&quot;: &quot;md&quot;,
+  &quot;properties&quot;: {
+    &quot;propname&quot;: &quot;propvalue&quot;
+  },
+  &quot;interpreterGroup&quot;: [
+    {
+      &quot;class&quot;: &quot;org.apache.zeppelin.markdown.Markdown&quot;,
+      &quot;name&quot;: &quot;md&quot;
+    }
+  ],
+  &quot;dependencies&quot;: [
+    {
+      &quot;groupArtifactVersion&quot;: &quot;groupId:artifactId:version&quot;,
+      &quot;exclusions&quot;: [
+        &quot;groupId:artifactId&quot;
+      ]
+    }
+  ]
+}
+        </pre>
+      </td>
+    </tr>
+    <tr>
+      <td>Sample JSON response</td>
+      <td>
+        <pre>
+{
+  &quot;status&quot;: &quot;CREATED&quot;,
+  &quot;message&quot;: &quot;&quot;,
+  &quot;body&quot;: {
+    &quot;id&quot;: &quot;2AYW25ANY&quot;,
+    &quot;name&quot;: &quot;Markdown setting name&quot;,
+    &quot;group&quot;: &quot;md&quot;,
+    &quot;properties&quot;: {
+      &quot;propname&quot;: &quot;propvalue&quot;
+    },
+    &quot;interpreterGroup&quot;: [
+      {
+        &quot;class&quot;: &quot;org.apache.zeppelin.markdown.Markdown&quot;,
+        &quot;name&quot;: &quot;md&quot;
+      }
+    ],
+    &quot;dependencies&quot;: [
+      {
+        &quot;groupArtifactVersion&quot;: 
&quot;groupId:artifactId:version&quot;,
+        &quot;exclusions&quot;: [
+          &quot;groupId:artifactId&quot;
+        ]
+      }
+    ]
+  }
+}
+        </pre>
+      </td>
+    </tr>
+  </table></p>
+
+<p><br/></p>
+
+<h3>Update an interpreter setting</h3>
+
+<p><table class="table-configuration">
+    <col width="200">
+    <tr>
+      <td>Description</td>
+      <td>This <code>PUT</code> method updates an interpreter setting with new 
properties.</td>
+    </tr>
+    <tr>
+      <td>URL</td>
+      
<td><code>http://[zeppelin-server]:[zeppelin-port]/api/interpreter/setting/[interpreter
 ID]</code></td>
+    </tr>
+    <tr>
+      <td>Success code</td>
+      <td>200</td>
+    </tr>
+    <tr>
+      <td>Fail code</td>
+      <td> 500 </td>
+    </tr>
+    <tr>
+      <td>Sample JSON input</td>
+      <td>
+        <pre>
+{
+  &quot;name&quot;: &quot;Markdown setting name&quot;,
+  &quot;group&quot;: &quot;md&quot;,
+  &quot;properties&quot;: {
+    &quot;propname&quot;: &quot;Otherpropvalue&quot;
+  },
+  &quot;interpreterGroup&quot;: [
+    {
+      &quot;class&quot;: &quot;org.apache.zeppelin.markdown.Markdown&quot;,
+      &quot;name&quot;: &quot;md&quot;
+    }
+  ],
+  &quot;dependencies&quot;: [
+    {
+      &quot;groupArtifactVersion&quot;: &quot;groupId:artifactId:version&quot;,
+      &quot;exclusions&quot;: [
+        &quot;groupId:artifactId&quot;
+      ]
+    }
+  ]
+}
+        </pre>
+      </td>
+    </tr>
+    <tr>
+      <td>Sample JSON response</td>
+      <td>
+        <pre>
+{
+  &quot;status&quot;: &quot;OK&quot;,
+  &quot;message&quot;: &quot;&quot;,
+  &quot;body&quot;: {
+    &quot;id&quot;: &quot;2AYW25ANY&quot;,
+    &quot;name&quot;: &quot;Markdown setting name&quot;,
+    &quot;group&quot;: &quot;md&quot;,
+    &quot;properties&quot;: {
+      &quot;propname&quot;: &quot;Otherpropvalue&quot;
+    },
+    &quot;interpreterGroup&quot;: [
+      {
+        &quot;class&quot;: &quot;org.apache.zeppelin.markdown.Markdown&quot;,
+        &quot;name&quot;: &quot;md&quot;
+      }
+    ],
+    &quot;dependencies&quot;: [
+      {
+        &quot;groupArtifactVersion&quot;: 
&quot;groupId:artifactId:version&quot;,
+        &quot;exclusions&quot;: [
+          &quot;groupId:artifactId&quot;
+        ]
+      }
+    ]
+  }
+}
+        </pre>
+      </td>
+    </tr>
+  </table></p>
+
+<p><br/></p>
+
+<h3>Delete an interpreter setting</h3>
+
+<p><table class="table-configuration">
+    <col width="200">
+    <tr>
+      <td>Description</td>
+      <td>This <code>DELETE</code> method deletes an given interpreter 
setting.</td>
+    </tr>
+    <tr>
+      <td>URL</td>
+      
<td><code>http://[zeppelin-server]:[zeppelin-port]/api/interpreter/setting/[interpreter
 ID]</code></td>
+    </tr>
+    <tr>
+      <td>Success code</td>
+      <td>200</td>
+    </tr>
+    <tr>
+      <td> Fail code</td>
+      <td> 500 </td>
+    </tr>
+    <tr>
+      <td>Sample JSON response</td>
+      <td>
+        <code>{&quot;status&quot;:&quot;OK&quot;}</code>
+      </td>
+    </tr>
+  </table></p>
+
+<p><br/></p>
+
+<h3>Restart an interpreter</h3>
+
+<p><table class="table-configuration">
+    <col width="200">
+    <tr>
+      <td>Description</td>
+      <td>This <code>PUT</code> method restarts the given interpreter id.</td>
+    </tr>
+    <tr>
+      <td>URL</td>
+      
<td><code>http://[zeppelin-server]:[zeppelin-port]/api/interpreter/setting/restart/[interpreter
 ID]</code></td>
+    </tr>
+    <tr>
+      <td>Success code</td>
+      <td>200</td>
+    </tr>
+    <tr>
+      <td>Fail code</td>
+      <td> 500 </td>
+    </tr>
+    <tr>
+      <td>Sample JSON response</td>
+      <td>
+        <code>{&quot;status&quot;:&quot;OK&quot;}</code>
+      </td>
+    </tr>
+  </table></p>
+
+<p><br/></p>
+
+<h3>Add a new repository for dependency resolving</h3>
+
+<p><table class="table-configuration">
+    <col width="200">
+    <tr>
+      <td>Description</td>
+      <td>This <code>POST</code> method adds new repository.</td>
+    </tr>
+    <tr>
+      <td>URL</td>
+      
<td><code>http://[zeppelin-server]:[zeppelin-port]/api/interpreter/repository</code></td>
+    </tr>
+    <tr>
+      <td>Success code</td>
+      <td>201</td>
+    </tr>
+    <tr>
+      <td>Fail code</td>
+      <td> 500 </td>
+    </tr>
+    <tr>
+      <td>Sample JSON input</td>
+      <td>
+        <pre>
+{
+  &quot;id&quot;: &quot;securecentral&quot;,
+  &quot;url&quot;: &quot;https://repo1.maven.org/maven2&quot;,
+  &quot;snapshot&quot;: false
+}
+        </pre>
+      </td>
+    </tr>
+    <tr>
+      <td>Sample JSON response</td>
+      <td>
+        <code>{&quot;status&quot;:&quot;OK&quot;}</code>
+      </td>
+    </tr>
+  </table></p>
+
+<p><br/></p>
+
+<h3>Delete a repository for dependency resolving</h3>
+
+<p><table class="table-configuration">
+    <col width="200">
+    <tr>
+      <td>Description</td>
+      <td>This <code>DELETE</code> method delete repository with given id.</td>
+    </tr>
+    <tr>
+      <td>URL</td>
+      
<td><code>http://[zeppelin-server]:[zeppelin-port]/api/interpreter/repository/[repository
 ID]</code></td>
+    </tr>
+    <tr>
+      <td>Success code</td>
+      <td>200</td>
+    </tr>
+    <tr>
+      <td>Fail code</td>
+      <td> 500 </td>
+    </tr>
+  </table></p>
+
+  </div>
+</div>
+
+
+      <hr>
+      <footer>
+        <!-- <p>&copy; 2016 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.apache.org');
+  ga('require', 'linkid', 'linkid.js');
+  ga('send', 'pageview');
+
+</script>
+
+
+
+  </body>
+</html>
+

Propchange: zeppelin/site/docs/0.6.2/rest-api/rest-interpreter.html
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to