accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r809758 [2/9] - in /websites/staging/accumulo/trunk/content: ./ accumulo/ accumulo/1.4/ accumulo/1.4/examples/ accumulo/1.4/user_manual/ accumulo/downloads/ accumulo/downloads/1.3.5/ accumulo/example/ accumulo/governance/ accumulo/user_manu...
Date Fri, 23 Mar 2012 19:08:14 GMT
Added: websites/staging/accumulo/trunk/content/accumulo/1.4/examples/constraints.html
==============================================================================
--- websites/staging/accumulo/trunk/content/accumulo/1.4/examples/constraints.html (added)
+++ websites/staging/accumulo/trunk/content/accumulo/1.4/examples/constraints.html Fri Mar 23 19:08:12 2012
@@ -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="/accumulo/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo 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(['_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="/accumulo">Home</a></li>
+<li><a href="http://incubator.apache.org/projects/accumulo.html">Incubator page</a></li>
+<li><a href="/accumulo/downloads/downloads.html">Downloads</a></li>
+<li><a href="/accumulo/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="/accumulo/get_involved.html">Get Involved</a></li>
+<li><a href="/accumulo/mailing_list.html">Mailing Lists</a></li>
+<li><a href="https://issues.apache.org/jira/secure/ConfigureReport.jspa?versionId=-2&amp;selectedProjectId=12312121&amp;reportKey=com.sourcelabs.jira.plugin.report.contributions%3Acontributionreport">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/accumulo/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-F/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/accumulo/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/accumulo/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/accumulo/1.4/examples">Examples 1.4</a></li>
+<li><a href="/accumulo/screenshots.html">Screenshots</a></li>
+<li><a href="/accumulo/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/accumulo/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/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo (Incubating)" src="/accumulo/images/accumulo-logo.png"/>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo Constraints Example</h1>
+    <p>This tutorial uses the following Java classes, which can be found in org.apache.accumulo.examples.simple.constraints in the simple-examples module:</p>
+<ul>
+<li>AlphaNumKeyConstraint.java - a constraint that requires alphanumeric keys</li>
+<li>NumericValueConstraint.java - a constraint that requires numeric string values</li>
+</ul>
+<p>This an example of how to create a table with constraints. Below a table is
+create with two example constraints.  One constraints does not allow non alpha
+numeric keys.  The other constraint does not allow non numeric values. Two
+inserts that violate these constraints are attempted and denied.  The scan at
+the end shows the inserts were not allowed. </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.4</span><span class="o">.</span><span class="n">x</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">testConstraints</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span> <span class="n">config</span> <span class="o">-</span><span class="n">t</span> <span class="n">testConstraints</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">NumericValueConstraint</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span> <span class="n">config</span> <span class="o">-</span><span class="n">t</span> <span class="n">testConstraints</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">.2</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">AlphaNumKeyConstraint</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">r1</span> <span class="n">cf1</span> <span class="n">cq1</span> <span class="mi">1111</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">r1</span> <span class="n">cf1</span> <span class="n">cq1</span> <span class="n">ABC</span>
+  <span class="n">Constraint</span> <span class="n">Failures:</span>
+      <span class="n">ConstraintViolationSummary</span><span class="p">(</span><span class="n">constrainClass: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">NumericValueConstraint</span><span class="p">,</span> <span class="n">violationCode:1</span><span class="p">,</span> <span class="n">violationDescription:Value</span> <span class="n">is</span> <span class="ow">not</span> <span class="n">numeric</span><span class="p">,</span> <span class="n">numberOfViolatingMutations:1</span><span class="p">)</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">r1</span><span class="o">!</span> <span class="n">cf1</span> <span class="n">cq1</span> <span class="n">ABC</span> 
+  <span class="n">Constraint</span> <span class="n">Failures:</span>
+      <span class="n">ConstraintViolationSummary</span><span class="p">(</span><span class="n">constrainClass: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">NumericValueConstraint</span><span class="p">,</span> <span class="n">violationCode:1</span><span class="p">,</span> <span class="n">violationDescription:Value</span> <span class="n">is</span> <span class="ow">not</span> <span class="n">numeric</span><span class="p">,</span> <span class="n">numberOfViolatingMutations:1</span><span class="p">)</span>
+      <span class="n">ConstraintViolationSummary</span><span class="p">(</span><span class="n">constrainClass: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">AlphaNumKeyConstraint</span><span class="p">,</span> <span class="n">violationCode:1</span><span class="p">,</span> <span class="n">violationDescription:Row</span> <span class="n">was</span> <span class="ow">not</span> <span class="n">alpha</span> <span class="n">numeric</span><span class="p">,</span> <span class="n">numberOfViolatingMutations:1</span><span class="p">)</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="n">r1</span> <span class="n">cf1:cq1</span> <span class="o">[]</span>    <span class="mi">1111</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">testConstraints</span><span class="o">&gt;</span>
+</pre></div>
+  </div>
+
+  <div id="footer">
+    <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 and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div> 
+    <a alt="Apache Incubator" href="http://incubator.apache.org">
+      <img id="asf-logo" alt="Apache Incubator" src="/accumulo/images/apache-incubator-logo.png" width="150"/>
+    </a>
+
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/accumulo/1.4/examples/dirlist.html
==============================================================================
--- websites/staging/accumulo/trunk/content/accumulo/1.4/examples/dirlist.html (added)
+++ websites/staging/accumulo/trunk/content/accumulo/1.4/examples/dirlist.html Fri Mar 23 19:08:12 2012
@@ -0,0 +1,199 @@
+<!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="/accumulo/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo File System Archive</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(['_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="/accumulo">Home</a></li>
+<li><a href="http://incubator.apache.org/projects/accumulo.html">Incubator page</a></li>
+<li><a href="/accumulo/downloads/downloads.html">Downloads</a></li>
+<li><a href="/accumulo/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="/accumulo/get_involved.html">Get Involved</a></li>
+<li><a href="/accumulo/mailing_list.html">Mailing Lists</a></li>
+<li><a href="https://issues.apache.org/jira/secure/ConfigureReport.jspa?versionId=-2&amp;selectedProjectId=12312121&amp;reportKey=com.sourcelabs.jira.plugin.report.contributions%3Acontributionreport">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/accumulo/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-F/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/accumulo/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/accumulo/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/accumulo/1.4/examples">Examples 1.4</a></li>
+<li><a href="/accumulo/screenshots.html">Screenshots</a></li>
+<li><a href="/accumulo/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/accumulo/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/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo (Incubating)" src="/accumulo/images/accumulo-logo.png"/>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo File System Archive</h1>
+    <p>This example stores filesystem information in accumulo.  The example stores the information in the following three tables.  More information about the table structures can be found at the end of README.dirlist.</p>
+<ul>
+<li>directory table : This table stores information about the filesystem directory structure.</li>
+<li>index table     : This table stores a file name index.  It can be used to quickly find files with given name, suffix, or prefix.</li>
+<li>data table      : This table stores the file data.  File with duplicate data are only stored once.<br />
+</li>
+</ul>
+<p>This example shows how to use Accumulo to store a file system history.  It has the following classes:</p>
+<ul>
+<li>Ingest.java - Recursively lists the files and directories under a given path, ingests their names and file info into one Accumulo table, indexes the file names in a separate table, and the file data into a third table.</li>
+<li>QueryUtil.java - Provides utility methods for getting the info for a file, listing the contents of a directory, and performing single wild card searches on file or directory names.</li>
+<li>Viewer.java - Provides a GUI for browsing the file system information stored in Accumulo.</li>
+<li>FileCount.java - Computes recursive counts over file system information and stores them back into the same Accumulo table.</li>
+</ul>
+<p>To begin, ingest some data with Ingest.java.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="sr">/accumulo org.apache.accumulo.examples.simple.dirlist.Ingest instance zookeepers username password dirTable indexTable dataTable exampleVis 100000 /</span><span class="nb">local</span><span class="sr">/username/</span><span class="n">workspace</span>
+</pre></div>
+
+
+<p>This may take some time if there are large files in the /local/username/workspace directory.  If you use 0 instead of 100000 on the command line, the ingest will run much faster, but it will not put any file data into Accumulo (the dataTable will be empty).
+Note that running this example will create tables dirTable, indexTable, and dataTable in Accumulo that you should delete when you have completed the example.
+If you modify a file or add new files in the directory ingested (e.g. /local/username/workspace), you can run Ingest again to add new information into the Accumulo tables.</p>
+<p>To browse the data ingested, use Viewer.java.  Be sure to give the "username" user the authorizations to see the data (in this case, run "setauths -u username -s exampleVis" in the shell, and use the string "exampleVis" as the "auths" in command lines below).</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="sr">/accumulo org.apache.accumulo.examples.simple.dirlist.Viewer instance zookeepers username password dirTable dataTable auths /</span><span class="nb">local</span><span class="sr">/username/</span><span class="n">workspace</span>
+</pre></div>
+
+
+<p>To list the contents of specific directories, use QueryUtil.java.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="sr">/accumulo org.apache.accumulo.examples.simple.dirlist.QueryUtil instance zookeepers username password dirTable auths /</span><span class="nb">local</span><span class="o">/</span><span class="n">username</span>
+<span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="sr">/accumulo org.apache.accumulo.examples.simple.dirlist.QueryUtil instance zookeepers username password dirTable auths /</span><span class="nb">local</span><span class="sr">/username/</span><span class="n">workspace</span>
+</pre></div>
+
+
+<p>To perform searches on file or directory names, also use QueryUtil.java.  Search terms must contain no more than one wild card and cannot contain "/".
+<em>Note</em> these queries run on the <em>indexTable</em> table instead of the dirTable table.</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">dirlist</span><span class="o">.</span><span class="n">QueryUtil</span> <span class="n">instance</span> <span class="n">zookeepers</span> <span class="n">username</span> <span class="n">password</span> <span class="n">indexTable</span> <span class="n">exampleVis</span> <span class="n">filename</span> <span class="o">-</span><span class="n">search</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">dirlist</span><span class="o">.</span><span class="n">QueryUtil</span> <span class="n">instance</span> <span class="n">zookeepers</span> <span class="n">username</span> <span class="n">password</span> <span class="n">indexTable</span> <span class="n">exampleVis</span> <span class="s">&#39;filename*&#39;</span> <span class="o">-</span><span class="n">search</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">dirlist</span><span class="o">.</span><span class="n">QueryUtil</span> <span class="n">instance</span> <span class="n">zookeepers</span> <span class="n">username</span> <span class="n">password</span> <span class="n">indexTable</span> <span class="n">exampleVis</span> <span class="s">&#39;*jar&#39;</span> <span class="o">-</span><span class="n">search</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">dirlist</span><span class="o">.</span><span class="n">QueryUtil</span> <span class="n">instance</span> <span class="n">zookeepers</span> <span class="n">username</span> <span class="n">password</span> <span class="n">indexTable</span> <span class="n">exampleVis</span> <span class="n">filename</span><span class="o">*</span><span class="n">jar</span> <span class="o">-</span><span class="n">search</span>
+</pre></div>
+
+
+<p>To count the number of direct children (directories and files) and descendants (children and children's descendants, directories and files), run the FileCount over the dirTable table.
+The results are written back to the same table.  FileCount reads from and writes to Accumulo.  This requires scan authorizations for the read and a visibility for the data written.
+In this example, the authorizations and visibility are set to the same value, exampleVis.  See README.visibility for more information on visibility and authorizations.</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">dirlist</span><span class="o">.</span><span class="n">FileCount</span> <span class="n">instance</span> <span class="n">zookeepers</span> <span class="n">username</span> <span class="n">password</span> <span class="n">dirTable</span> <span class="n">exampleVis</span> <span class="n">exampleVis</span>
+</pre></div>
+
+
+<h2 id="directory-table">Directory Table</h2>
+<p>Here is a illustration of what data looks like in the directory table:</p>
+<div class="codehilite"><pre><span class="n">row</span> <span class="n">colf:colq</span> <span class="p">[</span><span class="n">vis</span><span class="p">]</span> <span class="n">value</span>
+<span class="mo">000</span> <span class="n">dir:exec</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">true</span>
+<span class="mo">000</span> <span class="n">dir:hidden</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">false</span>
+<span class="mo">000</span> <span class="n">dir:lastmod</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">1291996886000</span>
+<span class="mo">000</span> <span class="n">dir:length</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">1666</span>
+<span class="mo">001</span><span class="o">/</span><span class="nb">local</span> <span class="n">dir:exec</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">true</span>
+<span class="mo">001</span><span class="o">/</span><span class="nb">local</span> <span class="n">dir:hidden</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">false</span>
+<span class="mo">001</span><span class="o">/</span><span class="nb">local</span> <span class="n">dir:lastmod</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">1304945270000</span>
+<span class="mo">001</span><span class="o">/</span><span class="nb">local</span> <span class="n">dir:length</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">272</span>
+<span class="mo">002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="o">\</span><span class="n">x7F</span><span class="o">\</span><span class="n">xFF</span><span class="o">\</span><span class="n">xFE</span><span class="o">\</span><span class="n">xCFH</span><span class="o">\</span><span class="n">xA1</span><span class="o">\</span><span class="n">x82</span><span class="o">\</span><span class="n">x97:exec</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">false</span>
+<span class="mo">002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="o">\</span><span class="n">x7F</span><span class="o">\</span><span class="n">xFF</span><span class="o">\</span><span class="n">xFE</span><span class="o">\</span><span class="n">xCFH</span><span class="o">\</span><span class="n">xA1</span><span class="o">\</span><span class="n">x82</span><span class="o">\</span><span class="n">x97:hidden</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">false</span>
+<span class="mo">002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="o">\</span><span class="n">x7F</span><span class="o">\</span><span class="n">xFF</span><span class="o">\</span><span class="n">xFE</span><span class="o">\</span><span class="n">xCFH</span><span class="o">\</span><span class="n">xA1</span><span class="o">\</span><span class="n">x82</span><span class="o">\</span><span class="n">x97:lastmod</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">1308746481000</span>
+<span class="mo">002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="o">\</span><span class="n">x7F</span><span class="o">\</span><span class="n">xFF</span><span class="o">\</span><span class="n">xFE</span><span class="o">\</span><span class="n">xCFH</span><span class="o">\</span><span class="n">xA1</span><span class="o">\</span><span class="n">x82</span><span class="o">\</span><span class="n">x97:length</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">9192</span>
+<span class="mo">002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="o">\</span><span class="n">x7F</span><span class="o">\</span><span class="n">xFF</span><span class="o">\</span><span class="n">xFE</span><span class="o">\</span><span class="n">xCFH</span><span class="o">\</span><span class="n">xA1</span><span class="o">\</span><span class="n">x82</span><span class="o">\</span><span class="n">x97:md5</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="mi">274</span><span class="n">af6419a3c4c4a259260ac7017cbf1</span>
+</pre></div>
+
+
+<p>The rows are of the form depth + path, where depth is the number of slashes ("/") in the path padded to 3 digits.  This is so that all the children of a directory appear as consecutive keys in Accumulo; without the depth, you would for example see all the subdirectories of /local before you saw /usr.
+For directories the column family is "dir".  For files the column family is Long.MAX_VALUE - lastModified in bytes rather than string format so that newer versions sort earlier.</p>
+<h2 id="index-table">Index Table</h2>
+<p>Here is an illustration of what data looks like in the index table:</p>
+<div class="codehilite"><pre><span class="n">row</span> <span class="n">colf:colq</span> <span class="p">[</span><span class="n">vis</span><span class="p">]</span>
+<span class="n">fAccumulo</span><span class="o">.</span><span class="n">README</span> <span class="n">i:002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>
+<span class="n">flocal</span> <span class="n">i:001</span><span class="o">/</span><span class="nb">local</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>
+<span class="n">rEMDAER</span><span class="o">.</span><span class="n">olumuccA</span> <span class="n">i:002</span><span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>
+<span class="n">rlacol</span> <span class="n">i:001</span><span class="o">/</span><span class="nb">local</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>
+</pre></div>
+
+
+<p>The values of the index table are null.  The rows are of the form "f" + filename or "r" + reverse file name.  This is to enable searches with wildcards at the beginning, middle, or end.</p>
+<h2 id="data-table">Data Table</h2>
+<p>Here is an illustration of what data looks like in the data table:</p>
+<div class="codehilite"><pre><span class="n">row</span> <span class="n">colf:colq</span> <span class="p">[</span><span class="n">vis</span><span class="p">]</span> <span class="n">value</span>
+<span class="mi">274</span><span class="n">af6419a3c4c4a259260ac7017cbf1</span> <span class="n">refs:e77276a2b56e5c15b540eaae32b12c69</span><span class="o">\</span><span class="n">x00filext</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="n">README</span>
+<span class="mi">274</span><span class="n">af6419a3c4c4a259260ac7017cbf1</span> <span class="n">refs:e77276a2b56e5c15b540eaae32b12c69</span><span class="o">\</span><span class="n">x00name</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="sr">/local/</span><span class="n">Accumulo</span><span class="o">.</span><span class="n">README</span>
+<span class="mi">274</span><span class="n">af6419a3c4c4a259260ac7017cbf1</span> <span class="o">~</span><span class="n">chunk:</span><span class="o">\</span><span class="n">x00</span><span class="o">\</span><span class="n">x0FB</span><span class="nv">@</span><span class="err">\</span><span class="nv">x00</span><span class="o">\</span><span class="n">x00</span><span class="o">\</span><span class="n">x00</span><span class="o">\</span><span class="n">x00</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>    <span class="o">*******************************************************************************\</span><span class="n">x0A1</span><span class="o">.</span> <span class="n">Building</span><span class="o">\</span><span class="n">x0A</span><span class="o">\</span><span class="n">x0AIn</span> <span class="n">the</span> <span class="n">normal</span> <span class="n">tarball</span> <span class="ow">or</span> <span class="n">RPM</span> <span clas
 s="n">release</span> <span class="n">of</span> <span class="n">accumulo</span><span class="p">,</span> <span class="p">[</span><span class="n">truncated</span><span class="p">]</span>
+<span class="mi">274</span><span class="n">af6419a3c4c4a259260ac7017cbf1</span> <span class="o">~</span><span class="n">chunk:</span><span class="o">\</span><span class="n">x00</span><span class="o">\</span><span class="n">x0FB</span><span class="nv">@</span><span class="err">\</span><span class="nv">x00</span><span class="o">\</span><span class="n">x00</span><span class="o">\</span><span class="n">x00</span><span class="o">\</span><span class="n">x01</span> <span class="p">[</span><span class="n">exampleVis</span><span class="p">]</span>
+</pre></div>
+
+
+<p>The rows are the md5 hash of the file.  Some column family : column qualifier pairs are "refs" : hash of file name + null byte + property name, in which case the value is property value.  There can be multiple references to the same file which are distinguished by the hash of the file name.
+Other column family : column qualifier pairs are "~chunk" : chunk size in bytes + chunk number in bytes, in which case the value is the bytes for that chunk of the file.  There is an end of file data marker whose chunk number is the number of chunks for the file and whose value is empty.</p>
+<p>There may exist multiple copies of the same file (with the same md5 hash) with different chunk sizes or different visibilities.  There is an iterator that can be set on the data table that combines these copies into a single copy with a visibility taken from the visibilities of the file references, e.g. (vis from ref1)|(vis from ref2). </p>
+  </div>
+
+  <div id="footer">
+    <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 and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div> 
+    <a alt="Apache Incubator" href="http://incubator.apache.org">
+      <img id="asf-logo" alt="Apache Incubator" src="/accumulo/images/apache-incubator-logo.png" width="150"/>
+    </a>
+
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/accumulo/1.4/examples/filedata.html
==============================================================================
--- websites/staging/accumulo/trunk/content/accumulo/1.4/examples/filedata.html (added)
+++ websites/staging/accumulo/trunk/content/accumulo/1.4/examples/filedata.html Fri Mar 23 19:08:12 2012
@@ -0,0 +1,136 @@
+<!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="/accumulo/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo File System Archive Example (Data Only)</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(['_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="/accumulo">Home</a></li>
+<li><a href="http://incubator.apache.org/projects/accumulo.html">Incubator page</a></li>
+<li><a href="/accumulo/downloads/downloads.html">Downloads</a></li>
+<li><a href="/accumulo/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="/accumulo/get_involved.html">Get Involved</a></li>
+<li><a href="/accumulo/mailing_list.html">Mailing Lists</a></li>
+<li><a href="https://issues.apache.org/jira/secure/ConfigureReport.jspa?versionId=-2&amp;selectedProjectId=12312121&amp;reportKey=com.sourcelabs.jira.plugin.report.contributions%3Acontributionreport">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/accumulo/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-F/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/accumulo/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/accumulo/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/accumulo/1.4/examples">Examples 1.4</a></li>
+<li><a href="/accumulo/screenshots.html">Screenshots</a></li>
+<li><a href="/accumulo/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/accumulo/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/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo (Incubating)" src="/accumulo/images/accumulo-logo.png"/>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo File System Archive Example (Data Only)</h1>
+    <p>This example archives file data into an Accumulo table.  Files with duplicate data are only stored once.
+The example has the following classes:</p>
+<ul>
+<li>CharacterHistogram - A MapReduce that computes a histogram of byte frequency for each file and stores the histogram alongside the file data.  An example use of the ChunkInputFormat.</li>
+<li>ChunkCombiner - An Iterator that dedupes file data and sets their visibilities to a combined visibility based on current references to the file data.</li>
+<li>ChunkInputFormat - An Accumulo InputFormat that provides keys containing file info (List<Entry<Key,Value>&gt;) and values with an InputStream over the file (ChunkInputStream).</li>
+<li>ChunkInputStream - An input stream over file data stored in Accumulo.</li>
+<li>FileDataIngest - Takes a list of files and archives them into Accumulo keyed on the SHA1 hashes of the files.</li>
+<li>FileDataQuery - Retrieves file data based on the SHA1 hash of the file. (Used by the dirlist.Viewer.)</li>
+<li>KeyUtil - A utility for creating and parsing null-byte separated strings into/from Text objects.</li>
+<li>VisibilityCombiner - A utility for merging visibilities into the form (VIS1)|(VIS2)|...</li>
+</ul>
+<p>This example is coupled with the dirlist example.  See README.dirlist for instructions.</p>
+<p>If you haven't already run the README.dirlist example, ingest a file with FileDataIngest.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="sr">/accumulo org.apache.accumulo.examples.simple.filedata.FileDataIngest instance zookeepers username password dataTable exampleVis 1000 $ACCUMULO_HOME/</span><span class="n">README</span>
+</pre></div>
+
+
+<p>Open the accumulo shell and look at the data.  The row is the MD5 hash of the file, which you can verify by running a command such as 'md5sum' on the file.</p>
+<div class="codehilite"><pre><span class="o">&gt;</span> <span class="n">scan</span> <span class="o">-</span><span class="n">t</span> <span class="n">dataTable</span>
+</pre></div>
+
+
+<p>Run the CharacterHistogram MapReduce to add some information about the file.</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">bin</span><span class="sr">/tool.sh lib/</span><span class="n">examples</span><span class="o">-</span><span class="n">simple</span><span class="o">*</span><span class="p">[</span><span class="o">^</span><span class="n">c</span><span class="p">]</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">filedata</span><span class="o">.</span><span class="n">CharacterHistogram</span> <span class="n">instance</span> <span class="n">zookeepers</span> <span class="n">username</span> <span class="n">password</span> <span class="n">dataTable</span> <span class="n">exampleVis</span> <span class="n">exampleVis</span>
+</pre></div>
+
+
+<p>Scan again to see the histogram stored in the 'info' column family.</p>
+<div class="codehilite"><pre><span class="o">&gt;</span> <span class="n">scan</span> <span class="o">-</span><span class="n">t</span> <span class="n">dataTable</span>
+</pre></div>
+  </div>
+
+  <div id="footer">
+    <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 and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div> 
+    <a alt="Apache Incubator" href="http://incubator.apache.org">
+      <img id="asf-logo" alt="Apache Incubator" src="/accumulo/images/apache-incubator-logo.png" width="150"/>
+    </a>
+
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/accumulo/1.4/examples/filter.html
==============================================================================
--- websites/staging/accumulo/trunk/content/accumulo/1.4/examples/filter.html (added)
+++ websites/staging/accumulo/trunk/content/accumulo/1.4/examples/filter.html Fri Mar 23 19:08:12 2012
@@ -0,0 +1,197 @@
+<!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="/accumulo/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo Filter 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(['_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="/accumulo">Home</a></li>
+<li><a href="http://incubator.apache.org/projects/accumulo.html">Incubator page</a></li>
+<li><a href="/accumulo/downloads/downloads.html">Downloads</a></li>
+<li><a href="/accumulo/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="/accumulo/get_involved.html">Get Involved</a></li>
+<li><a href="/accumulo/mailing_list.html">Mailing Lists</a></li>
+<li><a href="https://issues.apache.org/jira/secure/ConfigureReport.jspa?versionId=-2&amp;selectedProjectId=12312121&amp;reportKey=com.sourcelabs.jira.plugin.report.contributions%3Acontributionreport">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/accumulo/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-F/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/accumulo/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/accumulo/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/accumulo/1.4/examples">Examples 1.4</a></li>
+<li><a href="/accumulo/screenshots.html">Screenshots</a></li>
+<li><a href="/accumulo/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/accumulo/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/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo (Incubating)" src="/accumulo/images/accumulo-logo.png"/>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo Filter Example</h1>
+    <p>This is a simple filter example.  It uses the AgeOffFilter that is provided as 
+part of the core package org.apache.accumulo.core.iterators.user.  Filters are 
+iterators that select desired key/value pairs (or weed out undesired ones).<br />
+Filters extend the org.apache.accumulo.core.iterators.Filter class 
+and must implement a method accept(Key k, Value v).  This method returns true 
+if the key/value pair are to be delivered and false if they are to be ignored.
+Filter takes a "negate" parameter which defaults to false.  If set to true, the
+return value of the accept method is negated, so that key/value pairs accepted
+by the method are omitted by the Filter.</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">filtertest</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span> <span class="n">setiter</span> <span class="o">-</span><span class="n">t</span> <span class="n">filtertest</span> <span class="o">-</span><span class="n">scan</span> <span class="o">-</span><span class="n">p</span> <span class="mi">10</span> <span class="o">-</span><span class="n">n</span> <span class="n">myfilter</span> <span class="o">-</span><span class="n">ageoff</span>
+<span class="n">AgeOffFilter</span> <span class="n">removes</span> <span class="n">entries</span> <span class="n">with</span> <span class="n">timestamps</span> <span class="n">more</span> <span class="n">than</span> <span class="sr">&lt;ttl&gt;</span> <span class="n">milliseconds</span> <span class="n">old</span>
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">AgeOffFilter</span> <span class="n">parameter</span> <span class="n">negate</span><span class="p">,</span> <span class="n">default</span> <span class="n">false</span> <span class="n">keeps</span> <span class="n">k</span><span class="sr">/v that pass accept method, true rejects k/</span><span class="n">v</span> <span class="n">that</span> <span class="n">pass</span> <span class="nb">accept</span> <span class="n">method:</span> 
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">AgeOffFilter</span> <span class="n">parameter</span> <span class="n">ttl</span><span class="p">,</span> <span class="nb">time</span> <span class="n">to</span> <span class="n">live</span> <span class="p">(</span><span class="n">milliseconds</span><span class="p">):</span> <span class="mi">30000</span>
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">AgeOffFilter</span> <span class="n">parameter</span> <span class="n">currentTime</span><span class="p">,</span> <span class="k">if</span> <span class="n">set</span><span class="p">,</span> <span class="k">use</span> <span class="n">the</span> <span class="n">given</span> <span class="n">value</span> <span class="n">as</span> <span class="n">the</span> <span class="n">absolute</span> <span class="nb">time</span> <span class="n">in</span> <span class="n">milliseconds</span> <span class="n">as</span> <span class="n">the</span> <span class="n">current</span> <span class="nb">time</span> <span class="n">of</span> <span class="n">day:</span> 
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">foo</span> <span class="n">a</span> <span class="n">b</span> <span class="n">c</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="n">foo</span> <span class="n">a:b</span> <span class="o">[]</span>    <span class="n">c</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<p>... wait 30 seconds ...</p>
+<div class="codehilite"><pre><span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<p>Note the absence of the entry inserted more than 30 seconds ago.  Since the
+scope was set to "scan", this means the entry is still in Accumulo, but is
+being filtered out at query time.  To delete entries from Accumulo based on
+the ages of their timestamps, AgeOffFilters should be set up for the "minc"
+and "majc" scopes, as well.</p>
+<p>To force an ageoff of the persisted data, after setting up the ageoff iterator 
+on the "minc" and "majc" scopes you can flush and compact your table. This will
+happen automatically as a background operation on any table that is being 
+actively written to, but can also be requested in the shell.</p>
+<p>The first setiter command used the special -ageoff flag to specify the 
+AgeOffFilter, but any Filter can be configured by using the -class flag.  The 
+following commands show how to enable the AgeOffFilter for the minc and majc
+scopes using the -class flag, then flush and compact the table.</p>
+<div class="codehilite"><pre><span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span> <span class="n">setiter</span> <span class="o">-</span><span class="n">t</span> <span class="n">filtertest</span> <span class="o">-</span><span class="n">minc</span> <span class="o">-</span><span class="n">majc</span> <span class="o">-</span><span class="n">p</span> <span class="mi">10</span> <span class="o">-</span><span class="n">n</span> <span class="n">myfilter</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">AgeOffFilter</span>
+<span class="n">AgeOffFilter</span> <span class="n">removes</span> <span class="n">entries</span> <span class="n">with</span> <span class="n">timestamps</span> <span class="n">more</span> <span class="n">than</span> <span class="sr">&lt;ttl&gt;</span> <span class="n">milliseconds</span> <span class="n">old</span>
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">AgeOffFilter</span> <span class="n">parameter</span> <span class="n">negate</span><span class="p">,</span> <span class="n">default</span> <span class="n">false</span> <span class="n">keeps</span> <span class="n">k</span><span class="sr">/v that pass accept method, true rejects k/</span><span class="n">v</span> <span class="n">that</span> <span class="n">pass</span> <span class="nb">accept</span> <span class="n">method:</span> 
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">AgeOffFilter</span> <span class="n">parameter</span> <span class="n">ttl</span><span class="p">,</span> <span class="nb">time</span> <span class="n">to</span> <span class="n">live</span> <span class="p">(</span><span class="n">milliseconds</span><span class="p">):</span> <span class="mi">30000</span>
+<span class="o">----------&gt;</span> <span class="n">set</span> <span class="n">AgeOffFilter</span> <span class="n">parameter</span> <span class="n">currentTime</span><span class="p">,</span> <span class="k">if</span> <span class="n">set</span><span class="p">,</span> <span class="k">use</span> <span class="n">the</span> <span class="n">given</span> <span class="n">value</span> <span class="n">as</span> <span class="n">the</span> <span class="n">absolute</span> <span class="nb">time</span> <span class="n">in</span> <span class="n">milliseconds</span> <span class="n">as</span> <span class="n">the</span> <span class="n">current</span> <span class="nb">time</span> <span class="n">of</span> <span class="n">day:</span> 
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span> <span class="n">flush</span>
+<span class="mo">06</span> <span class="mi">10</span><span class="p">:</span><span class="mi">42</span><span class="p">:</span><span class="mi">24</span><span class="p">,</span><span class="mi">806</span> <span class="p">[</span><span class="n">shell</span><span class="o">.</span><span class="n">Shell</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Flush</span> <span class="n">of</span> <span class="n">table</span> <span class="n">filtertest</span> <span class="n">initiated</span><span class="o">...</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span> <span class="n">compact</span>
+<span class="mo">06</span> <span class="mi">10</span><span class="p">:</span><span class="mi">42</span><span class="p">:</span><span class="mi">36</span><span class="p">,</span><span class="mi">781</span> <span class="p">[</span><span class="n">shell</span><span class="o">.</span><span class="n">Shell</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Compaction</span> <span class="n">of</span> <span class="n">table</span> <span class="n">filtertest</span> <span class="n">started</span> <span class="k">for</span> <span class="n">given</span> <span class="n">range</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span> <span class="n">flush</span> <span class="o">-</span><span class="n">t</span> <span class="n">filtertest</span> <span class="o">-</span><span class="n">w</span>
+<span class="mo">06</span> <span class="mi">10</span><span class="p">:</span><span class="mi">42</span><span class="p">:</span><span class="mi">52</span><span class="p">,</span><span class="mi">881</span> <span class="p">[</span><span class="n">shell</span><span class="o">.</span><span class="n">Shell</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Flush</span> <span class="n">of</span> <span class="n">table</span> <span class="n">filtertest</span> <span class="n">completed</span><span class="o">.</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span> <span class="n">compact</span> <span class="o">-</span><span class="n">t</span> <span class="n">filtertest</span> <span class="o">-</span><span class="n">w</span>
+<span class="mo">06</span> <span class="mi">10</span><span class="p">:</span><span class="mi">43</span><span class="p">:</span><span class="mo">00</span><span class="p">,</span><span class="mi">632</span> <span class="p">[</span><span class="n">shell</span><span class="o">.</span><span class="n">Shell</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Compacting</span> <span class="n">table</span> <span class="o">...</span>
+<span class="mo">06</span> <span class="mi">10</span><span class="p">:</span><span class="mi">43</span><span class="p">:</span><span class="mo">01</span><span class="p">,</span><span class="mi">307</span> <span class="p">[</span><span class="n">shell</span><span class="o">.</span><span class="n">Shell</span><span class="p">]</span> <span class="n">INFO</span> <span class="p">:</span> <span class="n">Compaction</span> <span class="n">of</span> <span class="n">table</span> <span class="n">filtertest</span> <span class="n">completed</span> <span class="k">for</span> <span class="n">given</span> <span class="n">range</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<p>By default, flush and compact execute in the background, but with the -w flag
+they will wait to return until the operation has completed.  Both are 
+demonstrated above, though only one call to each would be necessary.  A 
+specific table can be specified with -t.</p>
+<p>After the compaction runs, the newly created files will not contain any data 
+that should have been aged off, and the Accumulo garbage collector will remove 
+the old files.</p>
+<p>To see the iterator settings for a table, use config.</p>
+<div class="codehilite"><pre><span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span> <span class="n">config</span> <span class="o">-</span><span class="n">t</span> <span class="n">filtertest</span> <span class="o">-</span><span class="n">f</span> <span class="n">iterator</span>
+<span class="o">---------+---------------------------------------------+---------------------------------------------------------------------------</span>
+<span class="n">SCOPE</span>    <span class="o">|</span> <span class="n">NAME</span>                                        <span class="o">|</span> <span class="n">VALUE</span>
+<span class="o">---------+---------------------------------------------+---------------------------------------------------------------------------</span>
+<span class="n">table</span>    <span class="o">|</span> <span class="n">table</span><span class="o">.</span><span class="n">iterator</span><span class="o">.</span><span class="n">majc</span><span class="o">.</span><span class="n">myfilter</span> <span class="o">..............</span> <span class="o">|</span> <span class="mi">10</span><span class="p">,</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">AgeOffFilter</span>
+<span class="n">table</span>    <span class="o">|</span> <span class="n">table</span><span class="o">.</span><span class="n">iterator</span><span class="o">.</span><span class="n">majc</span><span class="o">.</span><span class="n">myfilter</span><span class="o">.</span><span class="n">opt</span><span class="o">.</span><span class="n">ttl</span> <span class="o">......</span> <span class="o">|</span> <span class="mi">30000</span>
+<span class="n">table</span>    <span class="o">|</span> <span class="n">table</span><span class="o">.</span><span class="n">iterator</span><span class="o">.</span><span class="n">majc</span><span class="o">.</span><span class="n">vers</span> <span class="o">..................</span> <span class="o">|</span> <span class="mi">20</span><span class="p">,</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">VersioningIterator</span>
+<span class="n">table</span>    <span class="o">|</span> <span class="n">table</span><span class="o">.</span><span class="n">iterator</span><span class="o">.</span><span class="n">majc</span><span class="o">.</span><span class="n">vers</span><span class="o">.</span><span class="n">opt</span><span class="o">.</span><span class="n">maxVersions</span> <span class="o">..</span> <span class="o">|</span> <span class="mi">1</span>
+<span class="n">table</span>    <span class="o">|</span> <span class="n">table</span><span class="o">.</span><span class="n">iterator</span><span class="o">.</span><span class="n">minc</span><span class="o">.</span><span class="n">myfilter</span> <span class="o">..............</span> <span class="o">|</span> <span class="mi">10</span><span class="p">,</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">AgeOffFilter</span>
+<span class="n">table</span>    <span class="o">|</span> <span class="n">table</span><span class="o">.</span><span class="n">iterator</span><span class="o">.</span><span class="n">minc</span><span class="o">.</span><span class="n">myfilter</span><span class="o">.</span><span class="n">opt</span><span class="o">.</span><span class="n">ttl</span> <span class="o">......</span> <span class="o">|</span> <span class="mi">30000</span>
+<span class="n">table</span>    <span class="o">|</span> <span class="n">table</span><span class="o">.</span><span class="n">iterator</span><span class="o">.</span><span class="n">minc</span><span class="o">.</span><span class="n">vers</span> <span class="o">..................</span> <span class="o">|</span> <span class="mi">20</span><span class="p">,</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">VersioningIterator</span>
+<span class="n">table</span>    <span class="o">|</span> <span class="n">table</span><span class="o">.</span><span class="n">iterator</span><span class="o">.</span><span class="n">minc</span><span class="o">.</span><span class="n">vers</span><span class="o">.</span><span class="n">opt</span><span class="o">.</span><span class="n">maxVersions</span> <span class="o">..</span> <span class="o">|</span> <span class="mi">1</span>
+<span class="n">table</span>    <span class="o">|</span> <span class="n">table</span><span class="o">.</span><span class="n">iterator</span><span class="o">.</span><span class="n">scan</span><span class="o">.</span><span class="n">myfilter</span> <span class="o">..............</span> <span class="o">|</span> <span class="mi">10</span><span class="p">,</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">AgeOffFilter</span>
+<span class="n">table</span>    <span class="o">|</span> <span class="n">table</span><span class="o">.</span><span class="n">iterator</span><span class="o">.</span><span class="n">scan</span><span class="o">.</span><span class="n">myfilter</span><span class="o">.</span><span class="n">opt</span><span class="o">.</span><span class="n">ttl</span> <span class="o">......</span> <span class="o">|</span> <span class="mi">30000</span>
+<span class="n">table</span>    <span class="o">|</span> <span class="n">table</span><span class="o">.</span><span class="n">iterator</span><span class="o">.</span><span class="n">scan</span><span class="o">.</span><span class="n">vers</span> <span class="o">..................</span> <span class="o">|</span> <span class="mi">20</span><span class="p">,</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">VersioningIterator</span>
+<span class="n">table</span>    <span class="o">|</span> <span class="n">table</span><span class="o">.</span><span class="n">iterator</span><span class="o">.</span><span class="n">scan</span><span class="o">.</span><span class="n">vers</span><span class="o">.</span><span class="n">opt</span><span class="o">.</span><span class="n">maxVersions</span> <span class="o">..</span> <span class="o">|</span> <span class="mi">1</span>
+<span class="o">---------+---------------------------------------------+---------------------------------------------------------------------------</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">filtertest</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<p>When setting new iterators, make sure to order their priority numbers 
+(specified with -p) in the order you would like the iterators to be applied.
+Also, each iterator must have a unique name and priority within each scope.</p>
+  </div>
+
+  <div id="footer">
+    <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 and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div> 
+    <a alt="Apache Incubator" href="http://incubator.apache.org">
+      <img id="asf-logo" alt="Apache Incubator" src="/accumulo/images/apache-incubator-logo.png" width="150"/>
+    </a>
+
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/accumulo/1.4/examples/helloworld.html
==============================================================================
--- websites/staging/accumulo/trunk/content/accumulo/1.4/examples/helloworld.html (added)
+++ websites/staging/accumulo/trunk/content/accumulo/1.4/examples/helloworld.html Fri Mar 23 19:08:12 2012
@@ -0,0 +1,145 @@
+<!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="/accumulo/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo Hello World 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(['_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="/accumulo">Home</a></li>
+<li><a href="http://incubator.apache.org/projects/accumulo.html">Incubator page</a></li>
+<li><a href="/accumulo/downloads/downloads.html">Downloads</a></li>
+<li><a href="/accumulo/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="/accumulo/get_involved.html">Get Involved</a></li>
+<li><a href="/accumulo/mailing_list.html">Mailing Lists</a></li>
+<li><a href="https://issues.apache.org/jira/secure/ConfigureReport.jspa?versionId=-2&amp;selectedProjectId=12312121&amp;reportKey=com.sourcelabs.jira.plugin.report.contributions%3Acontributionreport">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/accumulo/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-F/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/accumulo/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/accumulo/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/accumulo/1.4/examples">Examples 1.4</a></li>
+<li><a href="/accumulo/screenshots.html">Screenshots</a></li>
+<li><a href="/accumulo/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/accumulo/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/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo (Incubating)" src="/accumulo/images/accumulo-logo.png"/>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo Hello World Example</h1>
+    <p>This tutorial uses the following Java classes, which can be found in org.apache.accumulo.examples.simple.helloworld in the simple-examples module: </p>
+<ul>
+<li>InsertWithBatchWriter.java - Inserts 10K rows (50K entries) into accumulo with each row having 5 entries</li>
+<li>InsertWithOutputFormat.java - Example of inserting data in MapReduce</li>
+<li>ReadData.java - Reads all data between two rows</li>
+</ul>
+<p>Log into 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>
+</pre></div>
+
+
+<p>Create a table called 'hellotable':</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">hellotable</span>
+</pre></div>
+
+
+<p>Launch a Java program that inserts data with a BatchWriter:</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">helloworld</span><span class="o">.</span><span class="n">InsertWithBatchWriter</span> <span class="n">instance</span> <span class="n">zookeepers</span> <span class="n">username</span> <span class="n">password</span> <span class="n">hellotable</span>
+</pre></div>
+
+
+<p>Alternatively, the same data can be inserted using MapReduce writers:</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">helloworld</span><span class="o">.</span><span class="n">InsertWithOutputFormat</span> <span class="n">instance</span> <span class="n">zookeepers</span> <span class="n">username</span> <span class="n">password</span> <span class="n">hellotable</span>
+</pre></div>
+
+
+<p>On the accumulo status page at the URL below (where 'master' is replaced with the name or IP of your accumulo master), you should see 50K entries</p>
+<div class="codehilite"><pre><span class="n">http:</span><span class="sr">//m</span><span class="n">aster:50095</span><span class="o">/</span>
+</pre></div>
+
+
+<p>To view the entries, use the shell to scan the table:</p>
+<div class="codehilite"><pre><span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">table</span> <span class="n">hellotable</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">hellotable</span><span class="o">&gt;</span> <span class="n">scan</span>
+</pre></div>
+
+
+<p>You can also use a Java class to scan the table:</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">helloworld</span><span class="o">.</span><span class="n">ReadData</span> <span class="n">instance</span> <span class="n">zookeepers</span> <span class="n">username</span> <span class="n">password</span> <span class="n">hellotable</span> <span class="n">row_0</span> <span class="n">row_1001</span>
+</pre></div>
+  </div>
+
+  <div id="footer">
+    <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 and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div> 
+    <a alt="Apache Incubator" href="http://incubator.apache.org">
+      <img id="asf-logo" alt="Apache Incubator" src="/accumulo/images/apache-incubator-logo.png" width="150"/>
+    </a>
+
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/accumulo/1.4/examples/index.html
==============================================================================
--- websites/staging/accumulo/trunk/content/accumulo/1.4/examples/index.html (added)
+++ websites/staging/accumulo/trunk/content/accumulo/1.4/examples/index.html Fri Mar 23 19:08:12 2012
@@ -0,0 +1,135 @@
+<!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="/accumulo/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo Examples</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(['_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="/accumulo">Home</a></li>
+<li><a href="http://incubator.apache.org/projects/accumulo.html">Incubator page</a></li>
+<li><a href="/accumulo/downloads/downloads.html">Downloads</a></li>
+<li><a href="/accumulo/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="/accumulo/get_involved.html">Get Involved</a></li>
+<li><a href="/accumulo/mailing_list.html">Mailing Lists</a></li>
+<li><a href="https://issues.apache.org/jira/secure/ConfigureReport.jspa?versionId=-2&amp;selectedProjectId=12312121&amp;reportKey=com.sourcelabs.jira.plugin.report.contributions%3Acontributionreport">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/accumulo/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-F/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/accumulo/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/accumulo/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/accumulo/1.4/examples">Examples 1.4</a></li>
+<li><a href="/accumulo/screenshots.html">Screenshots</a></li>
+<li><a href="/accumulo/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/accumulo/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/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo (Incubating)" src="/accumulo/images/accumulo-logo.png"/>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo Examples</h1>
+    <p>Each README in the examples directory highlights the use of particular features of Apache Accumulo.</p>
+<p>Before running any of the examples, the following steps must be performed.</p>
+<ol>
+<li>
+<p>Install and run Accumulo via the instructions found in $ACCUMULO_HOME/README.
+Remember the instance name.  It will be referred to as "instance" throughout the examples.
+A comma-separated list of zookeeper servers will be referred to as "zookeepers".</p>
+</li>
+<li>
+<p>Create an Accumulo user (see the <a href="/accumulo/1.4/user_manual/Accumulo_Shell.html#User_Administration">user manual</a>), or use the root user.
+The Accumulo user name will be referred to as "username" with password "password" throughout the examples.
+This user will need to have the ability to create tables.</p>
+</li>
+</ol>
+<p>In all commands, you will need to replace "instance", "zookeepers", "username", and "password" with the values you set for your Accumulo instance.</p>
+<p>Commands intended to be run in bash are prefixed by '$'.  These are always assumed to be run from the $ACCUMULO_HOME directory.</p>
+<p>Commands intended to be run in the Accumulo shell are prefixed by '&gt;'.</p>
+<p><a href="examples/batch.html">batch</a></p>
+<p><a href="examples/bloom.html">bloom</a></p>
+<p><a href="examples/bulkIngest.html">bulkIngest</a></p>
+<p><a href="examples/combiner.html">combiner</a></p>
+<p><a href="examples/constraints.html">constraints</a></p>
+<p><a href="examples/dirlist.html">dirlist</a></p>
+<p><a href="examples/filedata.html">filedata</a></p>
+<p><a href="examples/filter.html">filter</a></p>
+<p><a href="examples/helloworld.html">helloworld</a></p>
+<p><a href="examples/isolation.html">isolation</a></p>
+<p><a href="examples/mapred.html">mapred</a></p>
+<p><a href="examples/shard.html">shard</a></p>
+<p><a href="examples/visibility.html">visibility</a></p>
+  </div>
+
+  <div id="footer">
+    <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 and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div> 
+    <a alt="Apache Incubator" href="http://incubator.apache.org">
+      <img id="asf-logo" alt="Apache Incubator" src="/accumulo/images/apache-incubator-logo.png" width="150"/>
+    </a>
+
+  </div>
+
+</body>
+</html>



Mime
View raw message