accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r863911 - in /websites/staging/accumulo/trunk/content: ./ 1.5/examples/
Date Fri, 31 May 2013 19:25:35 GMT
Author: buildbot
Date: Fri May 31 19:25:35 2013
New Revision: 863911

Log:
Staging update by buildbot for accumulo

Modified:
    websites/staging/accumulo/trunk/content/   (props changed)
    websites/staging/accumulo/trunk/content/1.5/examples/batch.html
    websites/staging/accumulo/trunk/content/1.5/examples/classpath.html
    websites/staging/accumulo/trunk/content/1.5/examples/client.html
    websites/staging/accumulo/trunk/content/1.5/examples/combiner.html
    websites/staging/accumulo/trunk/content/1.5/examples/constraints.html
    websites/staging/accumulo/trunk/content/1.5/examples/export.html
    websites/staging/accumulo/trunk/content/1.5/examples/helloworld.html
    websites/staging/accumulo/trunk/content/1.5/examples/index.html
    websites/staging/accumulo/trunk/content/1.5/examples/tabletofile.html
    websites/staging/accumulo/trunk/content/1.5/examples/terasort.html

Propchange: websites/staging/accumulo/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri May 31 19:25:35 2013
@@ -1 +1 @@
-1488274
+1488359

Modified: websites/staging/accumulo/trunk/content/1.5/examples/batch.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/batch.html (original)
+++ websites/staging/accumulo/trunk/content/1.5/examples/batch.html Fri May 31 19:25:35 2013
@@ -88,7 +88,7 @@
 
   <div id="content">
     <h1 class="title">Apache Accumulo Batch Writing and Scanning Example</h1>
-    <p>This tutorial uses the following Java classes, which can be found in org.apache.accumulo.examples.simple.client
in the simple-examples module:</p>
+    <p>This tutorial uses the following Java classes, which can be found in org.apache.accumulo.examples.simple.client
in the examples-simple module:</p>
 <ul>
 <li>SequentialBatchWriter.java - writes mutations with sequential rows and random values</li>
 <li>RandomBatchWriter.java - used by SequentialBatchWriter to generate random values</li>

Modified: websites/staging/accumulo/trunk/content/1.5/examples/classpath.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/classpath.html (original)
+++ websites/staging/accumulo/trunk/content/1.5/examples/classpath.html Fri May 31 19:25:35
2013
@@ -18,7 +18,7 @@
     limitations under the License.
 -->
   <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
-  <title>Apache Accumulo Client Examples</title>
+  <title>Apache Accumulo Classpath Example</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   
   <script type="text/javascript">
@@ -87,39 +87,58 @@
   </div>
 
   <div id="content">
-    <h1 class="title">Apache Accumulo Client Examples</h1>
+    <h1 class="title">Apache Accumulo Classpath Example</h1>
     <p>This example shows how to use per table classpaths.   The example leverages
a
 test jar which contains a Filter that supresses rows containing "foo".  The
 example shows copying the FooFilter.jar into HDFS and then making an Accumulo
 table reference that jar.</p>
 <p>Execute the following command in the shell.</p>
-<p>$ hadoop fs -copyFromLocal $ACCUMULO_HOME/test/src/test/resources/FooFilter.jar
/user1/lib</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">hadoop</span>
<span class="n">fs</span> <span class="o">-</span><span class="n">copyFromLocal</span>
<span class="nv">$ACCUMULO_HOME</span><span class="sr">/test/s</span><span
class="n">rc</span><span class="sr">/test/</span><span class="n">resources</span><span
class="sr">/FooFilter.jar /</span><span class="n">user1</span><span
class="o">/</span><span class="n">lib</span>
+</pre></div>
+
+
 <p>Execute following in Accumulo shell to setup classpath context</p>
