accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r863067 [6/7] - in /websites/staging/accumulo/trunk/content: ./ 1.5/ 1.5/examples/ 1.5/images/ downloads/
Date Sat, 25 May 2013 02:56:29 GMT
Added: websites/staging/accumulo/trunk/content/1.5/examples/mapred.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/mapred.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/mapred.html Sat May 25 02:56:29 2013
@@ -0,0 +1,191 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo MapReduce Example</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo MapReduce Example</h1>
+    <p>This example uses mapreduce and accumulo to compute word counts for a set of
+documents.  This is accomplished using a map-only mapreduce job and a
+accumulo table with combiners.</p>
+<p>To run this example you will need a directory in HDFS containing text files.
+The accumulo readme will be used to show how to run this example.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">hadoop</span> <span class="n">fs</span> <span class="o">-</span><span class="n">copyFromLocal</span> <span class="nv">$ACCUMULO_HOME</span><span class="sr">/README /</span><span class="n">user</span><span class="sr">/username/</span><span class="n">wc</span><span class="o">/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span>
+<span class="nv">$</span> <span class="nv">hadoop</span> <span class="n">fs</span> <span class="o">-</span><span class="n">ls</span> <span class="sr">/user/</span><span class="n">username</span><span class="o">/</span><span class="n">wc</span>
+<span class="n">Found</span> <span class="mi">1</span> <span class="n">items</span>
+<span class="o">-</span><span class="n">rw</span><span class="o">-</span><span class="n">r</span><span class="o">--</span><span class="n">r</span><span class="o">--</span>   <span class="mi">2</span> <span class="n">username</span> <span class="n">supergroup</span>       <span class="mi">9359</span> <span class="mi">2009</span><span class="o">-</span><span class="mo">07</span><span class="o">-</span><span class="mi">15</span> <span class="mi">17</span><span class="p">:</span><span class="mi">54</span> <span class="sr">/user/</span><span class="n">username</span><span class="sr">/wc/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span>
+</pre></div>
+
+
+<p>The first part of running this example is to create a table with a combiner
+for the column family count.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">shell</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span>
+<span class="n">Shell</span> <span class="o">-</span> <span class="n">Apache</span> <span class="n">Accumulo</span> <span class="n">Interactive</span> <span class="n">Shell</span>
+<span class="o">-</span> <span class="n">version:</span> <span class="mf">1.5.0</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">name:</span> <span class="n">instance</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">id:</span> <span class="mo">00000000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">000000000000</span>
+<span class="o">-</span> 
+<span class="o">-</span> <span class="n">type</span> <span class="s">&#39;help&#39;</span> <span class="k">for</span> <span class="n">a</span> <span class="n">list</span> <span class="n">of</span> <span class="n">available</span> <span class="n">commands</span>
+<span class="o">-</span> 
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">createtable</span> <span class="n">wordCount</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">wordCount</span><span class="o">&gt;</span> <span class="n">setiter</span> <span class="o">-</span><span class="n">class</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">core</span><span class="o">.</span><span class="n">iterators</span><span class="o">.</span><span class="n">user</span><span class="o">.</span><span class="n">SummingCombiner</span> <span class="o">-</span><span class="n">p</span> <span class="mi">10</span> <span class="o">-</span><span class="n">t</span> <span class="n">wordCount</span> <span class="o">-</span><span class="n">majc</span> <span class="o">-</span><span class="n">minc</span> <span class="o">-</span><span class="n">scan</span>
+<span class="n">SummingCombiner</span> <span class="n">interprets</span> <span class="n">Values</span> <span class="n">as</span> <span class="n">Longs</span> <span class="ow">and</span> <span class="n">adds</span> <span class="n">them</span> <span class="n">together</span><span class="o">.</span>  <span class="n">A</span> <span class="n">variety</span> <span class="n">of</span> <span class="n">encodings</span> <span class="p">(</span><span class="n">variable</span> <span class="nb">length</span><span class="p">,</span> <span class="n">fixed</span> <span class="nb">length</span><span class="p">,</span> <span class="ow">or</span> <span class="n">string</span><span class="p">)</span> <span class="n">are</span> <span class="n">available</span>
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">SummingCombiner</span> <span class="n">parameter</span> <span class="n">all</span><span class="p">,</span> <span class="n">set</span> <span class="n">to</span> <span class="n">true</span> <span class="n">to</span> <span class="n">apply</span> <span class="n">Combiner</span> <span class="n">to</span> <span class="n">every</span> <span class="n">column</span><span class="p">,</span> <span class="n">otherwise</span> <span class="n">leave</span> <span class="n">blank</span><span class="o">.</span> <span class="k">if</span> <span class="n">true</span><span class="p">,</span> <span class="n">columns</span> <span class="n">option</span> <span class="n">will</span> <span class="n">be</span> <span class="n">ignored</span><span class="o">.</span><span class="p">:</span> <span class="n">false</span>
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">SummingCombiner</span> <span class="n">parameter</span> <span class="n">columns</span><span class="p">,</span> <span class="o">&lt;</span><span class="n">col</span> <span class="n">fam</span><span class="o">&gt;</span><span class="p">[:</span><span class="o">&lt;</span><span class="n">col</span> <span class="n">qual</span><span class="o">&gt;</span><span class="p">]{,</span><span class="o">&lt;</span><span class="n">col</span> <span class="n">fam</span><span class="o">&gt;</span><span class="p">[:</span><span class="o">&lt;</span><span class="n">col</span> <span class="n">qual</span><span class="o">&gt;</span><span class="p">]}</span> <span class="n">escape</span> <span class="n">non</span><span class="o">-</span><span class="n">alphanum</span> <span class="n">chars</span> <span class="n">using</span> <span class="nv">%</span><span class="err">&lt;</span><span class="nv">hex</span><span class="o
 ">&gt;.</span><span class="p">:</span> <span class="n">count</span>
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">SummingCombiner</span> <span class="n">parameter</span> <span class="n">lossy</span><span class="p">,</span> <span class="k">if</span> <span class="n">true</span><span class="p">,</span> <span class="n">failed</span> <span class="n">decodes</span> <span class="n">are</span> <span class="n">ignored</span><span class="o">.</span> <span class="n">Otherwise</span> <span class="n">combiner</span> <span class="n">will</span> <span class="n">error</span> <span class="n">on</span> <span class="n">failed</span> <span class="n">decodes</span> <span class="p">(</span><span class="n">default</span> <span class="n">false</span><span class="p">):</span> <span class="sr">&lt;TRUE|FALSE&gt;</span><span class="p">:</span> <span class="n">false</span> 
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">SummingCombiner</span> <span class="n">parameter</span> <span class="n">type</span><span class="p">,</span> <span class="sr">&lt;VARLEN|FIXEDLEN|STRING|fullClassName&gt;</span><span class="p">:</span> <span class="n">STRING</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">wordCount</span><span class="o">&gt;</span> <span class="n">quit</span>
+</pre></div>
+
+
+<p>After creating the table, run the word count map reduce job.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">bin</span><span class="sr">/tool.sh lib/</span><span class="n">accumulo</span><span class="o">-</span><span class="n">examples</span><span class="o">-</span><span class="n">simple</span><span class="o">.</span><span class="n">jar</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">mapreduce</span><span class="o">.</span><span class="n">WordCount</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span>  <span class="o">--</span><span class="n">input</span> <span class="sr">/user/</span><span class="n">username</span><span class="o">/</span><span class="n">wc</s
 pan> <span class="n">wordCount</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span>
