Skip to content

Commit

Permalink
added install on hadoop tab to download page
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy Wang committed Oct 25, 2014
1 parent 585f3df commit 4815aa6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hadoop/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $ cd hadoop
RUN JOB
-------

$ hadoop jar h2odriver_cdh4.jar water.hadoop.h2odriver [-jt <jobtracker:port>] -libjars ../h2o.jar -mapperXmx 1g -nodes 1 -output hdfsOutputDirName
$ hadoop jar h2odriver_hdp2.1.jar water.hadoop.h2odriver [-jt <jobtracker:port>] -libjars ../h2o.jar -mapperXmx 1g -nodes 1 -output hdfsOutputDirName

(Note: -nodes refers to H2O nodes. This may be less than or equal to
the number of hadoop machines running TaskTrackers where hadoop
Expand Down
30 changes: 30 additions & 0 deletions packaging/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,20 +188,35 @@
var zipPanel = document.getElementById('quickstart-zip');
var rTab = document.getElementById('quickstart-r-tab');
var rPanel = document.getElementById('quickstart-r');
var hadoopTab = document.getElementById('quickstart-hadoop-tab');
var hadoopPanel = document.getElementById('quickstart-hadoop');
var showZipTab = function() {
zipPanel.style.display = 'block';
zipTab.className = 'active';
rPanel.style.display = 'none';
rTab.className = '';
hadoopPanel.style.display = 'none';
hadoopTab.className = '';
};
var showRTab = function() {
rPanel.style.display = 'block';
rTab.className = 'active';
zipPanel.style.display = 'none';
zipTab.className = '';
hadoopPanel.style.display = 'none';
hadoopTab.className = '';
};
var showHadoopTab = function(){
hadoopPanel.style.display = 'block';
hadoopTab.className = 'active';
rPanel.style.display = 'none';
rTab.className = '';
zipPanel.style.display = 'none';
zipTab.className = '';
};
zipTab.onclick = showZipTab
rTab.onclick = showRTab
hadoopTab.onclick = showHadoopTab
var hash = window.location.hash;
if(hash && hash.indexOf('#R') == 0) {
showRTab();
Expand Down Expand Up @@ -237,6 +252,7 @@ <h1><span>H<sub>2</sub>O</span></h1>
<div id="tabs">
&nbsp; <span id="quickstart-zip-tab" class="active">Download and Run</span>
<span id="quickstart-r-tab">Install in R</span>
<span id = "quickstart-hadoop-tab">Install on Hadoop</span>
</div>
<div id="panels">
<div id="quickstart-zip">
Expand Down Expand Up @@ -268,6 +284,20 @@ <h2>Use H<sub>2</sub>O directly from R</h2>
<em># Finally, let's run a demo to see H<sub>2</sub>O at work.</em><br/>
demo(h2o.glm)
</div>
<div id="quickstart-hadoop">
<h2>Run H<sub>2</sub>O on Hadoop in just 3 steps.</h2>
<p>1. Download H<sub>2</sub>O. This is a zip file that contains everything you need to get started.</p>
<p class="terminal">
wget <script type="text/javascript">var url = location.href; var url2 = url.substring(0, url.lastIndexOf("/")); document.write(url2);</script>/h2o-SUBST_PROJECT_VERSION.zip
</p>
<p>2. Unpack the zip file and launch a 1g instance of H<sub>2</sub>O: </p>
<p class="terminal">
unzip h2o-SUBST_PROJECT_VERSION.zip<br/>
cd h2o-SUBST_PROJECT_VERSION/hadoop<br/>
hadoop jar h2odriver_hdp2.1.jar water.hadoop.h2odriver -libjars ../h2o.jar -mapperXmx 1g -nodes 1 -output hdfsOutputDirName<br/>
</p>
<p>3. Point your browser to http://[Hadoop Server IP Address]:54321 </p>
</div>
</div>
<div id="documentation">
<h2>Documentation</h2>
Expand Down

0 comments on commit 4815aa6

Please sign in to comment.