-<p>root@test15&gt; config -s general.vfs.context.classpath.cx1=hdfs://<namenode
host>:<namenode port>/user1/lib</p>
+<div class="codehilite"><pre><span class="n">root</span><span
class="nv">@test15</span><span class="o">&gt;</span> <span class="n">config</span>
<span class="o">-</span><span class="n">s</span> <span class="n">general</span><span
class="o">.</span><span class="n">vfs</span><span class="o">.</span><span
class="n">context</span><span class="o">.</span><span class="n">classpath</span><span
class="o">.</span><span class="n">cx1</span><span class="o">=</span><span
class="n">hdfs:</span><span class="sr">//</span><span class="o">&lt;</span><span
class="n">namenode</span> <span class="n">host</span><span class="o">&gt;</span><span
class="p">:</span><span class="o">&lt;</span><span class="n">namenode</span>
<span class="n">port</span><span class="o">&gt;</span><span
class="sr">/user1/</span><span class="n">lib</span>
+</pre></div>
+
+
 <p>Create a table</p>
-<p>root@test15&gt; createtable nofoo</p>
+<div class="codehilite"><pre><span class="n">root</span><span
class="nv">@test15</span><span class="o">&gt;</span> <span class="n">createtable</span>
<span class="n">nofoo</span>
+</pre></div>
+
+
 <p>The following command makes this table use the configured classpath context</p>
-<p>root@test15 nofoo&gt; config -t nofoo -s table.classpath.context=cx1</p>
+<div class="codehilite"><pre><span class="n">root</span><span
class="nv">@test15</span> <span class="n">nofoo</span><span class="o">&gt;</span>
<span class="n">config</span> <span class="o">-</span><span class="n">t</span>
<span class="n">nofoo</span> <span class="o">-</span><span class="n">s</span>
<span class="n">table</span><span class="o">.</span><span class="n">classpath</span><span
class="o">.</span><span class="n">context</span><span class="o">=</span><span
class="n">cx1</span>
+</pre></div>
+
+
 <p>The following command configures an iterator thats in FooFilter.jar</p>
-<p>root@test15 nofoo&gt; setiter -n foofilter -p 10 -scan -minc -majc -class org.apache.accumulo.test.FooFilter
-   Filter accepts or rejects each Key/Value pair
-   ----------&gt; set FooFilter parameter negate, default false keeps k/v that pass accept
method, true rejects k/v that pass accept method: false</p>
+<div class="codehilite"><pre><span class="n">root</span><span
class="nv">@test15</span> <span class="n">nofoo</span><span class="o">&gt;</span>
<span class="n">setiter</span> <span class="o">-</span><span class="n">n</span>
<span class="n">foofilter</span> <span class="o">-</span><span
class="n">p</span> <span class="mi">10</span> <span class="o">-</span><span
class="n">scan</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">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">test</span><span class="o">.</span><span
class="n">FooFilter</span>
+<span class="n">Filter</span> <span class="n">accepts</span> <span
class="ow">or</span> <span class="n">rejects</span> <span class="nb">each</span>
<span class="n">Key</span><span class="o">/</span><span class="n">Value</span>
<span class="n">pair</span>
+<span class="o">----------&gt;</span> <span class="n">set</span>
<span class="n">FooFilter</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="n">false</span>
+</pre></div>
+
+
 <p>The commands below show the filter is working.</p>
-<p>root@test15 nofoo&gt; insert foo1 f1 q1 v1
-   root@test15 nofoo&gt; insert noo1 f1 q1 v2
-   root@test15 nofoo&gt; scan
-   noo1 f1:q1 []    v2
-   root@test15 nofoo&gt; </p>
+<div class="codehilite"><pre><span class="n">root</span><span
class="nv">@test15</span> <span class="n">nofoo</span><span class="o">&gt;</span>
<span class="n">insert</span> <span class="n">foo1</span> <span
class="n">f1</span> <span class="n">q1</span> <span class="n">v1</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">nofoo</span><span class="o">&gt;</span> <span class="n">insert</span>
<span class="n">noo1</span> <span class="n">f1</span> <span class="n">q1</span>
<span class="n">v2</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">nofoo</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="n">noo1</span> <span class="n">f1:q1</span> <span
class="o">[]</span>    <span class="n">v2</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">nofoo</span><span class="o">&gt;</span>
+</pre></div>
+
+
 <p>Below, an attempt is made to add the FooFilter to a table thats not configured
 to use the clasppath context cx1.  This fails util the table is configured to
 use cx1.</p>
