accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r951681 [7/9] - in /websites/staging/accumulo/trunk/content: ./ 1.7/ 1.7/examples/
Date Mon, 18 May 2015 04:27:54 GMT
Added: websites/staging/accumulo/trunk/content/1.7/examples/isolation.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.7/examples/isolation.html (added)
+++ websites/staging/accumulo/trunk/content/1.7/examples/isolation.html Mon May 18 04:27:53 2015
@@ -0,0 +1,264 @@
+<!DOCTYPE html>
+<html lang="en">
+<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.
+-->
+  <meta charset="utf-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1">
+  <link href="/css/bootstrap.min.css" rel="stylesheet">
+  <link href="/css/bootstrap-theme.min.css" rel="stylesheet">
+  <link href="/css/dataTables.bootstrap.css" rel="stylesheet">
+  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+  <!--[if lt IE 9]>
+    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
+  <![endif]-->
+  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
+  <script src="/js/bootstrap.min.js"></script>
+  <script src="/js/jquery.dataTables.min.js"></script>
+  <script src="/js/dataTables.bootstrap.js"></script>
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
+  <title>Apache Accumulo Isolation Example</title>
+  
+<script>
+  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+  ga('create', 'UA-50934829-1', 'apache.org');
+  ga('send', 'pageview');
+
+</script>
+
+</head>
+
+<body>
+<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
+<div class="container-fluid">
+  <div class="navbar-header">
+    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-items">
+      <span class="sr-only">Toggle navigation</span>
+      <span class="icon-bar"></span>
+      <span class="icon-bar"></span>
+      <span class="icon-bar"></span>
+    </button>
+    <a class="navbar-brand" href="/index.html">Accumulo</a>
+  </div>
+  <div class="collapse navbar-collapse" id="navbar-items">
+  <ul class="nav navbar-nav">
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Project <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li id="nav_index"><a href="/index.html">Home</a></li>
+<li id="nav_downloads"><a href="/downloads">Downloads</a></li>
+<li id="nav_features"><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0"><i class="fa fa-external-link"></i> License</a></li>
+</ul>
+</li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Community <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li id="nav_getinvolved"><a href="/get_involved.html">Get Involved</a></li>
+<li id="nav_mailinglists"><a href="/mailing_list.html">Mailing Lists</a></li>
+<li id="nav_people"><a href="/people.html">People</a></li>
+<li id="nav_blog"><a href="https://blogs.apache.org/accumulo/">Blog</a></li>
+<li class="divider"></li>
+<li class="dropdown-header">Governance</li>
+<li id="nav_bylaws"><a href="/bylaws.html">Bylaws</a></li>
+<li id="nav_consensusbuilding"><a href="/governance/consensusBuilding.html">Consensus Building</a></li>
+<li id="nav_lazyconsensus"><a href="/governance/lazyConsensus.html">Lazy Consensus</a></li>
+<li id="nav_releasing"><a href="/governance/releasing.html">Releasing</a></li>
+<li id="nav_voting"><a href="/governance/voting.html">Voting</a></li>
+</ul>
+</li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Development <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li id="nav_source"><a href="/source.html">Source &amp; Guide</a></li>
+<li id="nav_git"><a href="/git.html">Git Workflow</a></li>
+<li id="nav_versioning"><a href="/versioning.html">Versioning</a></li>
+<li id="nav_contrib"><a href="/contrib.html">Contrib Projects</a></li>
+<li id="nav_rb"><a href="/rb.html">Review Board</a></li>
+<li id="nav_releasing"><a href="/releasing.html">Making Releases</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo"><i class="fa fa-external-link"></i> Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/"><i class="fa fa-external-link"></i> Builds</a></li>
+</ul>
+</li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Documentation <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li class="dropdown-header">Manual</li>
+<li><a href="/1.5/accumulo_user_manual.html">1.5</a></li>
+<li><a href="/1.6/accumulo_user_manual.html">1.6</a></li>
+<li class="divider"></li>
+<li class="dropdown-header">Javadoc</li>
+<li><a href="/1.5/apidocs">1.5</a></li>
+<li><a href="/1.6/apidocs">1.6</a></li>
+<li class="divider"></li>
+<li class="dropdown-header">Examples</li>
+<li id="nav_examples_1_5"><a href="/1.5/examples">1.5</a></li>
+<li id="nav_examples_1_6"><a href="/1.6/examples">1.6</a></li>
+<li class="divider"></li>
+<li id="old_documentation"><a href="/old_documentation.html">Docs for Older Verisons</a></li>
+<li id="nav_screenshots"><a href="/screenshots.html">Screenshots</a></li>
+<li id="nav_papers"><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li id="nav_glossary"><a href="/glossary.html">Glossary</a></li>
+</ul>
+</li>
+	<li class="dropdown">
+	  <a class="dropdown-toggle" data-toggle="dropdown" href="#">Release Notes <span class="caret"></span></a>
+      <ul class="dropdown-menu">
+		  <li><a href="/release_notes/1.7.0.html">1.7.0</a></li>
+          <li class="divider"></li>
+		  <li><a href="/release_notes/1.6.2.html">1.6.2</a></li>
+		  <li><a href="/release_notes/1.6.1.html">1.6.1</a></li>
+          <li class="divider"></li>
+		  <li><a href="/release_notes/1.5.2.html">1.5.2</a></li>
+		  <li><a href="/release_notes/1.5.1.html">1.5.1</a></li>
+          <li class="divider"></li>
+		  <li><a href="/release_notes/">Archives</a></li>
+		</ul>
+    </li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        ASF Links <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li><a href="http://www.apache.org"><i class="fa fa-external-link"></i> Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html"><i class="fa fa-external-link"></i> Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/"><i class="fa fa-external-link"></i> Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html"><i class="fa fa-external-link"></i> Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/policies/conduct.html"><i class="fa fa-external-link"></i> Code of Conduct</a></li>
+</ul>
+</li>
+</ul>
+
+<form method="GET" action="http://search-hadoop.com/" class="navbar-form navbar-right" role="search">
+  <div class="form-group">
+    <input type="text" name="q" class="form-control" placeholder="Search"/>
+    <input type="hidden" name="fc_project" value="Accumulo"/>
+  </div>
+  <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
+</form>
+  </div>
+
+</div>
+</nav>
+
+
+<div class="container-fluid">
+<div class="row">
+  <div class="col-md-2" id="sidebar">
+  <div style="text-align: center">
+    <a href="/index.html"><img id="logo" alt="Apache Accumulo &trade;" class="img-responsive" src="/images/accumulo-logo.png"/></a>
+    <br>
+Latest 1.6 release: <strong>1.6.2</strong><br>
+Latest 1.5 release: <strong>1.5.2</strong><br>
+    <br>
+    <a id="download-button-sidebar" class="btn btn-success btn-block" href="/downloads/" role="button">Download</a>
+  </div>
+    <hr>
+<table class="table" id="sociallinks">
+<tr><td><img src="/images/Twitter_logo_blue.png" style="height: 1em"></td><td><a href="https://twitter.com/apacheaccumulo">@ApacheAccumulo</a></td></tr>
+<tr><td><img src="/images/InBug-16px_0.png"></td><td><a href="https://www.linkedin.com/groups/Apache-Accumulo-Professionals-4554913">Apache Accumulo Professionals</a></td></tr>
+<tr><td><img src="/images/GitHub-Mark-32px.png" style="height: 1em"></td><td><a href="https://github.com/apache/accumulo">apache / accumulo</a></td></tr>
+<tr><td><span class="glyphicon glyphicon-comment"></span></td><td><a href="irc://chat.freenode.net/accumulo">#accumulo @ freenode</a></td></tr>
+<tr><td><img src="/favicon.png" width="16" /></td><td><a href="http://blogs.apache.org/accumulo">Apache Accumulo Blog</a></td></tr>
+</table>
+<hr>
+<a id="accumulo-summit-logo" href="http://accumulosummit.com/"><img alt="Accumulo Summit" class="img-responsive" src="/images/accumulo-summit.png"></a>
+  </div>
+  <div class="col-md-8 col-md-offset-1">
+<!--
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo &trade;" src="/images/accumulo-logo.png"/>
+  </div>
+-->
+
+  <div id="content">
+
+    <h1 class="title">Apache Accumulo Isolation Example</h1>
+
+    <p>Accumulo has an isolated scanner that ensures partial changes to rows are not
+seen. Isolation is documented in ../docs/isolation.html and the user manual.</p>
+<p>InterferenceTest is a simple example that shows the effects of scanning with
+and without isolation. This program starts two threads. One threads
+continually upates all of the values in a row to be the same thing, but
+different from what it used to be. The other thread continually scans the
+table and checks that all values in a row are the same. Without isolation the
+scanning thread will sometimes see different values, which is the result of
+reading the row at the same time a mutation is changing the row.</p>
+<p>Below, Interference Test is run without isolation enabled for 5000 iterations
+and it reports problems.</p>
+<div class="codehilite"><pre>$ <span class="o">./</span><span class="n">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">org</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">accumulo</span><span class="p">.</span><span class="n">examples</span><span class="p">.</span><span class="n">simple</span><span class="p">.</span><span class="n">isolation</span><span class="p">.</span><span class="n">InterferenceTest</span> <span class="o">-</span><span class="nb">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">t</span> <span class="n">isotest</span> <span class="o">--</span><span class="n">iterations</span> 5000
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> 053 <span class="n">had</span> <span class="n">multiple</span> <span class="n">values</span> <span class="p">[</span>53<span class="p">,</span> 4553<span class="p">]</span>
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> 061 <span class="n">had</span> <span class="n">multiple</span> <span class="n">values</span> <span class="p">[</span>561<span class="p">,</span> 61<span class="p">]</span>
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> 070 <span class="n">had</span> <span class="n">multiple</span> <span class="n">values</span> <span class="p">[</span>570<span class="p">,</span> 1070<span class="p">]</span>
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> 079 <span class="n">had</span> <span class="n">multiple</span> <span class="n">values</span> <span class="p">[</span>1079<span class="p">,</span> 1579<span class="p">]</span>
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> 088 <span class="n">had</span> <span class="n">multiple</span> <span class="n">values</span> <span class="p">[</span>2588<span class="p">,</span> 1588<span class="p">]</span>
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> 106 <span class="n">had</span> <span class="n">multiple</span> <span class="n">values</span> <span class="p">[</span>2606<span class="p">,</span> 3106<span class="p">]</span>
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> 115 <span class="n">had</span> <span class="n">multiple</span> <span class="n">values</span> <span class="p">[</span>4615<span class="p">,</span> 3115<span class="p">]</span>
+<span class="n">finished</span>
+</pre></div>
+
+
+<p>Below, Interference Test is run with isolation enabled for 5000 iterations and
+it reports no problems.</p>
+<div class="codehilite"><pre>$ <span class="o">./</span><span class="n">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">org</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">accumulo</span><span class="p">.</span><span class="n">examples</span><span class="p">.</span><span class="n">simple</span><span class="p">.</span><span class="n">isolation</span><span class="p">.</span><span class="n">InterferenceTest</span> <span class="o">-</span><span class="nb">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">t</span> <span class="n">isotest</span> <span class="o">--</span><span class="n">iterations</span> 5000 <span class="o">--</span><
 span class="n">isolated</span>
