zeppelin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mina...@apache.org
Subject svn commit: r1766246 [1/2] - in /zeppelin/site/docs/0.7.0-SNAPSHOT: ./ development/ install/ manual/ quickstart/
Date Sun, 23 Oct 2016 04:33:47 GMT
Author: minalee
Date: Sun Oct 23 04:33:46 2016
New Revision: 1766246

URL: http://svn.apache.org/viewvc?rev=1766246&view=rev
Log:
https://github.com/apache/zeppelin/pull/1542
https://github.com/apache/zeppelin/pull/1543

Modified:
    zeppelin/site/docs/0.7.0-SNAPSHOT/atom.xml
    zeppelin/site/docs/0.7.0-SNAPSHOT/development/howtocontributewebsite.html
    zeppelin/site/docs/0.7.0-SNAPSHOT/install/install.html
    zeppelin/site/docs/0.7.0-SNAPSHOT/install/virtual_machine.html
    zeppelin/site/docs/0.7.0-SNAPSHOT/manual/interpreterinstallation.html
    zeppelin/site/docs/0.7.0-SNAPSHOT/manual/interpreters.html
    zeppelin/site/docs/0.7.0-SNAPSHOT/manual/notebookashomepage.html
    zeppelin/site/docs/0.7.0-SNAPSHOT/quickstart/install_with_flink_and_spark_cluster.html
    zeppelin/site/docs/0.7.0-SNAPSHOT/rss.xml
    zeppelin/site/docs/0.7.0-SNAPSHOT/search_data.json

Modified: zeppelin/site/docs/0.7.0-SNAPSHOT/atom.xml
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.7.0-SNAPSHOT/atom.xml?rev=1766246&r1=1766245&r2=1766246&view=diff
==============================================================================
--- zeppelin/site/docs/0.7.0-SNAPSHOT/atom.xml (original)
+++ zeppelin/site/docs/0.7.0-SNAPSHOT/atom.xml Sun Oct 23 04:33:46 2016
@@ -4,7 +4,7 @@
  <title>Apache Zeppelin</title>
  <link href="http://zeppelin.apache.org/" rel="self"/>
  <link href="http://zeppelin.apache.org"/>
- <updated>2016-10-17T17:17:15+09:00</updated>
+ <updated>2016-10-23T13:31:41+09:00</updated>
  <id>http://zeppelin.apache.org</id>
  <author>
    <name>The Apache Software Foundation</name>

Modified: zeppelin/site/docs/0.7.0-SNAPSHOT/development/howtocontributewebsite.html
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.7.0-SNAPSHOT/development/howtocontributewebsite.html?rev=1766246&r1=1766245&r2=1766246&view=diff
==============================================================================
--- zeppelin/site/docs/0.7.0-SNAPSHOT/development/howtocontributewebsite.html (original)
+++ zeppelin/site/docs/0.7.0-SNAPSHOT/development/howtocontributewebsite.html Sun Oct 23 04:33:46
2016
@@ -243,7 +243,7 @@ Then you&#39;ll be able to access it on
 
 <h2>Alternative way</h2>
 
-<p>You can directly edit <code>.md</code> files in <code>/docs/</code>
directory at the web interface of github and make pull-request immediatly.</p>
+<p>You can directly edit <code>.md</code> files in <code>/docs/</code>
directory at the web interface of github and make pull-request immediately.</p>
 
 <h2>Stay involved</h2>
 

Modified: zeppelin/site/docs/0.7.0-SNAPSHOT/install/install.html
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.7.0-SNAPSHOT/install/install.html?rev=1766246&r1=1766245&r2=1766246&view=diff
==============================================================================
--- zeppelin/site/docs/0.7.0-SNAPSHOT/install/install.html (original)
+++ zeppelin/site/docs/0.7.0-SNAPSHOT/install/install.html Sun Oct 23 04:33:46 2016
@@ -353,7 +353,7 @@ exec bin/zeppelin-daemon.sh upstart
 <h4>If you need more information about Spark or JDBC interpreter settings...</h4>
 
 <ul>