-<p>root@test15 nofoo&gt; createtable nofootwo
-   root@test15 nofootwo&gt; setiter -n foofilter -p 10 -scan -minc -majc -class org.apache.accumulo.test.FooFilter
-   2013-05-03 12:49:35,943 [shell.Shell] ERROR: java.lang.IllegalArgumentException: org.apache.accumulo.test.FooFilter
-   root@test15 nofootwo&gt; config -t nofootwo -s table.classpath.context=cx1
-   root@test15 nofootwo&gt; setiter -n foofilter -p 10 -scan -minc -majc -class org.apache.accumulo.test.FooFilter
-   Filter accepts or rejects each Key/Value pair
-   ----------&gt; set FooFilter parameter negate, default false keeps k/v that pass accept
method, true rejects k/v that pass accept method: false</p>
+<div class="codehilite"><pre><span class="n">root</span><span
class="nv">@test15</span> <span class="n">nofoo</span><span class="o">&gt;</span>
<span class="n">createtable</span> <span class="n">nofootwo</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">nofootwo</span><span class="o">&gt;</span> <span class="n">setiter</span>
<span class="o">-</span><span class="n">n</span> <span class="n">foofilter</span>
<span class="o">-</span><span class="n">p</span> <span class="mi">10</span>
<span class="o">-</span><span class="n">scan</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">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">test</span><span
class="o">.</span><span class="n">FooFilter</span>
+<span class="mi">2013</span><span class="o">-</span><span class="mo">05</span><span
class="o">-</span><span class="mo">03</span> <span class="mi">12</span><span
class="p">:</span><span class="mi">49</span><span class="p">:</span><span
class="mi">35</span><span class="p">,</span><span class="mi">943</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">ERROR:</span>
<span class="n">java</span><span class="o">.</span><span class="n">lang</span><span
class="o">.</span><span class="n">IllegalArgumentException:</span> <span
class="n">org</span><span class="o">.</span><span class="n">apache</span><span
class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span
class="n">test</span><span class="o">.</span><span class="n">FooFilter</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">nofootwo</span><span class="o">&gt;</span> <span class="n">config</span>
<span class="o">-</span><span class="n">t</span> <span class="n">nofootwo</span>
<span class="o">-</span><span class="n">s</span> <span class="n">table</span><span
class="o">.</span><span class="n">classpath</span><span class="o">.</span><span
class="n">context</span><span class="o">=</span><span class="n">cx1</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">nofootwo</span><span class="o">&gt;</span> <span class="n">setiter</span>
<span class="o">-</span><span class="n">n</span> <span class="n">foofilter</span>
<span class="o">-</span><span class="n">p</span> <span class="mi">10</span>
<span class="o">-</span><span class="n">scan</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">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">test</span><span
class="o">.</span><span class="n">FooFilter</span>
+<span class="n">Filter</span> <span class="n">accepts</span> <span
class="ow">or</span> <span class="n">rejects</span> <span class="nb">each</span>
<span class="n">Key</span><span class="o">/</span><span class="n">Value</span>
<span class="n">pair</span>
+<span class="o">----------&gt;</span> <span class="n">set</span>
<span class="n">FooFilter</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="n">false</span>
+</pre></div>
   </div>
 
   <div id="footer">

Modified: websites/staging/accumulo/trunk/content/1.5/examples/client.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/client.html (original)
+++ websites/staging/accumulo/trunk/content/1.5/examples/client.html Fri May 31 19:25:35 2013
@@ -89,6 +89,12 @@
   <div id="content">
     <h1 class="title">Apache Accumulo Client Examples</h1>
     <p>This documents how you run the simplest java examples.</p>