+
+<span class="mi">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">11</span> <span class="n">INFO</span> <span class="n">input</span><span class="o">.</span><span class="n">FileInputFormat:</span> <span class="n">Total</span> <span class="n">input</span> <span class="n">paths</span> <span class="n">to</span> <span class="n">process</span> <span class="p">:</span> <span class="mi">1</span>
+<span class="mi">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">12</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span> <span class="n">Running</span> <span class="n">job:</span> <span class="n">job_201102071740_0003</span>
+<span class="mi">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">13</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span>  <span class="nb">map</span> <span class="mi">0</span><span class="nv">%</span> <span class="nv">reduce</span> <span class="mi">0</span><span class="nv">%</span>
+<span class="nv">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">20</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span>  <span class="nb">map</span> <span class="mi">100</span><span class="nv">%</span> <span class="nv">reduce</span> <span class="mi">0</span><span class="nv">%</span>
+<span class="nv">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">22</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span> <span class="n">Job</span> <span class="n">complete:</span> <span class="n">job_201102071740_0003</span>
+<span class="mi">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">22</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span> <span class="n">Counters:</span> <span class="mi">6</span>
+<span class="mi">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">22</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span>   <span class="n">Job</span> <span class="n">Counters</span> 
+<span class="mi">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">22</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span>     <span class="n">Launched</span> <span class="nb">map</span> <span class="n">tasks</span><span class="o">=</span><span class="mi">1</span>
+<span class="mi">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">22</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span>     <span class="n">Data</span><span class="o">-</span><span class="nb">local</span> <span class="nb">map</span> <span class="n">tasks</span><span class="o">=</span><span class="mi">1</span>
+<span class="mi">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">22</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span>   <span class="n">FileSystemCounters</span>
+<span class="mi">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">22</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span>     <span class="n">HDFS_BYTES_READ</span><span class="o">=</span><span class="mi">10487</span>
+<span class="mi">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">22</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span>   <span class="n">Map</span><span class="o">-</span><span class="n">Reduce</span> <span class="n">Framework</span>
+<span class="mi">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">22</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span>     <span class="n">Map</span> <span class="n">input</span> <span class="n">records</span><span class="o">=</span><span class="mi">255</span>
+<span class="mi">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">22</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span>     <span class="n">Spilled</span> <span class="n">Records</span><span class="o">=</span><span class="mi">0</span>
+<span class="mi">11</span><span class="sr">/02/</span><span class="mo">07</span> <span class="mi">18</span><span class="p">:</span><span class="mi">20</span><span class="p">:</span><span class="mi">22</span> <span class="n">INFO</span> <span class="n">mapred</span><span class="o">.</span><span class="n">JobClient:</span>     <span class="n">Map</span> <span class="n">output</span> <span class="n">records</span><span class="o">=</span><span class="mi">1452</span>
+</pre></div>
+
+
+<p>After the map reduce job completes, query the accumulo table to see word
+counts.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">shell</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">table</span> <span class="n">wordCount</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">wordCount</span><span class="o">&gt;</span> <span class="n">scan</span> <span class="o">-</span><span class="n">b</span> <span class="n">the</span>
+<span class="n">the</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">75</span>
+<span class="n">their</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">2</span>
+<span class="n">them</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">1</span>
+<span class="k">then</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">1</span>
+<span class="n">there</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">1</span>
+<span class="n">these</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">3</span>
+<span class="n">this</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">6</span>
+<span class="n">through</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">1</span>
+<span class="nb">time</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">3</span>
+<span class="nb">time</span><span class="o">.</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">1</span>
+<span class="n">to</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">27</span>
+<span class="n">total</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">1</span>
+<span class="n">tserver</span><span class="p">,</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">1</span>
+<span class="n">tserver</span><span class="o">.</span><span class="n">compaction</span><span class="o">.</span><span class="n">major</span><span class="o">.</span><span class="n">concurrent</span><span class="o">.</span><span class="n">max</span> <span class="n">count:20080906</span> <span class="o">[]</span>    <span class="mi">1</span>
+<span class="o">...</span>
+</pre></div>
+
+
+<p>Another example to look at is
+org.apache.accumulo.examples.simple.mapreduce.UniqueColumns.  This example
+computes the unique set of columns in a table and shows how a map reduce job
+can directly read a tables files from HDFS. </p>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/maxmutation.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/maxmutation.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/maxmutation.html Sat May 25 02:56:29 2013
@@ -0,0 +1,140 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo MaxMutation Constraints Example</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo MaxMutation Constraints Example</h1>
+    <p>This an example of how to limit the size of mutations that will be accepted into
+a table.  Under the default configuration, accumulo does not provide a limitation
+on the size of mutations that can be ingested.  Poorly behaved writers might
+inadvertently create mutations so large, that they cause the tablet servers to 
+run out of memory.  A simple contraint can be added to a table to reject very 
+large mutations.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">shell</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span>
+
+<span class="n">Shell</span> <span class="o">-</span> <span class="n">Apache</span> <span class="n">Accumulo</span> <span class="n">Interactive</span> <span class="n">Shell</span>
+<span class="o">-</span> 
+<span class="o">-</span> <span class="n">version:</span> <span class="mf">1.5.0</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">name:</span> <span class="n">instance</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">id:</span> <span class="mo">00000000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">000000000000</span>
+<span class="o">-</span> 
+<span class="o">-</span> <span class="n">type</span> <span class="s">&#39;help&#39;</span> <span class="k">for</span> <span class="n">a</span> <span class="n">list</span> <span class="n">of</span> <span class="n">available</span> <span class="n">commands</span>
+<span class="o">-</span> 
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">createtable</span> <span class="n">test_ingest</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">test_ingest</span><span class="o">&gt;</span> <span class="n">config</span> <span class="o">-</span><span class="n">t</span> <span class="n">test_ingest</span> <span class="o">-</span><span class="n">s</span> <span class="n">table</span><span class="o">.</span><span class="n">constraint</span><span class="mf">.1</span><span class="o">=</span><span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">constraints</span><span class="o">.</span><span class="n">MaxMutationSize</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">test_ingest</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<p>Now the table will reject any mutation that is larger than 1/256th of the 
+working memory of the tablet server.  The following command attempts to ingest 
+a single row with 10000 columns, which exceeds the memory limit:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">test</span><span class="o">.</span><span class="n">TestIngest</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span> <span class="o">--</span><span class="n">rows</span> <span class="mi">1</span> <span class="o">--</span><span class="n">cols</span> <span class="mi">10000</span>
+</pre></div>
+
+
+<p>ERROR : Constraint violates : ConstraintViolationSummary(constrainClass:org.apache.accumulo.examples.simple.constraints.MaxMutationSize, violationCode:0, violationDescription:mutation exceeded maximum size of 188160, numberOfViolatingMutations:1)</p>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/regex.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/regex.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/regex.html Sat May 25 02:56:29 2013
@@ -0,0 +1,148 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo Regex Example</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo Regex Example</h1>
+    <p>This example uses mapreduce and accumulo to find items using regular expressions.
+This is accomplished using a map-only mapreduce job and a scan-time iterator.</p>
+<p>To run this example you will need some data in a table.  The following will
+put a trivial amount of data into accumulo using the accumulo shell:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">shell</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span>
+<span class="n">Shell</span> <span class="o">-</span> <span class="n">Apache</span> <span class="n">Accumulo</span> <span class="n">Interactive</span> <span class="n">Shell</span>
+<span class="o">-</span> <span class="n">version:</span> <span class="mf">1.5.0</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">name:</span> <span class="n">instance</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">id:</span> <span class="mo">00000000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">000000000000</span>
+<span class="o">-</span> 
+<span class="o">-</span> <span class="n">type</span> <span class="s">&#39;help&#39;</span> <span class="k">for</span> <span class="n">a</span> <span class="n">list</span> <span class="n">of</span> <span class="n">available</span> <span class="n">commands</span>
+<span class="o">-</span> 
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">createtable</span> <span class="n">input</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">dogrow</span> <span class="n">dogcf</span> <span class="n">dogcq</span> <span class="n">dogvalue</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">catrow</span> <span class="n">catcf</span> <span class="n">catcq</span> <span class="n">catvalue</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">quit</span>
+</pre></div>
+
+
+<p>The RegexExample class sets an iterator on the scanner.  This does pattern matching
+against each key/value in accumulo, and only returns matching items.  It will do this
+in parallel and will store the results in files in hdfs.</p>
+<p>The following will search for any rows in the input table that starts with "dog":</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">bin</span><span class="sr">/tool.sh lib/</span><span class="n">accumulo</span><span class="o">-</span><span class="n">examples</span><span class="o">-</span><span class="n">simple</span><span class="o">.</span><span class="n">jar</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">mapreduce</span><span class="o">.</span><span class="n">RegexExample</span> <span class="o">-</span><span class="n">u</span> <span class="n">user</span> <span class="o">-</span><span class="n">p</span> <span class="n">passwd</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">t</span> <span class="n">input</span> <span c
 lass="o">--</span><span class="n">rowRegex</span> <span class="s">&#39;dog.*&#39;</span> <span class="o">--</span><span class="n">output</span> <span class="sr">/tmp/o</span><span class="n">utput</span>