+<span class="n">finished</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-2014 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.<br />
+        Site created with <a href="http://getbootstrap.com/">Bootstrap</a> including icons from <a href="http://glyphicons.com/">GLYPHICONS</a> and <a href="http://fontawesome.io/">Font Awesome</a>.
+      </p>
+    </div> 
+  </div>
+  </div>
+
+</div>
+</div>
+
+<script type="text/javascript">
+
+</script>
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.7/examples/mapred.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.7/examples/mapred.html (added)
+++ websites/staging/accumulo/trunk/content/1.7/examples/mapred.html Mon May 18 04:27:53 2015
@@ -0,0 +1,369 @@
+<!DOCTYPE html>
+<html lang="en">
+<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.
+-->
+  <meta charset="utf-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1">
+  <link href="/css/bootstrap.min.css" rel="stylesheet">
+  <link href="/css/bootstrap-theme.min.css" rel="stylesheet">
+  <link href="/css/dataTables.bootstrap.css" rel="stylesheet">
+  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+  <!--[if lt IE 9]>
+    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
+  <![endif]-->
+  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
+  <script src="/js/bootstrap.min.js"></script>
+  <script src="/js/jquery.dataTables.min.js"></script>
+  <script src="/js/dataTables.bootstrap.js"></script>
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
+  <title>Apache Accumulo MapReduce Example</title>
+  
+<script>
+  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+  ga('create', 'UA-50934829-1', 'apache.org');
+  ga('send', 'pageview');
+
+</script>
+
+</head>
+
+<body>
+<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
+<div class="container-fluid">
+  <div class="navbar-header">
+    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-items">
+      <span class="sr-only">Toggle navigation</span>
+      <span class="icon-bar"></span>
+      <span class="icon-bar"></span>
+      <span class="icon-bar"></span>
+    </button>
+    <a class="navbar-brand" href="/index.html">Accumulo</a>
+  </div>
+  <div class="collapse navbar-collapse" id="navbar-items">
+  <ul class="nav navbar-nav">
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Project <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li id="nav_index"><a href="/index.html">Home</a></li>
+<li id="nav_downloads"><a href="/downloads">Downloads</a></li>
+<li id="nav_features"><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0"><i class="fa fa-external-link"></i> License</a></li>
+</ul>
+</li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Community <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li id="nav_getinvolved"><a href="/get_involved.html">Get Involved</a></li>
+<li id="nav_mailinglists"><a href="/mailing_list.html">Mailing Lists</a></li>
+<li id="nav_people"><a href="/people.html">People</a></li>
+<li id="nav_blog"><a href="https://blogs.apache.org/accumulo/">Blog</a></li>
+<li class="divider"></li>
+<li class="dropdown-header">Governance</li>
+<li id="nav_bylaws"><a href="/bylaws.html">Bylaws</a></li>
+<li id="nav_consensusbuilding"><a href="/governance/consensusBuilding.html">Consensus Building</a></li>
+<li id="nav_lazyconsensus"><a href="/governance/lazyConsensus.html">Lazy Consensus</a></li>
+<li id="nav_releasing"><a href="/governance/releasing.html">Releasing</a></li>
+<li id="nav_voting"><a href="/governance/voting.html">Voting</a></li>
+</ul>
+</li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Development <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li id="nav_source"><a href="/source.html">Source &amp; Guide</a></li>
+<li id="nav_git"><a href="/git.html">Git Workflow</a></li>
+<li id="nav_versioning"><a href="/versioning.html">Versioning</a></li>
+<li id="nav_contrib"><a href="/contrib.html">Contrib Projects</a></li>
+<li id="nav_rb"><a href="/rb.html">Review Board</a></li>
+<li id="nav_releasing"><a href="/releasing.html">Making Releases</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo"><i class="fa fa-external-link"></i> Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/"><i class="fa fa-external-link"></i> Builds</a></li>
+</ul>
+</li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Documentation <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li class="dropdown-header">Manual</li>
+<li><a href="/1.5/accumulo_user_manual.html">1.5</a></li>
+<li><a href="/1.6/accumulo_user_manual.html">1.6</a></li>
+<li class="divider"></li>
+<li class="dropdown-header">Javadoc</li>
+<li><a href="/1.5/apidocs">1.5</a></li>
+<li><a href="/1.6/apidocs">1.6</a></li>
+<li class="divider"></li>
+<li class="dropdown-header">Examples</li>
+<li id="nav_examples_1_5"><a href="/1.5/examples">1.5</a></li>
+<li id="nav_examples_1_6"><a href="/1.6/examples">1.6</a></li>
+<li class="divider"></li>
+<li id="old_documentation"><a href="/old_documentation.html">Docs for Older Verisons</a></li>
+<li id="nav_screenshots"><a href="/screenshots.html">Screenshots</a></li>
+<li id="nav_papers"><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li id="nav_glossary"><a href="/glossary.html">Glossary</a></li>
+</ul>
+</li>
+	<li class="dropdown">
+	  <a class="dropdown-toggle" data-toggle="dropdown" href="#">Release Notes <span class="caret"></span></a>
+      <ul class="dropdown-menu">
+		  <li><a href="/release_notes/1.7.0.html">1.7.0</a></li>
+          <li class="divider"></li>
+		  <li><a href="/release_notes/1.6.2.html">1.6.2</a></li>
+		  <li><a href="/release_notes/1.6.1.html">1.6.1</a></li>
+          <li class="divider"></li>
+		  <li><a href="/release_notes/1.5.2.html">1.5.2</a></li>
+		  <li><a href="/release_notes/1.5.1.html">1.5.1</a></li>
+          <li class="divider"></li>
+		  <li><a href="/release_notes/">Archives</a></li>
+		</ul>
+    </li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        ASF Links <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li><a href="http://www.apache.org"><i class="fa fa-external-link"></i> Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html"><i class="fa fa-external-link"></i> Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/"><i class="fa fa-external-link"></i> Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html"><i class="fa fa-external-link"></i> Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/policies/conduct.html"><i class="fa fa-external-link"></i> Code of Conduct</a></li>
+</ul>
+</li>
+</ul>
+
+<form method="GET" action="http://search-hadoop.com/" class="navbar-form navbar-right" role="search">
+  <div class="form-group">
+    <input type="text" name="q" class="form-control" placeholder="Search"/>
+    <input type="hidden" name="fc_project" value="Accumulo"/>
+  </div>
+  <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
+</form>
+  </div>
+
+</div>
+</nav>
+
+
+<div class="container-fluid">
+<div class="row">
+  <div class="col-md-2" id="sidebar">
+  <div style="text-align: center">
+    <a href="/index.html"><img id="logo" alt="Apache Accumulo &trade;" class="img-responsive" src="/images/accumulo-logo.png"/></a>
+    <br>
+Latest 1.6 release: <strong>1.6.2</strong><br>
+Latest 1.5 release: <strong>1.5.2</strong><br>
+    <br>
+    <a id="download-button-sidebar" class="btn btn-success btn-block" href="/downloads/" role="button">Download</a>
+  </div>
+    <hr>
+<table class="table" id="sociallinks">
+<tr><td><img src="/images/Twitter_logo_blue.png" style="height: 1em"></td><td><a href="https://twitter.com/apacheaccumulo">@ApacheAccumulo</a></td></tr>
+<tr><td><img src="/images/InBug-16px_0.png"></td><td><a href="https://www.linkedin.com/groups/Apache-Accumulo-Professionals-4554913">Apache Accumulo Professionals</a></td></tr>
+<tr><td><img src="/images/GitHub-Mark-32px.png" style="height: 1em"></td><td><a href="https://github.com/apache/accumulo">apache / accumulo</a></td></tr>
+<tr><td><span class="glyphicon glyphicon-comment"></span></td><td><a href="irc://chat.freenode.net/accumulo">#accumulo @ freenode</a></td></tr>
+<tr><td><img src="/favicon.png" width="16" /></td><td><a href="http://blogs.apache.org/accumulo">Apache Accumulo Blog</a></td></tr>
+</table>
+<hr>
+<a id="accumulo-summit-logo" href="http://accumulosummit.com/"><img alt="Accumulo Summit" class="img-responsive" src="/images/accumulo-summit.png"></a>
+  </div>
+  <div class="col-md-8 col-md-offset-1">
+<!--
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo &trade;" src="/images/accumulo-logo.png"/>
+  </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="n">hadoop</span> <span class="n">fs</span> <span class="o">-</span><span class="n">copyFromLocal</span> $<span class="n">ACCUMULO_HOME</span><span class="o">/</span><span class="n">README</span> <span class="o">/</span><span class="n">user</span><span class="o">/</span><span class="n">username</span><span class="o">/</span><span class="n">wc</span><span class="o">/</span><span class="n">Accumulo</span><span class="p">.</span><span class="n">README</span>
+$ <span class="n">hadoop</span> <span class="n">fs</span> <span class="o">-</span><span class="n">ls</span> <span class="o">/</span><span class="n">user</span><span class="o">/</span><span class="n">username</span><span class="o">/</span><span class="n">wc</span>
+<span class="n">Found</span> 1 <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>   2 <span class="n">username</span> <span class="n">supergroup</span>       9359 2009<span class="o">-</span>07<span class="o">-</span>15 17<span class="p">:</span>54 <span class="o">/</span><span class="n">user</span><span class="o">/</span><span class="n">username</span><span class="o">/</span><span class="n">wc</span><span class="o">/</span><span class="n">Accumulo</span><span class="p">.</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="o">./</span><span class="n">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="p">:</span> 1<span class="p">.</span>6<span class="p">.</span>0
+<span class="o">-</span> <span class="n">instance</span> <span class="n">name</span><span class="p">:</span> <span class="n">instance</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">id</span><span class="p">:</span> 00000000<span class="o">-</span>0000<span class="o">-</span>0000<span class="o">-</span>0000<span class="o">-</span>000000000000
+<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="p">@</span><span class="n">instance</span><span class="o">&gt;</span> <span class="n">createtable</span> <span class="n">wordCount</span>
+<span class="n">username</span><span class="p">@</span><span class="n">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="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">accumulo</span><span class="p">.</span><span class="n">core</span><span class="p">.</span><span class="n">iterators</span><span class="p">.</span><span class="n">user</span><span class="p">.</span><span class="n">SummingCombiner</span> <span class="o">-</span><span class="n">p</span> 10 <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="n">and</span> <span class="n">adds</span> <span class="n">them</span> <span class="n">together</span><span class="p">.</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="n">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="k">otherwise</span> <span class="n">leave</span> <span class="n">blank</span><span class="p">.</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="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="c">%&lt;hex&gt;.: 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="p">.</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="o">&lt;</span><span class="n">TRUE</span><span class="o">|</span><span class="n">FALSE</span><span class="o">&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="o">&lt;</span><span class="n">VARLEN</span><span class="o">|</span><span class="n">FIXEDLEN</span><span class="o">|</span><span class="n">STRING</span><span class="o">|</span><span class="n">fullClassName</span><span class="o">&gt;</span><span class="p">:</span> <span class="n">STRING</span>
+<span class="n">username</span><span class="p">@</span><span class="n">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="n">bin</span><span class="o">/</span><span class="n">tool</span><span class="p">.</span><span class="n">sh</span> <span class="n">lib</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="p">.</span><span class="n">jar</span> <span class="n">org</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">accumulo</span><span class="p">.</span><span class="n">examples</span><span class="p">.</span><span class="n">simple</span><span class="p">.</span><span class="n">mapreduce</span><span class="p">.</span><span class="n">WordCount</span> <span class="o">-</span><span class="nb">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="o">/</span>
 <span class="n">user</span><span class="o">/</span><span class="n">username</span><span class="o">/</span><span class="n">wc</span> <span class="o">-</span><span class="n">t</span> <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>