+<p>This tutorial uses the following Java classes, which can be found in org.apache.accumulo.examples.simple.client
in the examples-simple module:</p>
+<ul>
+<li>Flush.java - flushes a table</li>
+<li>RowOperations.java - reads and writes rows</li>
+<li>ReadWriteExample.java - creates a table, writes to it, and reads from it</li>
+</ul>
 <p>Using the accumulo command, you can run the simple client examples by providing
their 
 class name, and enough arguments to find your accumulo instance.  For example,
 the Flush class will flush a table:</p>

Modified: websites/staging/accumulo/trunk/content/1.5/examples/combiner.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/combiner.html (original)
+++ websites/staging/accumulo/trunk/content/1.5/examples/combiner.html Fri May 31 19:25:35
2013
@@ -88,7 +88,7 @@
 
   <div id="content">
     <h1 class="title">Apache Accumulo Combiner Example</h1>
-    <p>This tutorial uses the following Java class, which can be found in org.apache.accumulo.examples.simple.combiner
in the simple-examples module:</p>
+    <p>This tutorial uses the following Java class, which can be found in org.apache.accumulo.examples.simple.combiner
in the examples-simple module:</p>
 <ul>
 <li>StatsCombiner.java - a combiner that calculates max, min, sum, and count</li>
 </ul>

Modified: websites/staging/accumulo/trunk/content/1.5/examples/constraints.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/constraints.html (original)
+++ websites/staging/accumulo/trunk/content/1.5/examples/constraints.html Fri May 31 19:25:35
2013
@@ -88,7 +88,7 @@
 
   <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>
+    <p>This tutorial uses the following Java classes, which can be found in org.apache.accumulo.examples.simple.constraints
in the examples-simple module:</p>
 <ul>
 <li>AlphaNumKeyConstraint.java - a constraint that requires alphanumeric keys</li>
 <li>NumericValueConstraint.java - a constraint that requires numeric string values</li>

Modified: websites/staging/accumulo/trunk/content/1.5/examples/export.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/export.html (original)
+++ websites/staging/accumulo/trunk/content/1.5/examples/export.html Fri May 31 19:25:35 2013
@@ -18,7 +18,7 @@
     limitations under the License.
 -->
   <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
-  <title></title>
+  <title>Apache Accumulo Export/Import Example</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   
   <script type="text/javascript">
@@ -87,69 +87,79 @@
   </div>
 
   <div id="content">