+
+<span class="nv">$</span> <span class="nv">hadoop</span> <span class="n">fs</span> <span class="o">-</span><span class="n">ls</span> <span class="sr">/tmp/o</span><span class="n">utput</span>
+<span class="n">Found</span> <span class="mi">3</span> <span class="n">items</span>
+<span class="o">-</span><span class="n">rw</span><span class="o">-</span><span class="n">r</span><span class="o">--</span><span class="n">r</span><span class="o">--</span>   <span class="mi">1</span> <span class="n">username</span> <span class="n">supergroup</span>          <span class="mi">0</span> <span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">10</span> <span class="mi">14</span><span class="p">:</span><span class="mi">11</span> <span class="sr">/tmp/o</span><span class="n">utput</span><span class="o">/</span><span class="n">_SUCCESS</span>
+<span class="n">drwxr</span><span class="o">-</span><span class="n">xr</span><span class="o">-</span><span class="n">x</span>   <span class="o">-</span> <span class="n">username</span> <span class="n">supergroup</span>          <span class="mi">0</span> <span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">10</span> <span class="mi">14</span><span class="p">:</span><span class="mi">10</span> <span class="sr">/tmp/o</span><span class="n">utput</span><span class="o">/</span><span class="n">_logs</span>
+<span class="o">-</span><span class="n">rw</span><span class="o">-</span><span class="n">r</span><span class="o">--</span><span class="n">r</span><span class="o">--</span>   <span class="mi">1</span> <span class="n">username</span> <span class="n">supergroup</span>         <span class="mi">51</span> <span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">10</span> <span class="mi">14</span><span class="p">:</span><span class="mi">10</span> <span class="sr">/tmp/o</span><span class="n">utput</span><span class="o">/</span><span class="n">part</span><span class="o">-</span><span class="n">m</span><span class="o">-</span><span class="mo">00000</span>
+</pre></div>
+
+
+<p>We can see the output of our little map-reduce job:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">hadoop</span> <span class="n">fs</span> <span class="o">-</span><span class="n">text</span> <span class="sr">/tmp/o</span><span class="n">utput</span><span class="sr">/output/</span><span class="n">part</span><span class="o">-</span><span class="n">m</span><span class="o">-</span><span class="mo">00000</span>
+<span class="n">dogrow</span> <span class="n">dogcf:dogcq</span> <span class="o">[]</span> <span class="mi">1357844987994</span> <span class="n">false</span>   <span class="n">dogvalue</span>
+<span class="nv">$</span>
+</pre></div>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/rowhash.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/rowhash.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/rowhash.html Sat May 25 02:56:29 2013
@@ -0,0 +1,151 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo RowHash Example</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo RowHash Example</h1>
+    <p>This example shows a simple map/reduce job that reads from an accumulo table and
+writes back into that table.</p>
+<p>To run this example you will need some data in a table.  The following will
+put a trivial amount of data into accumulo using the accumulo shell:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">shell</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span>
+<span class="n">Shell</span> <span class="o">-</span> <span class="n">Apache</span> <span class="n">Accumulo</span> <span class="n">Interactive</span> <span class="n">Shell</span>
+<span class="o">-</span> <span class="n">version:</span> <span class="mf">1.5.0</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">name:</span> <span class="n">instance</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">id:</span> <span class="mo">00000000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">000000000000</span>
+<span class="o">-</span> 
+<span class="o">-</span> <span class="n">type</span> <span class="s">&#39;help&#39;</span> <span class="k">for</span> <span class="n">a</span> <span class="n">list</span> <span class="n">of</span> <span class="n">available</span> <span class="n">commands</span>
+<span class="o">-</span> 
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">createtable</span> <span class="n">input</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">a</span><span class="o">-</span><span class="n">row</span> <span class="n">cf</span> <span class="n">cq</span> <span class="n">value</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">b</span><span class="o">-</span><span class="n">row</span> <span class="n">cf</span> <span class="n">cq</span> <span class="n">value</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">quit</span>
+</pre></div>
+
+
+<p>The RowHash class will insert a hash for each row in the database if it contains a 
+specified colum.  Here's how you run the map/reduce job</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">bin</span><span class="sr">/tool.sh lib/</span><span class="n">accumulo</span><span class="o">-</span><span class="n">examples</span><span class="o">-</span><span class="n">simple</span><span class="o">.</span><span class="n">jar</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">mapreduce</span><span class="o">.</span><span class="n">RowHash</span> <span class="o">-</span><span class="n">u</span> <span class="n">user</span> <span class="o">-</span><span class="n">p</span> <span class="n">passwd</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">t</span> <span class="n">input</span> <span class=
 "o">--</span><span class="n">column</span> <span class="n">cf:cq</span>
