accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r863067 [5/7] - in /websites/staging/accumulo/trunk/content: ./ 1.5/ 1.5/examples/ 1.5/images/ downloads/
Date Sat, 25 May 2013 02:56:29 GMT
Added: websites/staging/accumulo/trunk/content/1.5/examples/export.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/export.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/export.html Sat May 25 02:56:29 2013
@@ -0,0 +1,172 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title></title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title"></h1>
+    <p>Accumulo provides a mechanism to export and import tables.  This README shows
+how to use this feature.</p>
+<p>The shell session below shows creating a table, inserting data, and exporting
+the table.  A table must be offline to export it, and it should remain offline
+for the duration of the distcp.  An easy way to take a table offline without
+interuppting access to it is to clone it and take the clone offline.</p>
+<p>root@test15&gt; createtable table1
+  root@test15 table1&gt; insert a cf1 cq1 v1
+  root@test15 table1&gt; insert h cf1 cq1 v2
+  root@test15 table1&gt; insert z cf1 cq1 v3
+  root@test15 table1&gt; insert z cf1 cq2 v4
+  root@test15 table1&gt; addsplits -t table1 b r
+  root@test15 table1&gt; scan
+  a cf1:cq1 []    v1
+  h cf1:cq1 []    v2
+  z cf1:cq1 []    v3
+  z cf1:cq2 []    v4
+  root@test15&gt; config -t table1 -s table.split.threshold=100M
+  root@test15 table1&gt; clonetable table1 table1_exp
+  root@test15 table1&gt; offline table1_exp
+  root@test15 table1&gt; exporttable -t table1_exp /tmp/table1_export
+  root@test15 table1&gt; quit</p>
+<p>After executing the export command, a few files are created in the hdfs dir.
+One of the files is a list of files to distcp as shown below.</p>
+<p>$ hadoop fs -ls /tmp/table1_export
+  Found 2 items
+  -rw-r--r--   3 user supergroup        162 2012-07-25 09:56 /tmp/table1_export/distcp.txt
+  -rw-r--r--   3 user supergroup        821 2012-07-25 09:56 /tmp/table1_export/exportMetadata.zip
+  $ hadoop fs -cat /tmp/table1_export/distcp.txt
+  hdfs://n1.example.com:6093/accumulo/tables/3/default_tablet/F0000000.rf
+  hdfs://n1.example.com:6093/tmp/table1_export/exportMetadata.zip</p>
+<p>Before the table can be imported, it must be copied using distcp.  After the
+discp completed, the cloned table may be deleted.</p>
+<p>$ hadoop distcp -f /tmp/table1_export/distcp.txt /tmp/table1_export_dest</p>
+<p>The Accumulo shell session below shows importing the table and inspecting it.
+The data, splits, config, and logical time information for the table were
+preserved.</p>
+<p>root@test15&gt; importtable table1_copy /tmp/table1_export_dest
+  root@test15&gt; table table1_copy
+  root@test15 table1_copy&gt; scan
+  a cf1:cq1 []    v1
+  h cf1:cq1 []    v2
+  z cf1:cq1 []    v3
+  z cf1:cq2 []    v4
+  root@test15 table1_copy&gt; getsplits -t table1_copy
+  b
+  r
+  root@test15&gt; config -t table1_copy -f split
+  ---------+--------------------------+-------------------------------------------
+  SCOPE    | NAME                     | VALUE
+  ---------+--------------------------+-------------------------------------------
+  default  | table.split.threshold .. | 1G
+  table    |    @override ........... | 100M
+  ---------+--------------------------+-------------------------------------------
+  root@test15&gt; tables -l
+  !METADATA       =&gt;         !0
+  trace           =&gt;          1
+  table1_copy     =&gt;          5
+  root@test15 table1_copy&gt; scan -t !METADATA -b 5 -c srv:time
+  5;b srv:time []    M1343224500467
+  5;r srv:time []    M1343224500467
+  5&lt; srv:time []    M1343224500467</p>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/filedata.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/filedata.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/filedata.html Sat May 25 02:56:29 2013
@@ -0,0 +1,141 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo 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(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo 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 -i instance -z zookeepers -u username -p password -t dataTable --auths exampleVis --chunk 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">accumulo</span><span class="o">-</span><span class="n">examples</span><span class="o">-</span><span class="n">simple</span><span class="o">.</span><span class="n">jar</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">filedata</span><span class="o">.</span><span class="n">CharacterHistogram</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">passwor
 d</span> <span class="o">-</span><span class="n">t</span> <span class="n">dataTable</span> <span class="o">--</span><span class="n">auths</span> <span class="n">exampleVis</span> <span class="o">--</span><span class="n">vis</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">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/filter.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/filter.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/filter.html Sat May 25 02:56:29 2013
@@ -0,0 +1,202 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo 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(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo 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">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/helloworld.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/helloworld.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/helloworld.html Sat May 25 02:56:29 2013
@@ -0,0 +1,144 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo 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(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo 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>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="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span> <span class="o">-</span><span class="n">t</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="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span> <span class="o">-</span><span class="n">t</span> <span class="n">hellotable</span> <span class="o">--</span><span class="n">startKey</span> <sp
 an class="n">row_0</span> <span class="o">--</span><span class="n">endKey</span> <span class="n">row_1001</span>
+</pre></div>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/index.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/index.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/index.html Sat May 25 02:56:29 2013
@@ -0,0 +1,160 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo 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(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo Examples</h1>
+    <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="/1.5/user_manual/Accumulo_Shell.html#User_Administration">user manual</a>), or use the root user.
+   The "username" Accumulo user name with password "password" is used 
+   throughout the examples. This user needs 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>Each README in the examples directory highlights the use of particular 
+features of Apache Accumulo.</p>
+<p><a href="batch.html">batch</a>:       Using the batch writer and batch scanner.</p>
+<p><a href="bloom.html">bloom</a>:       Creating a bloom filter enabled table to increase query 
+                       performance.</p>
+<p><a href="bulkIngest.html">bulkIngest</a>:  Ingesting bulk data using map/reduce jobs on Hadoop.</p>
+<p><a href="classpath.html">classpath</a></p>
+<p><a href="client.html">client</a></p>
+<p><a href="combiner.html">combiner</a>:    Using example StatsCombiner to find min, max, sum, and 
+                       count.</p>
+<p><a href="constraints.html">constraints</a>: Using constraints with tables.</p>
+<p><a href="dirlist.html">dirlist</a>:     Storing filesystem information.</p>
+<p><a href="export.html">export</a></p>
+<p><a href="filedata.html">filedata</a>:    Storing file data.</p>
+<p><a href="filter.html">filter</a>:      Using the AgeOffFilter to remove records more than 30 
+                       seconds old.</p>
+<p><a href="helloworld.html">helloworld</a>:  Inserting records both inside map/reduce jobs and 
+                       outside. And reading records between two rows.</p>
+<p><a href="isolation.html">isolation</a>:   Using the isolated scanner to ensure partial changes 
+                       are not seen.</p>
+<p><a href="mapred.html">mapred</a>:      Using MapReduce to read from and write to Accumulo 
+                       tables.</p>
+<p><a href="maxmutation.html">maxmutation</a>: Limiting mutation size to avoid running out of memory.</p>
+<p><a href="regex.html">regex</a></p>
+<p><a href="rowhash.html">rowhash</a></p>
+<p><a href="shard.html">shard</a>:       Using the intersecting iterator with a term index 
+                       partitioned by document.</p>
+<p><a href="tabletofile.html">tabletofile</a></p>
+<p><a href="terasort.html">terasort</a></p>
+<p><a href="visibility.html">visibility</a>:  Using visibilities (or combinations of authorizations). 
+                       Also shows user permissions.</p>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/isolation.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/isolation.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/isolation.html Sat May 25 02:56:29 2013
@@ -0,0 +1,139 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo Isolation Example</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo 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.<br />
+</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="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">isolation</span><span class="o">.</span><span class="n">InterferenceTest</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span> <span class="o">-</span><span class="n">t</span> <span class="n">isotest</span> <span class="o">--</span><span class="n">iterations</spa
 n> <span class="mi">5000</span>
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> <span class="mo">053</span> <span class="n">had</span> <span class="n">multiple</span> <span class="nb">values</span> <span class="p">[</span><span class="mi">53</span><span class="p">,</span> <span class="mi">4553</span><span class="p">]</span>
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> <span class="mo">061</span> <span class="n">had</span> <span class="n">multiple</span> <span class="nb">values</span> <span class="p">[</span><span class="mi">561</span><span class="p">,</span> <span class="mi">61</span><span class="p">]</span>
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> <span class="mo">070</span> <span class="n">had</span> <span class="n">multiple</span> <span class="nb">values</span> <span class="p">[</span><span class="mi">570</span><span class="p">,</span> <span class="mi">1070</span><span class="p">]</span>
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> <span class="mo">07</span><span class="mi">9</span> <span class="n">had</span> <span class="n">multiple</span> <span class="nb">values</span> <span class="p">[</span><span class="mi">1079</span><span class="p">,</span> <span class="mi">1579</span><span class="p">]</span>
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> <span class="mi">088</span> <span class="n">had</span> <span class="n">multiple</span> <span class="nb">values</span> <span class="p">[</span><span class="mi">2588</span><span class="p">,</span> <span class="mi">1588</span><span class="p">]</span>
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> <span class="mi">106</span> <span class="n">had</span> <span class="n">multiple</span> <span class="nb">values</span> <span class="p">[</span><span class="mi">2606</span><span class="p">,</span> <span class="mi">3106</span><span class="p">]</span>
+<span class="n">ERROR</span> <span class="n">Columns</span> <span class="n">in</span> <span class="n">row</span> <span class="mi">115</span> <span class="n">had</span> <span class="n">multiple</span> <span class="nb">values</span> <span class="p">[</span><span class="mi">4615</span><span class="p">,</span> <span class="mi">3115</span><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="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">isolation</span><span class="o">.</span><span class="n">InterferenceTest</span> <span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span> <span class="o">-</span><span class="n">t</span> <span class="n">isotest</span> <span class="o">--</span><span class="n">iterations</spa
 n> <span class="mi">5000</span> <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 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>



Mime
View raw message