-<li>Apache Zeppelin provides deep integration with <a href="http://spark.apache.org/">Apache
Spark</a>. For more informtation, see <a href="../interpreter/spark.html">Spark
Interpreter for Apache Zeppelin</a>. </li>
+<li>Apache Zeppelin provides deep integration with <a href="http://spark.apache.org/">Apache
Spark</a>. For more information, see <a href="../interpreter/spark.html">Spark
Interpreter for Apache Zeppelin</a>.</li>
 <li>You can also use generic JDBC connections in Apache Zeppelin. Go to <a href="../interpreter/jdbc.html">Generic
JDBC Interpreter for Apache Zeppelin</a>.</li>
 </ul>
 

Modified: zeppelin/site/docs/0.7.0-SNAPSHOT/install/virtual_machine.html
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.7.0-SNAPSHOT/install/virtual_machine.html?rev=1766246&r1=1766245&r2=1766246&view=diff
==============================================================================
--- zeppelin/site/docs/0.7.0-SNAPSHOT/install/virtual_machine.html (original)
+++ zeppelin/site/docs/0.7.0-SNAPSHOT/install/virtual_machine.html Sun Oct 23 04:33:46 2016
@@ -249,7 +249,7 @@ ansible --version
 
 <p>Cloning Zeppelin into the <code>/scripts/vagrant/zeppelin-dev</code>
directory from the host, will allow the directory to be shared between your host and the guest
machine.</p>
 
-<p>Cloning the project again may seem counter intuitive, since this script likley originated
from the project repository.  Consider copying just the vagrant/zeppelin-dev script from the
Zeppelin project as a stand alone directory, then once again clone the specific branch you
wish to build.</p>
+<p>Cloning the project again may seem counter intuitive, since this script likely originated
from the project repository.  Consider copying just the vagrant/zeppelin-dev script from the
Zeppelin project as a stand alone directory, then once again clone the specific branch you
wish to build.</p>
 
 <p>Synced folders enable Vagrant to sync a folder on the host machine to the guest
machine, allowing you to continue working on your project&#39;s files on your host machine,
but use the resources in the guest machine to compile or run your project. <em><a
href="https://docs.vagrantup.com/v2/synced-folders/index.html">(1) Synced Folder Description
from Vagrant Up</a></em></p>
 

Modified: zeppelin/site/docs/0.7.0-SNAPSHOT/manual/interpreterinstallation.html
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.7.0-SNAPSHOT/manual/interpreterinstallation.html?rev=1766246&r1=1766245&r2=1766246&view=diff
==============================================================================
--- zeppelin/site/docs/0.7.0-SNAPSHOT/manual/interpreterinstallation.html (original)
+++ zeppelin/site/docs/0.7.0-SNAPSHOT/manual/interpreterinstallation.html Sun Oct 23 04:33:46
2016
@@ -258,7 +258,7 @@ If you downloaded <code>netinst</code> b
 </code></pre></div>
 <h4>Install Spark interpreter built with Scala 2.10</h4>
 
-<p>Spark distribution package has been built with Scala 2.10 until 1.6.2. If you have
<code>SPARK_HOME</code> set pointing to Spark version ealier than 2.0.0, you need
to download Spark interpreter packaged with Scala 2.10. To do so, use follow command:</p>
+<p>Spark distribution package has been built with Scala 2.10 until 1.6.2. If you have
<code>SPARK_HOME</code> set pointing to Spark version earlier than 2.0.0, you
need to download Spark interpreter packaged with Scala 2.10. To do so, use follow command:</p>
 <div class="highlight"><pre><code class="text language-text" data-lang="text">rm
-rf ./interpreter/spark
 ./bin/install-interpreter.sh --name spark --artifact org.apache.zeppelin:zeppelin-spark_2.10:0.6.1
 </code></pre></div>

Modified: zeppelin/site/docs/0.7.0-SNAPSHOT/manual/interpreters.html
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.7.0-SNAPSHOT/manual/interpreters.html?rev=1766246&r1=1766245&r2=1766246&view=diff
==============================================================================
--- zeppelin/site/docs/0.7.0-SNAPSHOT/manual/interpreters.html (original)
+++ zeppelin/site/docs/0.7.0-SNAPSHOT/manual/interpreters.html Sun Oct 23 04:33:46 2016
@@ -256,10 +256,50 @@ In &#39;shared&#39; mode, every notebook
 // Here, 3678 is the port on which interpreter will listen.    
 interpreter.start()  
 </code></pre></div>