+</pre></div>
+
+
+<p>Now we can scan the table and see the hashes:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">shell</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span>
+<span class="n">Shell</span> <span class="o">-</span> <span class="n">Apache</span> <span class="n">Accumulo</span> <span class="n">Interactive</span> <span class="n">Shell</span>
+<span class="o">-</span> <span class="n">version:</span> <span class="mf">1.5.0</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">name:</span> <span class="n">instance</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">id:</span> <span class="mo">00000000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">000000000000</span>
+<span class="o">-</span> 
+<span class="o">-</span> <span class="n">type</span> <span class="s">&#39;help&#39;</span> <span class="k">for</span> <span class="n">a</span> <span class="n">list</span> <span class="n">of</span> <span class="n">available</span> <span class="n">commands</span>
+<span class="o">-</span> 
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">scan</span> <span class="o">-</span><span class="n">t</span> <span class="n">input</span>
+<span class="n">a</span><span class="o">-</span><span class="n">row</span> <span class="n">cf:cq</span> <span class="o">[]</span>    <span class="n">value</span>
+<span class="n">a</span><span class="o">-</span><span class="n">row</span> <span class="n">cf</span><span class="o">-</span><span class="n">HASHTYPE:cq</span><span class="o">-</span><span class="n">MD5BASE64</span> <span class="o">[]</span>    <span class="n">IGPBYI1uC6</span><span class="o">+</span><span class="n">AJJxC4r5YBA</span><span class="o">==</span>
+<span class="n">b</span><span class="o">-</span><span class="n">row</span> <span class="n">cf:cq</span> <span class="o">[]</span>    <span class="n">value</span>
+<span class="n">b</span><span class="o">-</span><span class="n">row</span> <span class="n">cf</span><span class="o">-</span><span class="n">HASHTYPE:cq</span><span class="o">-</span><span class="n">MD5BASE64</span> <span class="o">[]</span>    <span class="n">IGPBYI1uC6</span><span class="o">+</span><span class="n">AJJxC4r5YBA</span><span class="o">==</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span>
+</pre></div>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/shard.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/shard.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/shard.html Sat May 25 02:56:29 2013
@@ -0,0 +1,163 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo Shard Example</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo Shard Example</h1>
+    <p>Accumulo has an iterator called the intersecting iterator which supports querying a term index that is partitioned by 
+document, or "sharded". This example shows how to use the intersecting iterator through these four programs:</p>
+<ul>
+<li>Index.java - Indexes a set of text files into an Accumulo table</li>
+<li>Query.java - Finds documents containing a given set of terms.</li>
+<li>Reverse.java - Reads the index table and writes a map of documents to terms into another table.</li>
+<li>ContinuousQuery.java  Uses the table populated by Reverse.java to select N random terms per document.  Then it continuously and randomly queries those terms.</li>
+</ul>
+<p>To run these example programs, create two tables like below.</p>
+<div class="codehilite"><pre><span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">createtable</span> <span class="n">shard</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">shard</span><span class="o">&gt;</span> <span class="n">createtable</span> <span class="n">doc2term</span>
+</pre></div>
+
+
+<p>After creating the tables, index some files.  The following command indexes all of the java files in the Accumulo source code.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">cd</span> <span class="sr">/local/</span><span class="n">username</span><span class="sr">/workspace/</span><span class="n">accumulo</span><span class="o">/</span>
+<span class="nv">$</span> <span class="nv">find</span> <span class="n">core</span><span class="sr">/src server/s</span><span class="n">rc</span> <span class="o">-</span><span class="n">name</span> <span class="s">&quot;*.java&quot;</span> <span class="o">|</span> <span class="n">xargs</span> <span class="o">.</span><span class="sr">/bin/</span><span class="n">accumulo</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">shard</span><span class="o">.</span><span class="n">Index</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">-</span><span class="n">t</span> <span class="n">shard</span> <span class="o">-</spa
 n><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span> <span class="o">--</span><span class="n">partitions</span> <span class="mi">30</span>