-    <h1 class="title"></h1>
+    <h1 class="title">Apache Accumulo Export/Import Example</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>
+<div class="codehilite"><pre><span class="n">root</span><span
class="nv">@test15</span><span class="o">&gt;</span> <span class="n">createtable</span>
<span class="n">table1</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">table1</span><span class="o">&gt;</span> <span class="n">insert</span>
<span class="n">a</span> <span class="n">cf1</span> <span class="n">cq1</span>
<span class="n">v1</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">table1</span><span class="o">&gt;</span> <span class="n">insert</span>
<span class="n">h</span> <span class="n">cf1</span> <span class="n">cq1</span>
<span class="n">v2</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">table1</span><span class="o">&gt;</span> <span class="n">insert</span>
<span class="n">z</span> <span class="n">cf1</span> <span class="n">cq1</span>
<span class="n">v3</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">table1</span><span class="o">&gt;</span> <span class="n">insert</span>
<span class="n">z</span> <span class="n">cf1</span> <span class="n">cq2</span>
<span class="n">v4</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">table1</span><span class="o">&gt;</span> <span class="n">addsplits</span>
<span class="o">-</span><span class="n">t</span> <span class="n">table1</span>
<span class="n">b</span> <span class="n">r</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">table1</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="n">a</span> <span class="n">cf1:cq1</span> <span
class="o">[]</span>    <span class="n">v1</span>
+<span class="n">h</span> <span class="n">cf1:cq1</span> <span
class="o">[]</span>    <span class="n">v2</span>
+<span class="n">z</span> <span class="n">cf1:cq1</span> <span
class="o">[]</span>    <span class="n">v3</span>
+<span class="n">z</span> <span class="n">cf1:cq2</span> <span
class="o">[]</span>    <span class="n">v4</span>
+<span class="n">root</span><span class="nv">@test15</span><span
class="o">&gt;</span> <span class="n">config</span> <span class="o">-</span><span
class="n">t</span> <span class="n">table1</span> <span class="o">-</span><span
class="n">s</span> <span class="n">table</span><span class="o">.</span><span
class="nb">split</span><span class="o">.</span><span class="n">threshold</span><span
class="o">=</span><span class="mi">100</span><span class="n">M</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">table1</span><span class="o">&gt;</span> <span class="n">clonetable</span>
<span class="n">table1</span> <span class="n">table1_exp</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">table1</span><span class="o">&gt;</span> <span class="n">offline</span>
<span class="n">table1_exp</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">table1</span><span class="o">&gt;</span> <span class="n">exporttable</span>
<span class="o">-</span><span class="n">t</span> <span class="n">table1_exp</span>
<span class="sr">/tmp/</span><span class="n">table1_export</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">table1</span><span class="o">&gt;</span> <span class="n">quit</span>
+</pre></div>
+
+
 <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>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">hadoop</span>
<span class="n">fs</span> <span class="o">-</span><span class="n">ls</span>
<span class="sr">/tmp/</span><span class="n">table1_export</span>
+<span class="n">Found</span> <span class="mi">2</span> <span class="n">items</span>
+<span class="o">-</span><span class="n">rw</span><span class="o">-</span><span
class="n">r</span><span class="o">--</span><span class="n">r</span><span
class="o">--</span>   <span class="mi">3</span> <span class="n">user</span>
<span class="n">supergroup</span>        <span class="mi">162</span>
<span class="mi">2012</span><span class="o">-</span><span class="mo">07</span><span
class="o">-</span><span class="mi">25</span> <span class="mi">09</span><span
class="p">:</span><span class="mi">56</span> <span class="sr">/tmp/</span><span
class="n">table1_export</span><span class="o">/</span><span class="n">distcp</span><span
class="o">.</span><span class="n">txt</span>
+<span class="o">-</span><span class="n">rw</span><span class="o">-</span><span
class="n">r</span><span class="o">--</span><span class="n">r</span><span
class="o">--</span>   <span class="mi">3</span> <span class="n">user</span>
<span class="n">supergroup</span>        <span class="mi">821</span>
<span class="mi">2012</span><span class="o">-</span><span class="mo">07</span><span
class="o">-</span><span class="mi">25</span> <span class="mi">09</span><span
class="p">:</span><span class="mi">56</span> <span class="sr">/tmp/</span><span
class="n">table1_export</span><span class="o">/</span><span class="n">exportMetadata</span><span
class="o">.</span><span class="n">zip</span>
+<span class="nv">$</span> <span class="nv">hadoop</span> <span
class="n">fs</span> <span class="o">-</span><span class="n">cat</span>
<span class="sr">/tmp/</span><span class="n">table1_export</span><span
class="o">/</span><span class="n">distcp</span><span class="o">.</span><span
class="n">txt</span>
+<span class="n">hdfs:</span><span class="sr">//</span><span class="n">n1</span><span
class="o">.</span><span class="n">example</span><span class="o">.</span><span
class="n">com:6093</span><span class="sr">/accumulo/</span><span class="n">tables</span><span
class="sr">/3/</span><span class="n">default_tablet</span><span class="o">/</span><span
class="n">F0000000</span><span class="o">.</span><span class="n">rf</span>
+<span class="n">hdfs:</span><span class="sr">//</span><span class="n">n1</span><span
class="o">.</span><span class="n">example</span><span class="o">.</span><span
class="n">com:6093</span><span class="sr">/tmp/</span><span class="n">table1_export</span><span
class="o">/</span><span class="n">exportMetadata</span><span class="o">.</span><span
class="n">zip</span>
+</pre></div>
+
+
 <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>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">hadoop</span>