+
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>11 <span class="n">INFO</span> <span class="n">input</span><span class="p">.</span><span class="n">FileInputFormat</span><span class="p">:</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> 1
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>12 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span> <span class="n">Running</span> <span class="n">job</span><span class="p">:</span> <span class="n">job_201102071740_0003</span>
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>13 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span>  <span class="n">map</span> 0<span class="c">% reduce 0%</span>
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>20 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span>  <span class="n">map</span> 100<span class="c">% reduce 0%</span>
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>22 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span> <span class="n">Job</span> <span class="n">complete</span><span class="p">:</span> <span class="n">job_201102071740_0003</span>
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>22 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span> <span class="n">Counters</span><span class="p">:</span> 6
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>22 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span>   <span class="n">Job</span> <span class="n">Counters</span>
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>22 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span>     <span class="n">Launched</span> <span class="n">map</span> <span class="n">tasks</span><span class="p">=</span>1
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>22 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span>     <span class="n">Data</span><span class="o">-</span><span class="n">local</span> <span class="n">map</span> <span class="n">tasks</span><span class="p">=</span>1
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>22 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span>   <span class="n">FileSystemCounters</span>
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>22 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span>     <span class="n">HDFS_BYTES_READ</span><span class="p">=</span>10487
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>22 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span>   <span class="n">Map</span><span class="o">-</span><span class="n">Reduce</span> <span class="n">Framework</span>
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>22 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span>     <span class="n">Map</span> <span class="n">input</span> <span class="n">records</span><span class="p">=</span>255
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>22 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span>     <span class="n">Spilled</span> <span class="n">Records</span><span class="p">=</span>0
+11<span class="o">/</span>02<span class="o">/</span>07 18<span class="p">:</span>20<span class="p">:</span>22 <span class="n">INFO</span> <span class="n">mapred</span><span class="p">.</span><span class="n">JobClient</span><span class="p">:</span>     <span class="n">Map</span> <span class="n">output</span> <span class="n">records</span><span class="p">=</span>1452
+</pre></div>
+
+
+<p>After the map reduce job completes, query the accumulo table to see word
+counts.</p>
+<div class="codehilite"><pre>$ <span class="o">./</span><span class="n">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="p">@</span><span class="n">instance</span><span class="o">&gt;</span> <span class="n">table</span> <span class="n">wordCount</span>
+<span class="n">username</span><span class="p">@</span><span class="n">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</span><span class="p">:</span>20080906 <span class="p">[]</span>    75
+<span class="n">their</span> <span class="n">count</span><span class="p">:</span>20080906 <span class="p">[]</span>    2
+<span class="n">them</span> <span class="n">count</span><span class="p">:</span>20080906 <span class="p">[]</span>    1
+<span class="n">then</span> <span class="n">count</span><span class="p">:</span>20080906 <span class="p">[]</span>    1
+<span class="n">there</span> <span class="n">count</span><span class="p">:</span>20080906 <span class="p">[]</span>    1
+<span class="n">these</span> <span class="n">count</span><span class="p">:</span>20080906 <span class="p">[]</span>    3
+<span class="n">this</span> <span class="n">count</span><span class="p">:</span>20080906 <span class="p">[]</span>    6
+<span class="n">through</span> <span class="n">count</span><span class="p">:</span>20080906 <span class="p">[]</span>    1
+<span class="n">time</span> <span class="n">count</span><span class="p">:</span>20080906 <span class="p">[]</span>    3
+<span class="n">time</span><span class="p">.</span> <span class="n">count</span><span class="p">:</span>20080906 <span class="p">[]</span>    1
+<span class="n">to</span> <span class="n">count</span><span class="p">:</span>20080906 <span class="p">[]</span>    27
+<span class="n">total</span> <span class="n">count</span><span class="p">:</span>20080906 <span class="p">[]</span>    1
+<span class="n">tserver</span><span class="p">,</span> <span class="n">count</span><span class="p">:</span>20080906 <span class="p">[]</span>    1
+<span class="n">tserver</span><span class="p">.</span><span class="n">compaction</span><span class="p">.</span><span class="n">major</span><span class="p">.</span><span class="n">concurrent</span><span class="p">.</span><span class="n">max</span> <span class="n">count</span><span class="p">:</span>20080906 <span class="p">[]</span>    1
+<span class="p">...</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>
+<p>One more example available is
+org.apache.accumulo.examples.simple.mapreduce.TokenFileWordCount.
+The TokenFileWordCount example works exactly the same as the WordCount example
+explained above except that it uses a token file rather than giving the
+password directly to the map-reduce job (this avoids having the password
+displayed in the job's configuration which is world-readable).</p>
+<p>To create a token file, use the create-token utility</p>
+<div class="codehilite"><pre>$ <span class="o">./</span><span class="n">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">create</span><span class="o">-</span><span class="n">token</span>
+</pre></div>
+
+
+<p>It defaults to creating a PasswordToken, but you can specify the token class
+with -tc (requires the fully qualified class name). Based on the token class,
+it will prompt you for each property required to create the token.</p>
+<p>The last value it prompts for is a local filename to save to. If this file
+exists, it will append the new token to the end. Multiple tokens can exist in
+a file, but only the first one for each user will be recognized.</p>
+<p>Rather than waiting for the prompts, you can specify some options when calling
+create-token, for example</p>
+<div class="codehilite"><pre>$ <span class="o">./</span><span class="n">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">create</span><span class="o">-</span><span class="n">token</span> <span class="o">-</span><span class="n">u</span> <span class="n">root</span> <span class="o">-</span><span class="n">p</span> <span class="n">secret</span> <span class="o">-</span><span class="n">f</span> <span class="n">root</span><span class="p">.</span><span class="n">pw</span>
+</pre></div>
+
+
+<p>would create a token file containing a PasswordToken for
+user 'root' with password 'secret' and saved to 'root.pw'</p>
+<p>This local file needs to be uploaded to hdfs to be used with the
+map-reduce job. For example, if the file were 'root.pw' in the local directory:</p>
+<div class="codehilite"><pre>$ <span class="n">hadoop</span> <span class="n">fs</span> <span class="o">-</span><span class="n">put</span> <span class="n">root</span><span class="p">.</span><span class="n">pw</span> <span class="n">root</span><span class="p">.</span><span class="n">pw</span>
+</pre></div>
+
+
+<p>This would put 'root.pw' in the user's home directory in hdfs.</p>
+<p>Because the basic WordCount example uses Opts to parse its arguments
+(which extends ClientOnRequiredTable), you can use a token file with
+the basic WordCount example by calling the same command as explained above
+except replacing the password with the token file (rather than -p, use -tf).</p>
+<div class="codehilite"><pre>$ <span class="o">./</span><span class="n">bin</span><span class="o">/</span><span class="n">tool</span><span class="p">.</span><span class="n">sh</span> <span class="n">lib</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="p">.</span><span class="n">jar</span> <span class="n">org</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">accumulo</span><span class="p">.</span><span class="n">examples</span><span class="p">.</span><span class="n">simple</span><span class="p">.</span><span class="n">mapreduce</span><span class="p">.</span><span class="n">WordCount</span> <span class="o">-</span><span class="nb">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="o">/</span><span class="n">user</span><span class="o">/</span><span class="n">username</span><span class="o">/</span><span class="n">wc</span> <span class="o">-</span><span class="n">t</span> <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">tf</span> <span class="n">tokenfile</span>
+</pre></div>
+
+
+<p>In the above examples, username was 'root' and tokenfile was 'root.pw'</p>
+<p>However, if you don't want to use the Opts class to parse arguments,
+the TokenFileWordCount is an example of using the token file manually.</p>
+<div class="codehilite"><pre>$ <span class="n">bin</span><span class="o">/</span><span class="n">tool</span><span class="p">.</span><span class="n">sh</span> <span class="n">lib</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="p">.</span><span class="n">jar</span> <span class="n">org</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">accumulo</span><span class="p">.</span><span class="n">examples</span><span class="p">.</span><span class="n">simple</span><span class="p">.</span><span class="n">mapreduce</span><span class="p">.</span><span class="n">TokenFileWordCount</span> <span class="n">instance</span> <span class="n">zookeepers</span> <span class="n">username</span> <span class="n">tokenfile</span> <span class="o">/</span><span class="n">user</span><span class="o">/</span><span class="n">username</spa
 n><span class="o">/</span><span class="n">wc</span> <span class="n">wordCount</span>
+</pre></div>
+
+
+<p>The results should be the same as the WordCount example except that the
+authentication token was not stored in the configuration. It was instead
+stored in a file that the map-reduce job pulled into the distributed cache.
+(If you ran either of these on the same table right after the
+WordCount example, then the resulting counts should just double.)</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-2014 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.<br />
+        Site created with <a href="http://getbootstrap.com/">Bootstrap</a> including icons from <a href="http://glyphicons.com/">GLYPHICONS</a> and <a href="http://fontawesome.io/">Font Awesome</a>.
+      </p>
+    </div> 
+  </div>
+  </div>
+
+</div>
+</div>
+
+<script type="text/javascript">
+
+</script>
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.7/examples/maxmutation.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.7/examples/maxmutation.html (added)
+++ websites/staging/accumulo/trunk/content/1.7/examples/maxmutation.html Mon May 18 04:27:53 2015
@@ -0,0 +1,264 @@
+<!DOCTYPE html>
+<html lang="en">
+<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.
+-->
+  <meta charset="utf-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1">
+  <link href="/css/bootstrap.min.css" rel="stylesheet">
+  <link href="/css/bootstrap-theme.min.css" rel="stylesheet">
+  <link href="/css/dataTables.bootstrap.css" rel="stylesheet">
+  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+  <!--[if lt IE 9]>
+    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
+  <![endif]-->
+  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
+  <script src="/js/bootstrap.min.js"></script>
+  <script src="/js/jquery.dataTables.min.js"></script>
+  <script src="/js/dataTables.bootstrap.js"></script>
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
+  <title>Apache Accumulo MaxMutation Constraints Example</title>
+  
+<script>
+  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+  ga('create', 'UA-50934829-1', 'apache.org');
+  ga('send', 'pageview');
+
+</script>
+
+</head>
+
+<body>
+<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
+<div class="container-fluid">
+  <div class="navbar-header">
+    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-items">
+      <span class="sr-only">Toggle navigation</span>
+      <span class="icon-bar"></span>
+      <span class="icon-bar"></span>
+      <span class="icon-bar"></span>
+    </button>
+    <a class="navbar-brand" href="/index.html">Accumulo</a>
+  </div>
+  <div class="collapse navbar-collapse" id="navbar-items">
+  <ul class="nav navbar-nav">
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Project <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li id="nav_index"><a href="/index.html">Home</a></li>
+<li id="nav_downloads"><a href="/downloads">Downloads</a></li>
+<li id="nav_features"><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0"><i class="fa fa-external-link"></i> License</a></li>
+</ul>
+</li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Community <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li id="nav_getinvolved"><a href="/get_involved.html">Get Involved</a></li>
+<li id="nav_mailinglists"><a href="/mailing_list.html">Mailing Lists</a></li>
+<li id="nav_people"><a href="/people.html">People</a></li>
+<li id="nav_blog"><a href="https://blogs.apache.org/accumulo/">Blog</a></li>
+<li class="divider"></li>
+<li class="dropdown-header">Governance</li>
+<li id="nav_bylaws"><a href="/bylaws.html">Bylaws</a></li>
+<li id="nav_consensusbuilding"><a href="/governance/consensusBuilding.html">Consensus Building</a></li>
+<li id="nav_lazyconsensus"><a href="/governance/lazyConsensus.html">Lazy Consensus</a></li>
+<li id="nav_releasing"><a href="/governance/releasing.html">Releasing</a></li>
+<li id="nav_voting"><a href="/governance/voting.html">Voting</a></li>
+</ul>
+</li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Development <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li id="nav_source"><a href="/source.html">Source &amp; Guide</a></li>
+<li id="nav_git"><a href="/git.html">Git Workflow</a></li>
+<li id="nav_versioning"><a href="/versioning.html">Versioning</a></li>
+<li id="nav_contrib"><a href="/contrib.html">Contrib Projects</a></li>
+<li id="nav_rb"><a href="/rb.html">Review Board</a></li>
+<li id="nav_releasing"><a href="/releasing.html">Making Releases</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo"><i class="fa fa-external-link"></i> Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/"><i class="fa fa-external-link"></i> Builds</a></li>
+</ul>
+</li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Documentation <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li class="dropdown-header">Manual</li>
+<li><a href="/1.5/accumulo_user_manual.html">1.5</a></li>
+<li><a href="/1.6/accumulo_user_manual.html">1.6</a></li>
+<li class="divider"></li>
+<li class="dropdown-header">Javadoc</li>
+<li><a href="/1.5/apidocs">1.5</a></li>
+<li><a href="/1.6/apidocs">1.6</a></li>
+<li class="divider"></li>
+<li class="dropdown-header">Examples</li>
+<li id="nav_examples_1_5"><a href="/1.5/examples">1.5</a></li>
+<li id="nav_examples_1_6"><a href="/1.6/examples">1.6</a></li>
+<li class="divider"></li>
+<li id="old_documentation"><a href="/old_documentation.html">Docs for Older Verisons</a></li>
+<li id="nav_screenshots"><a href="/screenshots.html">Screenshots</a></li>
+<li id="nav_papers"><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li id="nav_glossary"><a href="/glossary.html">Glossary</a></li>
+</ul>
+</li>
+	<li class="dropdown">
+	  <a class="dropdown-toggle" data-toggle="dropdown" href="#">Release Notes <span class="caret"></span></a>
+      <ul class="dropdown-menu">
+		  <li><a href="/release_notes/1.7.0.html">1.7.0</a></li>
+          <li class="divider"></li>
+		  <li><a href="/release_notes/1.6.2.html">1.6.2</a></li>
+		  <li><a href="/release_notes/1.6.1.html">1.6.1</a></li>
+          <li class="divider"></li>
+		  <li><a href="/release_notes/1.5.2.html">1.5.2</a></li>
+		  <li><a href="/release_notes/1.5.1.html">1.5.1</a></li>
+          <li class="divider"></li>
+		  <li><a href="/release_notes/">Archives</a></li>
+		</ul>
+    </li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        ASF Links <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li><a href="http://www.apache.org"><i class="fa fa-external-link"></i> Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html"><i class="fa fa-external-link"></i> Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/"><i class="fa fa-external-link"></i> Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html"><i class="fa fa-external-link"></i> Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/policies/conduct.html"><i class="fa fa-external-link"></i> Code of Conduct</a></li>
+</ul>
+</li>
+</ul>
+
+<form method="GET" action="http://search-hadoop.com/" class="navbar-form navbar-right" role="search">
+  <div class="form-group">
+    <input type="text" name="q" class="form-control" placeholder="Search"/>
+    <input type="hidden" name="fc_project" value="Accumulo"/>
+  </div>
+  <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
+</form>
+  </div>
+
+</div>
+</nav>
+
+
+<div class="container-fluid">
+<div class="row">
+  <div class="col-md-2" id="sidebar">
+  <div style="text-align: center">
+    <a href="/index.html"><img id="logo" alt="Apache Accumulo &trade;" class="img-responsive" src="/images/accumulo-logo.png"/></a>
+    <br>
+Latest 1.6 release: <strong>1.6.2</strong><br>
+Latest 1.5 release: <strong>1.5.2</strong><br>
+    <br>
+    <a id="download-button-sidebar" class="btn btn-success btn-block" href="/downloads/" role="button">Download</a>
+  </div>
+    <hr>
+<table class="table" id="sociallinks">
+<tr><td><img src="/images/Twitter_logo_blue.png" style="height: 1em"></td><td><a href="https://twitter.com/apacheaccumulo">@ApacheAccumulo</a></td></tr>
+<tr><td><img src="/images/InBug-16px_0.png"></td><td><a href="https://www.linkedin.com/groups/Apache-Accumulo-Professionals-4554913">Apache Accumulo Professionals</a></td></tr>
+<tr><td><img src="/images/GitHub-Mark-32px.png" style="height: 1em"></td><td><a href="https://github.com/apache/accumulo">apache / accumulo</a></td></tr>
+<tr><td><span class="glyphicon glyphicon-comment"></span></td><td><a href="irc://chat.freenode.net/accumulo">#accumulo @ freenode</a></td></tr>
+<tr><td><img src="/favicon.png" width="16" /></td><td><a href="http://blogs.apache.org/accumulo">Apache Accumulo Blog</a></td></tr>
+</table>
+<hr>
+<a id="accumulo-summit-logo" href="http://accumulosummit.com/"><img alt="Accumulo Summit" class="img-responsive" src="/images/accumulo-summit.png"></a>
+  </div>
+  <div class="col-md-8 col-md-offset-1">
+<!--
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo &trade;" src="/images/accumulo-logo.png"/>
+  </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="o">./</span><span class="n">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="p">:</span> 1<span class="p">.</span>6<span class="p">.</span>0
+<span class="o">-</span> <span class="n">instance</span> <span class="n">name</span><span class="p">:</span> <span class="n">instance</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">id</span><span class="p">:</span> 00000000<span class="o">-</span>0000<span class="o">-</span>0000<span class="o">-</span>0000<span class="o">-</span>000000000000
+<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="p">@</span><span class="n">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="p">@</span><span class="n">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="p">.</span><span class="n">constraint</span><span class="p">.</span>1<span class="p">=</span><span class="n">org</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">accumulo</span><span class="p">.</span><span class="n">examples</span><span class="p">.</span><span class="n">simple</span><span class="p">.</span><span class="n">constraints</span><span class="p">.</span><span class="n">MaxMutationSize</span>
+<span class="n">username</span><span class="p">@</span><span class="n">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="o">./</span><span class="n">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">org</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">accumulo</span><span class="p">.</span><span class="n">test</span><span class="p">.</span><span class="n">TestIngest</span> <span class="o">-</span><span class="nb">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> 1 <span class="o">--</span><span class="n">cols</span> 10000
+<span class="n">ERROR</span> <span class="p">:</span> <span class="n">Constraint</span> <span class="n">violates</span> <span class="p">:</span> <span class="n">ConstraintViolationSummary</span><span class="p">(</span><span class="n">constrainClass</span><span class="p">:</span><span class="n">org</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">accumulo</span><span class="p">.</span><span class="n">examples</span><span class="p">.</span><span class="n">simple</span><span class="p">.</span><span class="n">constraints</span><span class="p">.</span><span class="n">MaxMutationSize</span><span class="p">,</span> <span class="n">violationCode</span><span class="p">:</span>0<span class="p">,</span> <span class="n">violationDescription</span><span class="p">:</span><span class="n">mutation</span> <span class="n">exceeded</span> <span class="n">maximum</span> <span class="nb">size</span> <span class="n">of</span> 188160<span class="p">,</spa
 n> <span class="n">numberOfViolatingMutations</span><span class="p">:</span>1<span class="p">)</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-2014 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.<br />
+        Site created with <a href="http://getbootstrap.com/">Bootstrap</a> including icons from <a href="http://glyphicons.com/">GLYPHICONS</a> and <a href="http://fontawesome.io/">Font Awesome</a>.
+      </p>
+    </div> 
+  </div>
+  </div>
+
+</div>
+</div>
+
+<script type="text/javascript">
+
+</script>
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.7/examples/regex.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.7/examples/regex.html (added)
+++ websites/staging/accumulo/trunk/content/1.7/examples/regex.html Mon May 18 04:27:53 2015
@@ -0,0 +1,273 @@
+<!DOCTYPE html>
+<html lang="en">
+<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.
+-->
+  <meta charset="utf-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1">
+  <link href="/css/bootstrap.min.css" rel="stylesheet">
+  <link href="/css/bootstrap-theme.min.css" rel="stylesheet">
+  <link href="/css/dataTables.bootstrap.css" rel="stylesheet">
+  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+  <!--[if lt IE 9]>
+    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
+  <![endif]-->
+  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
+  <script src="/js/bootstrap.min.js"></script>
+  <script src="/js/jquery.dataTables.min.js"></script>
+  <script src="/js/dataTables.bootstrap.js"></script>
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
+  <title>Apache Accumulo Regex Example</title>
+  
+<script>
+  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+  ga('create', 'UA-50934829-1', 'apache.org');
+  ga('send', 'pageview');
+
+</script>
+
+</head>
+
+<body>
+<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
+<div class="container-fluid">
+  <div class="navbar-header">
+    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-items">
+      <span class="sr-only">Toggle navigation</span>
+      <span class="icon-bar"></span>
+      <span class="icon-bar"></span>
+      <span class="icon-bar"></span>
+    </button>
+    <a class="navbar-brand" href="/index.html">Accumulo</a>
+  </div>
+  <div class="collapse navbar-collapse" id="navbar-items">
+  <ul class="nav navbar-nav">
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Project <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li id="nav_index"><a href="/index.html">Home</a></li>
+<li id="nav_downloads"><a href="/downloads">Downloads</a></li>
+<li id="nav_features"><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0"><i class="fa fa-external-link"></i> License</a></li>
+</ul>
+</li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Community <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li id="nav_getinvolved"><a href="/get_involved.html">Get Involved</a></li>
+<li id="nav_mailinglists"><a href="/mailing_list.html">Mailing Lists</a></li>
+<li id="nav_people"><a href="/people.html">People</a></li>
+<li id="nav_blog"><a href="https://blogs.apache.org/accumulo/">Blog</a></li>
+<li class="divider"></li>
+<li class="dropdown-header">Governance</li>
+<li id="nav_bylaws"><a href="/bylaws.html">Bylaws</a></li>
+<li id="nav_consensusbuilding"><a href="/governance/consensusBuilding.html">Consensus Building</a></li>
+<li id="nav_lazyconsensus"><a href="/governance/lazyConsensus.html">Lazy Consensus</a></li>
+<li id="nav_releasing"><a href="/governance/releasing.html">Releasing</a></li>
+<li id="nav_voting"><a href="/governance/voting.html">Voting</a></li>
+</ul>
+</li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Development <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li id="nav_source"><a href="/source.html">Source &amp; Guide</a></li>
+<li id="nav_git"><a href="/git.html">Git Workflow</a></li>
+<li id="nav_versioning"><a href="/versioning.html">Versioning</a></li>
+<li id="nav_contrib"><a href="/contrib.html">Contrib Projects</a></li>
+<li id="nav_rb"><a href="/rb.html">Review Board</a></li>
+<li id="nav_releasing"><a href="/releasing.html">Making Releases</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo"><i class="fa fa-external-link"></i> Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/"><i class="fa fa-external-link"></i> Builds</a></li>
+</ul>
+</li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        Documentation <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li class="dropdown-header">Manual</li>
+<li><a href="/1.5/accumulo_user_manual.html">1.5</a></li>
+<li><a href="/1.6/accumulo_user_manual.html">1.6</a></li>
+<li class="divider"></li>
+<li class="dropdown-header">Javadoc</li>
+<li><a href="/1.5/apidocs">1.5</a></li>
+<li><a href="/1.6/apidocs">1.6</a></li>
+<li class="divider"></li>
+<li class="dropdown-header">Examples</li>
+<li id="nav_examples_1_5"><a href="/1.5/examples">1.5</a></li>
+<li id="nav_examples_1_6"><a href="/1.6/examples">1.6</a></li>
+<li class="divider"></li>
+<li id="old_documentation"><a href="/old_documentation.html">Docs for Older Verisons</a></li>
+<li id="nav_screenshots"><a href="/screenshots.html">Screenshots</a></li>
+<li id="nav_papers"><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li id="nav_glossary"><a href="/glossary.html">Glossary</a></li>
+</ul>
+</li>
+	<li class="dropdown">
+	  <a class="dropdown-toggle" data-toggle="dropdown" href="#">Release Notes <span class="caret"></span></a>
+      <ul class="dropdown-menu">
+		  <li><a href="/release_notes/1.7.0.html">1.7.0</a></li>
+          <li class="divider"></li>
+		  <li><a href="/release_notes/1.6.2.html">1.6.2</a></li>
+		  <li><a href="/release_notes/1.6.1.html">1.6.1</a></li>
+          <li class="divider"></li>
+		  <li><a href="/release_notes/1.5.2.html">1.5.2</a></li>
+		  <li><a href="/release_notes/1.5.1.html">1.5.1</a></li>
+          <li class="divider"></li>
+		  <li><a href="/release_notes/">Archives</a></li>
+		</ul>
+    </li>
+
+    <li class="dropdown">
+      <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+        ASF Links <span class="caret"></span>
+      </a>
+<ul class="dropdown-menu">
+<li><a href="http://www.apache.org"><i class="fa fa-external-link"></i> Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html"><i class="fa fa-external-link"></i> Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/"><i class="fa fa-external-link"></i> Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html"><i class="fa fa-external-link"></i> Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/policies/conduct.html"><i class="fa fa-external-link"></i> Code of Conduct</a></li>
+</ul>
+</li>
+</ul>
+
+<form method="GET" action="http://search-hadoop.com/" class="navbar-form navbar-right" role="search">
+  <div class="form-group">
+    <input type="text" name="q" class="form-control" placeholder="Search"/>
+    <input type="hidden" name="fc_project" value="Accumulo"/>
+  </div>
+  <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
+</form>
+  </div>
+
+</div>
+</nav>
+
+
+<div class="container-fluid">
+<div class="row">
+  <div class="col-md-2" id="sidebar">
+  <div style="text-align: center">
+    <a href="/index.html"><img id="logo" alt="Apache Accumulo &trade;" class="img-responsive" src="/images/accumulo-logo.png"/></a>
+    <br>
+Latest 1.6 release: <strong>1.6.2</strong><br>
+Latest 1.5 release: <strong>1.5.2</strong><br>
+    <br>
+    <a id="download-button-sidebar" class="btn btn-success btn-block" href="/downloads/" role="button">Download</a>
+  </div>
+    <hr>
+<table class="table" id="sociallinks">
+<tr><td><img src="/images/Twitter_logo_blue.png" style="height: 1em"></td><td><a href="https://twitter.com/apacheaccumulo">@ApacheAccumulo</a></td></tr>
+<tr><td><img src="/images/InBug-16px_0.png"></td><td><a href="https://www.linkedin.com/groups/Apache-Accumulo-Professionals-4554913">Apache Accumulo Professionals</a></td></tr>
+<tr><td><img src="/images/GitHub-Mark-32px.png" style="height: 1em"></td><td><a href="https://github.com/apache/accumulo">apache / accumulo</a></td></tr>
+<tr><td><span class="glyphicon glyphicon-comment"></span></td><td><a href="irc://chat.freenode.net/accumulo">#accumulo @ freenode</a></td></tr>
+<tr><td><img src="/favicon.png" width="16" /></td><td><a href="http://blogs.apache.org/accumulo">Apache Accumulo Blog</a></td></tr>
+</table>
+<hr>
+<a id="accumulo-summit-logo" href="http://accumulosummit.com/"><img alt="Accumulo Summit" class="img-responsive" src="/images/accumulo-summit.png"></a>
+  </div>
+  <div class="col-md-8 col-md-offset-1">
+<!--
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo &trade;" src="/images/accumulo-logo.png"/>
+  </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="o">./</span><span class="n">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="p">:</span> 1<span class="p">.</span>6<span class="p">.</span>0
+<span class="o">-</span> <span class="n">instance</span> <span class="n">name</span><span class="p">:</span> <span class="n">instance</span>
+<span class="o">-</span> <span class="n">instance</span> <span class="n">id</span><span class="p">:</span> 00000000<span class="o">-</span>0000<span class="o">-</span>0000<span class="o">-</span>0000<span class="o">-</span>000000000000
+<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="p">@</span><span class="n">instance</span><span class="o">&gt;</span> <span class="n">createtable</span> <span class="n">input</span>
+<span class="n">username</span><span class="p">@</span><span class="n">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="p">@</span><span class="n">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="p">@</span><span class="n">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="n">bin</span><span class="o">/</span><span class="n">tool</span><span class="p">.</span><span class="n">sh</span> <span class="n">lib</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="p">.</span><span class="n">jar</span> <span class="n">org</span><span class="p">.</span><span class="n">apache</span><span class="p">.</span><span class="n">accumulo</span><span class="p">.</span><span class="n">examples</span><span class="p">.</span><span class="n">simple</span><span class="p">.</span><span class="n">mapreduce</span><span class="p">.</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="nb">i</span> <span class="n">instance</span> <sp
 an class="o">-</span><span class="n">t</span> <span class="n">input</span> <span class="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="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">output</span>
+
+$ <span class="n">hadoop</span> <span class="n">fs</span> <span class="o">-</span><span class="n">ls</span> <span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">output</span>
+<span class="n">Found</span> 3 <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>   1 <span class="n">username</span> <span class="n">supergroup</span>          0 2013<span class="o">-</span>01<span class="o">-</span>10 14<span class="p">:</span>11 <span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">output</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>          0 2013<span class="o">-</span>01<span class="o">-</span>10 14<span class="p">:</span>10 <span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">output</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>   1 <span class="n">username</span> <span class="n">supergroup</span>         51 2013<span class="o">-</span>01<span class="o">-</span>10 14<span class="p">:</span>10 <span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">output</span><span class="o">/</span><span class="n">part</span><span class="o">-</span><span class="n">m</span><span class="o">-</span>00000
+</pre></div>
+
+
+<p>We can see the output of our little map-reduce job:</p>
+<div class="codehilite"><pre>$ <span class="n">hadoop</span> <span class="n">fs</span> <span class="o">-</span><span class="n">text</span> <span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">output</span><span class="o">/</span><span class="n">output</span><span class="o">/</span><span class="n">part</span><span class="o">-</span><span class="n">m</span><span class="o">-</span>00000
+<span class="n">dogrow</span> <span class="n">dogcf</span><span class="p">:</span><span class="n">dogcq</span> <span class="p">[]</span> 1357844987994 <span class="n">false</span>   <span class="n">dogvalue</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-2014 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.<br />
+        Site created with <a href="http://getbootstrap.com/">Bootstrap</a> including icons from <a href="http://glyphicons.com/">GLYPHICONS</a> and <a href="http://fontawesome.io/">Font Awesome</a>.
+      </p>
+    </div> 
+  </div>
+  </div>
+
+</div>
+</div>
+
+<script type="text/javascript">
+
+</script>
+</body>
+</html>



Mime
View raw message