+</pre></div>
+
+
+<p>The following command queries the index to find all files containing 'foo' and 'bar'.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">cd</span> <span class="nv">$ACCUMULO_HOME</span>
+<span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">shard</span><span class="o">.</span><span class="n">Query</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">-</span><span class="n">t</span> <span class="n">shard</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span> <span class="n">foo</span> <span class="n">bar</span>
+<span class="sr">/local/</span><span class="n">username</span><span class="sr">/workspace/</span><span class="n">accumulo</span><span class="sr">/src/co</span><span class="n">re</span><span class="sr">/src/</span><span class="n">test</span><span class="sr">/java/</span><span class="n">accumulo</span><span class="sr">/core/s</span><span class="n">ecurity</span><span class="o">/</span><span class="n">ColumnVisibilityTest</span><span class="o">.</span><span class="n">java</span>
+<span class="sr">/local/</span><span class="n">username</span><span class="sr">/workspace/</span><span class="n">accumulo</span><span class="sr">/src/co</span><span class="n">re</span><span class="sr">/src/</span><span class="n">test</span><span class="sr">/java/</span><span class="n">accumulo</span><span class="sr">/core/c</span><span class="n">lient</span><span class="sr">/mock/</span><span class="n">MockConnectorTest</span><span class="o">.</span><span class="n">java</span>
+<span class="sr">/local/</span><span class="n">username</span><span class="sr">/workspace/</span><span class="n">accumulo</span><span class="sr">/src/co</span><span class="n">re</span><span class="sr">/src/</span><span class="n">test</span><span class="sr">/java/</span><span class="n">accumulo</span><span class="sr">/core/s</span><span class="n">ecurity</span><span class="o">/</span><span class="n">VisibilityEvaluatorTest</span><span class="o">.</span><span class="n">java</span>
+<span class="sr">/local/</span><span class="n">username</span><span class="sr">/workspace/</span><span class="n">accumulo</span><span class="sr">/src/s</span><span class="n">erver</span><span class="sr">/src/m</span><span class="n">ain</span><span class="sr">/java/</span><span class="n">accumulo</span><span class="sr">/test/</span><span class="n">functional</span><span class="o">/</span><span class="n">RowDeleteTest</span><span class="o">.</span><span class="n">java</span>
+<span class="sr">/local/</span><span class="n">username</span><span class="sr">/workspace/</span><span class="n">accumulo</span><span class="sr">/src/s</span><span class="n">erver</span><span class="sr">/src/</span><span class="n">test</span><span class="sr">/java/</span><span class="n">accumulo</span><span class="sr">/server/</span><span class="n">logger</span><span class="o">/</span><span class="n">TestLogWriter</span><span class="o">.</span><span class="n">java</span>
+<span class="sr">/local/</span><span class="n">username</span><span class="sr">/workspace/</span><span class="n">accumulo</span><span class="sr">/src/s</span><span class="n">erver</span><span class="sr">/src/m</span><span class="n">ain</span><span class="sr">/java/</span><span class="n">accumulo</span><span class="sr">/test/</span><span class="n">functional</span><span class="o">/</span><span class="n">DeleteEverythingTest</span><span class="o">.</span><span class="n">java</span>
+<span class="sr">/local/</span><span class="n">username</span><span class="sr">/workspace/</span><span class="n">accumulo</span><span class="sr">/src/co</span><span class="n">re</span><span class="sr">/src/</span><span class="n">test</span><span class="sr">/java/</span><span class="n">accumulo</span><span class="sr">/core/</span><span class="n">data</span><span class="o">/</span><span class="n">KeyExtentTest</span><span class="o">.</span><span class="n">java</span>
+<span class="sr">/local/</span><span class="n">username</span><span class="sr">/workspace/</span><span class="n">accumulo</span><span class="sr">/src/s</span><span class="n">erver</span><span class="sr">/src/</span><span class="n">test</span><span class="sr">/java/</span><span class="n">accumulo</span><span class="sr">/server/co</span><span class="n">nstraints</span><span class="o">/</span><span class="n">MetadataConstraintsTest</span><span class="o">.</span><span class="n">java</span>
+<span class="sr">/local/</span><span class="n">username</span><span class="sr">/workspace/</span><span class="n">accumulo</span><span class="sr">/src/co</span><span class="n">re</span><span class="sr">/src/</span><span class="n">test</span><span class="sr">/java/</span><span class="n">accumulo</span><span class="sr">/core/i</span><span class="n">terators</span><span class="o">/</span><span class="n">WholeRowIteratorTest</span><span class="o">.</span><span class="n">java</span>
+<span class="sr">/local/</span><span class="n">username</span><span class="sr">/workspace/</span><span class="n">accumulo</span><span class="sr">/src/s</span><span class="n">erver</span><span class="sr">/src/</span><span class="n">test</span><span class="sr">/java/</span><span class="n">accumulo</span><span class="sr">/server/</span><span class="n">util</span><span class="o">/</span><span class="n">DefaultMapTest</span><span class="o">.</span><span class="n">java</span>
+<span class="sr">/local/</span><span class="n">username</span><span class="sr">/workspace/</span><span class="n">accumulo</span><span class="sr">/src/s</span><span class="n">erver</span><span class="sr">/src/</span><span class="n">test</span><span class="sr">/java/</span><span class="n">accumulo</span><span class="sr">/server/</span><span class="n">tabletserver</span><span class="o">/</span><span class="n">InMemoryMapTest</span><span class="o">.</span><span class="n">java</span>
+</pre></div>
+
+
+<p>In order to run ContinuousQuery, we need to run Reverse.java to populate doc2term.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">shard</span><span class="o">.</span><span class="n">Reverse</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">--</span><span class="n">shardTable</span> <span class="n">shard</span> <span class="o">--</span><span class="n">doc2Term</span> <span class="n">doc2term</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <spa
 n class="n">password</span>