<span class="n">distcp</span> <span class="o">-</span><span class="n">f</span>
<span class="sr">/tmp/</span><span class="n">table1_export</span><span
class="sr">/distcp.txt /</span><span class="n">tmp</span><span class="o">/</span><span
class="n">table1_export_dest</span>
+</pre></div>
+
+
 <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 class="codehilite"><pre><span class="n">root</span><span
class="nv">@test15</span><span class="o">&gt;</span> <span class="n">importtable</span>
<span class="n">table1_copy</span> <span class="sr">/tmp/</span><span
class="n">table1_export_dest</span>
+<span class="n">root</span><span class="nv">@test15</span><span
class="o">&gt;</span> <span class="n">table</span> <span class="n">table1_copy</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">table1_copy</span><span class="o">&gt;</span> <span
class="n">scan</span>
+<span class="n">a</span> <span class="n">cf1:cq1</span> <span
class="o">[]</span>    <span class="n">v1</span>
+<span class="n">h</span> <span class="n">cf1:cq1</span> <span
class="o">[]</span>    <span class="n">v2</span>
+<span class="n">z</span> <span class="n">cf1:cq1</span> <span
class="o">[]</span>    <span class="n">v3</span>
+<span class="n">z</span> <span class="n">cf1:cq2</span> <span
class="o">[]</span>    <span class="n">v4</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">table1_copy</span><span class="o">&gt;</span> <span
class="n">getsplits</span> <span class="o">-</span><span class="n">t</span>
<span class="n">table1_copy</span>
+<span class="n">b</span>
+<span class="n">r</span>
+<span class="n">root</span><span class="nv">@test15</span><span
class="o">&gt;</span> <span class="n">config</span> <span class="o">-</span><span
class="n">t</span> <span class="n">table1_copy</span> <span class="o">-</span><span
class="n">f</span> <span class="nb">split</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">default</span>  <span class="o">|</span> <span
class="n">table</span><span class="o">.</span><span class="nb">split</span><span
class="o">.</span><span class="n">threshold</span> <span class="o">..</span>
<span class="o">|</span> <span class="mi">1</span><span class="n">G</span>
+<span class="n">table</span>    <span class="o">|</span>    <span
class="nv">@override</span> <span class="o">...........</span> <span
class="o">|</span> <span class="mi">100</span><span class="n">M</span>
+<span class="o">---------+--------------------------+-------------------------------------------</span>
+<span class="n">root</span><span class="nv">@test15</span><span
class="o">&gt;</span> <span class="n">tables</span> <span class="o">-</span><span
class="n">l</span>
+<span class="o">!</span><span class="n">METADATA</span>       <span
class="o">=&gt;</span>         <span class="o">!</span><span class="mi">0</span>
+<span class="n">trace</span>           <span class="o">=&gt;</span>
         <span class="mi">1</span>
+<span class="n">table1_copy</span>     <span class="o">=&gt;</span>
         <span class="mi">5</span>
+<span class="n">root</span><span class="nv">@test15</span> <span
class="n">table1_copy</span><span class="o">&gt;</span> <span
class="n">scan</span> <span class="o">-</span><span class="n">t</span>
<span class="o">!</span><span class="n">METADATA</span> <span class="o">-</span><span
class="n">b</span> <span class="mi">5</span> <span class="o">-</span><span
class="n">c</span> <span class="n">srv:time</span>
+<span class="mi">5</span><span class="p">;</span><span class="n">b</span>
<span class="n">srv:time</span> <span class="o">[]</span>    <span
class="n">M1343224500467</span>
+<span class="mi">5</span><span class="p">;</span><span class="n">r</span>
<span class="n">srv:time</span> <span class="o">[]</span>    <span
class="n">M1343224500467</span>
+<span class="mi">5</span><span class="o">&lt;</span> <span
class="n">srv:time</span> <span class="o">[]</span>    <span class="n">M1343224500467</span>
+</pre></div>
   </div>
 
   <div id="footer">

