You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by bu...@apache.org on 2014/05/18 14:15:26 UTC

svn commit: r909169 - in /websites/staging/mahout/trunk/content: ./ users/sparkbindings/play-with-shell.html

Author: buildbot
Date: Sun May 18 12:15:26 2014
New Revision: 909169

Log:
Staging update by buildbot for mahout

Modified:
    websites/staging/mahout/trunk/content/   (props changed)
    websites/staging/mahout/trunk/content/users/sparkbindings/play-with-shell.html

Propchange: websites/staging/mahout/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun May 18 12:15:26 2014
@@ -1 +1 @@
-1595606
+1595607

Modified: websites/staging/mahout/trunk/content/users/sparkbindings/play-with-shell.html
==============================================================================
--- websites/staging/mahout/trunk/content/users/sparkbindings/play-with-shell.html (original)
+++ websites/staging/mahout/trunk/content/users/sparkbindings/play-with-shell.html Sun May 18 12:15:26 2014
@@ -339,18 +339,16 @@
 <ol>
 <li>Goto the directory where you unpacked Spark and type <code>sbin/start-all.sh</code> to locally start Spark</li>
 <li>Open a browser, point it to <a href="http://localhost:8080/">http://localhost:8080/</a> to check whether Spark successfully started. Copy the url of the spark master at the top of the page (it starts with <strong>spark://</strong>)</li>
-<li>
-<p>Define the following environment variables: </p>
-<div class="codehilite"><pre><span class="n">export</span> <span class="n">MAHOUT_HOME</span><span class="p">=[</span><span class="n">directory</span> <span class="n">into</span> <span class="n">which</span> <span class="n">you</span> <span class="n">checked</span> <span class="n">out</span> <span class="n">Mahout</span><span class="p">]</span>
-<span class="n">export</span> <span class="n">SPARK_HOME</span><span class="p">=[</span><span class="n">directory</span> <span class="n">where</span> <span class="n">you</span> <span class="n">unpacked</span> <span class="n">Spark</span><span class="p">]</span>
-<span class="n">export</span> <span class="n">MASTER</span><span class="p">=[</span><span class="n">url</span> <span class="n">of</span> <span class="n">the</span> <span class="n">Spark</span> <span class="n">master</span><span class="p">]</span>
+<li>Define the following environment variables: </li>
+</ol>
+<div class="codehilite"><pre>
+export MAHOUT_HOME=[directory into which you checked out Mahout]
+export SPARK_HOME=[directory where you unpacked Spark]
+export MASTER=[url of the Spark master]
 </pre></div>
 
-
-</li>
-<li>
-<p>Finally, change to the directory where you unpacked Mahout and type <code>bin/mahout spark-shell</code>, you should see the shell starting and get the prompt <code>mahout&gt;</code></p>
-</li>
+<ol>
+<li>Finally, change to the directory where you unpacked Mahout and type <code>bin/mahout spark-shell</code>, you should see the shell starting and get the prompt <code>mahout&gt;</code></li>
 </ol>
 <h2 id="implementation">Implementation</h2>
 <p>We'll use the shell to interactively play with the data and incrementally implement a simple <a href="https://en.wikipedia.org/wiki/Linear_regression">linear regression</a> algorithm. Let's first load the dataset. Usually, we wouldn't need Mahout unless we processed a large dataset stored in a distributed filesystem. But for the sake of this example, we'll use our tiny toy dataset and "pretend" it was too big to fit onto a single machine.</p>