+</pre></div>
+
+
+<p>Below ContinuousQuery is run using 5 terms.  So it selects 5 random terms from each document, then it continually 
+randomly selects one set of 5 terms and queries.  It prints the number of matching documents and the time in seconds.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">shard</span><span class="o">.</span><span class="n">ContinuousQuery</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">--</span><span class="n">shardTable</span> <span class="n">shard</span> <span class="o">--</span><span class="n">doc2Term</span> <span class="n">doc2term</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</sp
 an> <span class="n">password</span> <span class="o">--</span><span class="n">terms</span> <span class="mi">5</span>
+<span class="p">[</span><span class="n">public</span><span class="p">,</span> <span class="n">core</span><span class="p">,</span> <span class="n">class</span><span class="p">,</span> <span class="n">binarycomparable</span><span class="p">,</span> <span class="n">b</span><span class="p">]</span> <span class="mi">2</span>  <span class="mf">0.081</span>
+<span class="p">[</span><span class="n">wordtodelete</span><span class="p">,</span> <span class="n">unindexdocument</span><span class="p">,</span> <span class="n">doctablename</span><span class="p">,</span> <span class="n">putdelete</span><span class="p">,</span> <span class="n">insert</span><span class="p">]</span> <span class="mi">1</span>  <span class="mf">0.041</span>
+<span class="p">[</span><span class="nb">import</span><span class="p">,</span> <span class="n">columnvisibilityinterpreterfactory</span><span class="p">,</span> <span class="n">illegalstateexception</span><span class="p">,</span> <span class="n">cv</span><span class="p">,</span> <span class="n">columnvisibility</span><span class="p">]</span> <span class="mi">1</span>  <span class="mf">0.049</span>
+<span class="p">[</span><span class="n">getpackage</span><span class="p">,</span> <span class="n">testversion</span><span class="p">,</span> <span class="n">util</span><span class="p">,</span> <span class="n">version</span><span class="p">,</span> <span class="mi">55</span><span class="p">]</span> <span class="mi">1</span>  <span class="mf">0.048</span>
+<span class="p">[</span><span class="k">for</span><span class="p">,</span> <span class="n">static</span><span class="p">,</span> <span class="n">println</span><span class="p">,</span> <span class="n">public</span><span class="p">,</span> <span class="n">the</span><span class="p">]</span> <span class="mi">55</span>  <span class="mf">0.211</span>
+<span class="p">[</span><span class="n">sleeptime</span><span class="p">,</span> <span class="n">wrappingiterator</span><span class="p">,</span> <span class="n">options</span><span class="p">,</span> <span class="n">long</span><span class="p">,</span> <span class="n">utilwaitthread</span><span class="p">]</span> <span class="mi">1</span>  <span class="mf">0.057</span>
+<span class="p">[</span><span class="n">string</span><span class="p">,</span> <span class="n">public</span><span class="p">,</span> <span class="n">long</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="nb">wait</span><span class="p">]</span> <span class="mi">12</span>  <span class="mf">0.132</span>
+</pre></div>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/tabletofile.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/tabletofile.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/tabletofile.html Sat May 25 02:56:29 2013
@@ -0,0 +1,150 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo Regex Example</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo Regex Example</h1>
+    <p>This example uses mapreduce to extract specified columns from an existing table.</p>
+<p>To run this example you will need some data in a table.  The following will
+put a trivial amount of data into accumulo using the accumulo shell:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">shell</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span>
+<span class="n">Shell</span> <span class="o">-</span> <span class="n">Apache</span> <span class="n">Accumulo</span> <span class="n">Interactive</span> <span class="n">Shell</span>
+<span class="o">-</span> <span class="n">version:</span> <span class="mf">1.5.0</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">name:</span> <span class="n">instance</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">id:</span> <span class="mo">00000000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">0000</span><span class="o">-</span><span class="mo">000000000000</span>
+<span class="o">-</span> 
+<span class="o">-</span> <span class="n">type</span> <span class="s">&#39;help&#39;</span> <span class="k">for</span> <span class="n">a</span> <span class="n">list</span> <span class="n">of</span> <span class="n">available</span> <span class="n">commands</span>
+<span class="o">-</span> 
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">createtable</span> <span class="n">input</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">dog</span> <span class="n">cf</span> <span class="n">cq</span> <span class="n">dogvalue</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">cat</span> <span class="n">cf</span> <span class="n">cq</span> <span class="n">catvalue</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">junk</span> <span class="n">family</span> <span class="n">qualifier</span> <span class="n">junkvalue</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">quit</span>
+</pre></div>
+
+
+<p>The TableToFile class configures a map-only job to read the specified columns and
+write the key/value pairs to a file in HDFS.</p>
+<p>The following will extract the rows containing the column "cf:cq":</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">bin</span><span class="sr">/tool.sh lib/</span><span class="n">accumulo</span><span class="o">-</span><span class="n">examples</span><span class="o">-</span><span class="n">simple</span><span class="o">.</span><span class="n">jar</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">mapreduce</span><span class="o">.</span><span class="n">TableToFile</span> <span class="o">-</span><span class="n">u</span> <span class="n">user</span> <span class="o">-</span><span class="n">p</span> <span class="n">passwd</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">t</span> <span class="n">input</span> <span cl
 ass="o">--</span><span class="n">columns</span> <span class="n">cf:cq</span> <span class="o">--</span><span class="n">output</span> <span class="sr">/tmp/o</span><span class="n">utput</span>