-<p>The above code will start interpreter thread inside your process. Once the interpreter
is started you can configure zeppelin to connect to RemoteInterpreter by checking <strong>Connect
to existing process</strong> checkbox and then provide <strong>Host</strong>
and <strong>Port</strong> on which interpreter porocess is listening as shown
in the image below:</p>
+<p>The above code will start interpreter thread inside your process. Once the interpreter
is started you can configure zeppelin to connect to RemoteInterpreter by checking <strong>Connect
to existing process</strong> checkbox and then provide <strong>Host</strong>
and <strong>Port</strong> on which interpreter process is listening as shown in
the image below:</p>
 
 <p><img src="../assets/themes/zeppelin/img/screenshots/existing_interpreter.png"
width="450px"></p>
 
+<h2>(Experimental) Interpreter Execution Hooks</h2>
+
+<p>Zeppelin allows for users to specify additional code to be executed by an interpreter
at pre and post-paragraph code execution. This is primarily useful if you need to run the
same set of code for all of the paragraphs within your notebook at specific times. Currently,
this feature is only available for the spark and pyspark interpreters. To specify your hook
code, you may use &#39;<code>z.registerHook()</code>. For example, enter the
following into one paragraph:</p>
+<div class="highlight"><pre><code class="python language-python" data-lang="python"><span
class="o">%</span><span class="n">pyspark</span>
+<span class="n">z</span><span class="o">.</span><span class="n">registerHook</span><span
class="p">(</span><span class="s">&quot;post_exec&quot;</span><span
class="p">,</span> <span class="s">&quot;print &#39;This code should
be executed before the parapgraph code!&#39;&quot;</span><span class="p">)</span>
+<span class="n">z</span><span class="o">.</span><span class="n">registerHook</span><span
class="p">(</span><span class="s">&quot;pre_exec&quot;</span><span
class="p">,</span> <span class="s">&quot;print &#39;This code should
be executed after the paragraph code!&#39;&quot;</span><span class="p">)</span>
+</code></pre></div>
+<p>These calls will not take into effect until the next time you run a paragraph. In
another paragraph, enter
+<code>python
+%pyspark
+print &quot;This code should be entered into the paragraph by the user!&quot;
+</code></p>
+
+<p>The output should be:
+<code>
+This code should be executed before the paragraph code!
+This code should be entered into the paragraph by the user!
+This code should be executed after the paragraph code!
+</code></p>
+
+<p>If you ever need to know the hook code, use <code>z.getHook()</code>:
+<code>python
+%pyspark
+print z.getHook(&quot;post_exec&quot;)
+</code>
+<code>
+print &#39;This code should be executed after the paragraph code!&#39;
+</code>
+Any call to <code>z.registerHook()</code> will automatically overwrite what was
previously registered. To completely unregister a hook event, use <code>z.unregisterHook(eventCode)</code>.
Currently only <code>&quot;post_exec&quot;</code> and <code>&quot;pre_exec&quot;</code>
are valid event codes for the Zeppelin Hook Registry system.</p>
+
+<p>Finally, the hook registry is internally shared by other interpreters in the same
group. This would allow for hook code for one interpreter REPL to be set by another as follows:</p>
+<div class="highlight"><pre><code class="scala language-scala" data-lang="scala"><span
class="o">%</span><span class="n">spark</span>
+<span class="n">z</span><span class="o">.</span><span class="n">unregisterHook</span><span
class="o">(</span><span class="s">&quot;post_exec&quot;</span><span
class="o">,</span> <span class="s">&quot;pyspark&quot;</span><span
class="o">)</span>
+</code></pre></div>
+<p>The API is identical for both the spark (scala) and pyspark (python) implementations.</p>
+
+<h3>Caveats</h3>
+
+<p>Calls to <code>z.registerHook(&quot;pre_exec&quot;, ...)</code>
should be made with care. If there are errors in your specified hook code, this will cause
the interpreter REPL to become unable to execute any code pass the pre-execute stage making
it impossible for direct calls to <code>z.unregisterHook()</code> to take into
effect. Current workarounds include calling <code>z.unregisterHook()</code> from
a different interpreter REPL in the same interpreter group (see above) or manually restarting
the interpreter group in the UI. </p>
+
   </div>
 </div>
 

Modified: zeppelin/site/docs/0.7.0-SNAPSHOT/manual/notebookashomepage.html
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.7.0-SNAPSHOT/manual/notebookashomepage.html?rev=1766246&r1=1766245&r2=1766246&view=diff
==============================================================================
--- zeppelin/site/docs/0.7.0-SNAPSHOT/manual/notebookashomepage.html (original)
+++ zeppelin/site/docs/0.7.0-SNAPSHOT/manual/notebookashomepage.html Sun Oct 23 04:33:46 2016
@@ -244,19 +244,19 @@ or <code>zeppelin.notebook.homescreen.hi
 <h3>Restart Zeppelin</h3>
 
 <p>Restart your Zeppelin server</p>
-<div class="highlight"><pre><code class="text language-text" data-lang="text">./bin/zeppelin-deamon
stop
-./bin/zeppelin-deamon start
+<div class="highlight"><pre><code class="text language-text" data-lang="text">./bin/zeppelin-daemon
stop
+./bin/zeppelin-daemon start
 </code></pre></div>
 <p>That&#39;s it! Open your browser and navigate to Apache Zeppelin and see your
customized homepage.</p>
 
 <p><br /></p>
 
-<h2>Show notebooks list in your custom homepage</h2>
+<h2>Show notes list in your custom homepage</h2>
 
-<p>If you want to display the list of notebooks on your custom Apache Zeppelin homepage
all
+<p>If you want to display the list of notes on your custom Apache Zeppelin homepage
all
 you need to do is use our %angular support.</p>
 
-<p>Add the following code to a paragraph in you home page and run it... walla! you
have your notebooks list.</p>
+<p>Add the following code to a paragraph in you home page and run it... Voila! You
have your notes list.</p>
 <div class="highlight"><pre><code class="javascript language-javascript" data-lang="javascript"><span
class="nx">println</span><span class="p">(</span>
 <span class="s2">&quot;&quot;&quot;%angular</span>
 <span class="s2">  &lt;div class=&quot;</span><span class="nx">col</span><span
class="o">-</span><span class="nx">md</span><span class="o">-</span><span
class="mi">4</span><span class="s2">&quot; ng-controller=&quot;</span><span
class="nx">HomeCtrl</span> <span class="nx">as</span> <span class="nx">home</span><span
class="s2">&quot;&gt;</span>

Modified: zeppelin/site/docs/0.7.0-SNAPSHOT/quickstart/install_with_flink_and_spark_cluster.html
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.7.0-SNAPSHOT/quickstart/install_with_flink_and_spark_cluster.html?rev=1766246&r1=1766245&r2=1766246&view=diff
==============================================================================
--- zeppelin/site/docs/0.7.0-SNAPSHOT/quickstart/install_with_flink_and_spark_cluster.html
(original)
+++ zeppelin/site/docs/0.7.0-SNAPSHOT/quickstart/install_with_flink_and_spark_cluster.html
Sun Oct 23 04:33:46 2016
@@ -201,6 +201,10 @@ See the License for the specific languag
 limitations under the License.
 -->
 
+<h1>Install with flink and spark cluster</h1>
+
+<div id="toc"></div>
+
 <p>This tutorial is extremely entry-level. It assumes no prior knowledge of Linux,
git, or other tools. If you carefully type what I tell you when I tell you, you should be
able to get Zeppelin running.</p>
 
 <h2>Installing Zeppelin with Flink and Spark in cluster mode</h2>

Modified: zeppelin/site/docs/0.7.0-SNAPSHOT/rss.xml
URL: http://svn.apache.org/viewvc/zeppelin/site/docs/0.7.0-SNAPSHOT/rss.xml?rev=1766246&r1=1766245&r2=1766246&view=diff
==============================================================================
--- zeppelin/site/docs/0.7.0-SNAPSHOT/rss.xml (original)
+++ zeppelin/site/docs/0.7.0-SNAPSHOT/rss.xml Sun Oct 23 04:33:46 2016
@@ -5,8 +5,8 @@
         <description>Apache Zeppelin - The Apache Software Foundation</description>
         <link>http://zeppelin.apache.org</link>
         <link>http://zeppelin.apache.org</link>
-        <lastBuildDate>2016-10-17T17:17:15+09:00</lastBuildDate>
-        <pubDate>2016-10-17T17:17:15+09:00</pubDate>
+        <lastBuildDate>2016-10-23T13:31:41+09:00</lastBuildDate>
+        <pubDate>2016-10-23T13:31:41+09:00</pubDate>
         <ttl>1800</ttl>
 
 



Mime
View raw message