Modified: websites/staging/accumulo/trunk/content/1.5/examples/helloworld.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/helloworld.html (original)
+++ websites/staging/accumulo/trunk/content/1.5/examples/helloworld.html Fri May 31 19:25:35
2013
@@ -88,7 +88,7 @@
 
   <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>
+    <p>This tutorial uses the following Java classes, which can be found in org.apache.accumulo.examples.simple.helloworld
in the examples-simple 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>

Modified: websites/staging/accumulo/trunk/content/1.5/examples/index.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/index.html (original)
+++ websites/staging/accumulo/trunk/content/1.5/examples/index.html Fri May 31 19:25:35 2013
@@ -113,13 +113,13 @@ features of Apache Accumulo.</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="classpath.html">classpath</a>:   Using per-table classpaths.</p>
+<p><a href="client.html">client</a>:      Using table operations, reading
and writing data in Java.</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="export.html">export</a>:      Exporting and importing tables.</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>
@@ -130,12 +130,16 @@ features of Apache Accumulo.</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="regex.html">regex</a>:       Using MapReduce and Accumulo to
find data using regular
+                       expressions.</p>
+<p><a href="rowhash.html">rowhash</a>:     Using MapReduce to read a table
and write to a new 
+                       column in the same table.</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="tabletofile.html">tabletofile</a>: Using MapReduce to read
a table and write one of its
+                       columns to a file in HDFS.</p>
+<p><a href="terasort.html">terasort</a>:    Generating random data and
sorting it using Accumulo.<br />
+</p>
 <p><a href="visibility.html">visibility</a>:  Using visibilities (or combinations
of authorizations). 
                        Also shows user permissions.</p>
   </div>

Modified: websites/staging/accumulo/trunk/content/1.5/examples/tabletofile.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/tabletofile.html (original)
+++ websites/staging/accumulo/trunk/content/1.5/examples/tabletofile.html Fri May 31 19:25:35
2013
@@ -18,7 +18,7 @@
     limitations under the License.
 -->
   <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
-  <title>Apache Accumulo Regex Example</title>
+  <title>Apache Accumulo Table-to-File Example</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   
   <script type="text/javascript">
@@ -87,7 +87,7 @@
   </div>
 
   <div id="content">
-    <h1 class="title">Apache Accumulo Regex Example</h1>
+    <h1 class="title">Apache Accumulo Table-to-File Example</h1>
     <p>This example uses mapreduce to extract specified columns from an existing table.</p>
 <p>To run this example you will need some data in a table.  The following will
 put a trivial amount of data into accumulo using the accumulo shell:</p>

Modified: websites/staging/accumulo/trunk/content/1.5/examples/terasort.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/terasort.html (original)
+++ websites/staging/accumulo/trunk/content/1.5/examples/terasort.html Fri May 31 19:25:35
2013
@@ -18,7 +18,7 @@
     limitations under the License.
 -->
   <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
-  <title>Apache Accumulo MapReduce Example</title>
+  <title>Apache Accumulo Terasort Example</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   
   <script type="text/javascript">
@@ -87,7 +87,7 @@
   </div>
 
   <div id="content">
-    <h1 class="title">Apache Accumulo MapReduce Example</h1>
+    <h1 class="title">Apache Accumulo Terasort Example</h1>
     <p>This example uses map/reduce to generate random input data that will
 be sorted by storing it into accumulo.  It uses data very similar to the
 hadoop terasort benchmark.</p>



Mime
View raw message