+
+<span class="nv">$</span> <span class="nv">hadoop</span> <span class="n">fs</span> <span class="o">-</span><span class="n">ls</span> <span class="sr">/tmp/o</span><span class="n">utput</span>
+<span class="o">-</span><span class="n">rw</span><span class="o">-</span><span class="n">r</span><span class="o">--</span><span class="n">r</span><span class="o">--</span>   <span class="mi">1</span> <span class="n">username</span> <span class="n">supergroup</span>          <span class="mi">0</span> <span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">10</span> <span class="mi">14</span><span class="p">:</span><span class="mi">44</span> <span class="sr">/tmp/o</span><span class="n">utput</span><span class="o">/</span><span class="n">_SUCCESS</span>
+<span class="n">drwxr</span><span class="o">-</span><span class="n">xr</span><span class="o">-</span><span class="n">x</span>   <span class="o">-</span> <span class="n">username</span> <span class="n">supergroup</span>          <span class="mi">0</span> <span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">10</span> <span class="mi">14</span><span class="p">:</span><span class="mi">44</span> <span class="sr">/tmp/o</span><span class="n">utput</span><span class="o">/</span><span class="n">_logs</span>
+<span class="n">drwxr</span><span class="o">-</span><span class="n">xr</span><span class="o">-</span><span class="n">x</span>   <span class="o">-</span> <span class="n">username</span> <span class="n">supergroup</span>          <span class="mi">0</span> <span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">10</span> <span class="mi">14</span><span class="p">:</span><span class="mi">44</span> <span class="sr">/tmp/o</span><span class="n">utput</span><span class="sr">/_logs/</span><span class="n">history</span>
+<span class="o">-</span><span class="n">rw</span><span class="o">-</span><span class="n">r</span><span class="o">--</span><span class="n">r</span><span class="o">--</span>   <span class="mi">1</span> <span class="n">username</span> <span class="n">supergroup</span>       <span class="mi">9049</span> <span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">10</span> <span class="mi">14</span><span class="p">:</span><span class="mi">44</span> <span class="sr">/tmp/o</span><span class="n">utput</span><span class="sr">/_logs/</span><span class="n">history</span><span class="o">/</span><span class="n">job_201301081658_0011_1357847072863_username_TableToFile</span><span class="nv">%5F1357847071434</span>
+<span class="o">-</span><span class="n">rw</span><span class="o">-</span><span class="n">r</span><span class="o">--</span><span class="n">r</span><span class="o">--</span>   <span class="mi">1</span> <span class="n">username</span> <span class="n">supergroup</span>      <span class="mi">26172</span> <span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">10</span> <span class="mi">14</span><span class="p">:</span><span class="mi">44</span> <span class="sr">/tmp/o</span><span class="n">utput</span><span class="sr">/_logs/</span><span class="n">history</span><span class="o">/</span><span class="n">job_201301081658_0011_conf</span><span class="o">.</span><span class="n">xml</span>
+<span class="o">-</span><span class="n">rw</span><span class="o">-</span><span class="n">r</span><span class="o">--</span><span class="n">r</span><span class="o">--</span>   <span class="mi">1</span> <span class="n">username</span> <span class="n">supergroup</span>         <span class="mi">50</span> <span class="mi">2013</span><span class="o">-</span><span class="mo">01</span><span class="o">-</span><span class="mi">10</span> <span class="mi">14</span><span class="p">:</span><span class="mi">44</span> <span class="sr">/tmp/o</span><span class="n">utput</span><span class="o">/</span><span class="n">part</span><span class="o">-</span><span class="n">m</span><span class="o">-</span><span class="mo">00000</span>
+</pre></div>
+
+
+<p>We can see the output of our little map-reduce job:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">hadoop</span> <span class="n">fs</span> <span class="o">-</span><span class="n">text</span> <span class="sr">/tmp/o</span><span class="n">utput</span><span class="sr">/output/</span><span class="n">part</span><span class="o">-</span><span class="n">m</span><span class="o">-</span><span class="mo">00000</span>
+<span class="n">catrow</span> <span class="n">cf:cq</span> <span class="o">[]</span> <span class="n">catvalue</span>
+<span class="n">dogrow</span> <span class="n">cf:cq</span> <span class="o">[]</span> <span class="n">dogvalue</span>
+<span class="nv">$</span>
+</pre></div>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>



Mime
View raw message