incubator-accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r804965 [3/3] - in /websites/staging/accumulo/trunk: ./ content/accumulo/user_manual_1.4-incubating/
Date Wed, 15 Feb 2012 20:35:47 GMT
Modified: websites/staging/accumulo/trunk/content/accumulo/user_manual_1.4-incubating/Table_Configuration.html
--- websites/staging/accumulo/trunk/content/accumulo/user_manual_1.4-incubating/Table_Configuration.html
+++ websites/staging/accumulo/trunk/content/accumulo/user_manual_1.4-incubating/Table_Configuration.html
Wed Feb 15 20:35:46 2012
@@ -59,7 +59,7 @@
 <li><a href="/accumulo/source.html">Source Code</a></li>
 <li><a href="">Issues</a></li>
-<li><a href="">Builds</a></li>
+<li><a href="">Builds</a></li>
 <h1 id="documentation">Documentation</h1>
@@ -173,7 +173,7 @@
 <p>To deploy a new constraint, create a jar file containing the class implementing
the new constraint and place it in the lib directory of the Accumulo installation. New constraint
jars can be added to Accumulo and enabled without restarting but any change to an existing
constraint class requires Accumulo to be restarted. </p>
 <p>An example of constraints can be found in <br />
 accumulo/docs/examples/README.constraints with corresponding code under <br />
-accumulo/src/examples/main/java/accumulo/examples/constraints . </p>
+accumulo/src/examples/simple/main/java/accumulo/examples/simple/constraints . </p>
 <h2 id="a_idbloom_filtersa_bloom_filters"><a id=Bloom_Filters></a> Bloom
 <p>As mutations are applied to an Accumulo table, several files are created per tablet.
If bloom filters are enabled, Accumulo will create and load a small data structure into memory
to determine whether a file contains a given key before opening the file. This can speed up
lookups considerably. </p>
 <p>To enable bloom filters, enter the following command in the Shell: </p>
@@ -318,7 +318,7 @@ org.apache.accumulo.core.iterators.Filte
 <p>Additional Combiners can be added by creating a Java class that extends <br />
 <strong>org.apache.accumulo.core.iterators.Combiner</strong> and adding a jar
containing that class to Accumulo's lib/ext directory. </p>
 <p>An example of a Combiner can be found under <br />
 <h2 id="a_idblock_cachea_block_cache"><a id=Block_Cache></a> Block Cache</h2>
 <p>In order to increase throughput of commonly accessed entries, Accumulo employs a
block cache. This block cache buffers data in memory so that it doesn't have to be read off
of disk. The RFile format that Accumulo prefers is a mix of index blocks and data blocks,
where the index blocks are used to find the appropriate data blocks. Typical queries to Accumulo
result in a binary search over several index blocks followed by a linear scan of one or more
data blocks. </p>
 <p>The block cache can be configured on a per-table basis, and all tablets hosted on
a tablet server share a single resource pool. To configure the size of the tablet server's
block cache, set the following properties: </p>

Modified: websites/staging/accumulo/trunk/content/accumulo/user_manual_1.4-incubating/Writing_Accumulo_Clients.html
--- websites/staging/accumulo/trunk/content/accumulo/user_manual_1.4-incubating/Writing_Accumulo_Clients.html
+++ websites/staging/accumulo/trunk/content/accumulo/user_manual_1.4-incubating/Writing_Accumulo_Clients.html
Wed Feb 15 20:35:46 2012
@@ -59,7 +59,7 @@
 <li><a href="/accumulo/source.html">Source Code</a></li>
 <li><a href="">Issues</a></li>
-<li><a href="">Builds</a></li>
+<li><a href="">Builds</a></li>
 <h1 id="documentation">Documentation</h1>
@@ -96,11 +96,28 @@
 <p><a id=CHILD_LINKS></a><strong>Subsections</strong></p>
+<li><a href="Writing_Accumulo_Clients.html#Running_Client_Code">Running Client
+<li><a href="Writing_Accumulo_Clients.html#Connecting">Connecting</a></li>
 <li><a href="Writing_Accumulo_Clients.html#Writing_Data">Writing Data</a></li>
 <li><a href="Writing_Accumulo_Clients.html#Reading_Data">Reading Data</a></li>
 <hr />
 <h2 id="a_idwriting_accumulo_clientsa_writing_accumulo_clients"><a id=Writing_Accumulo_Clients></a>
Writing Accumulo Clients</h2>
+<h2 id="a_idrunning_client_codea_running_client_code"><a id=Running_Client_Code></a>
Running Client Code</h2>
+<p>There are multiple ways to run Java code that uses Accumulo. Below is a list of
the different ways to execute client code. </p>
+<li>using java executable </li>
+<li>using the accumulo script </li>
+<li>using the tool script </li>
+<p>Inorder to run client code written to run against Accumulo, you will need to include
the jars that Accumulo depends on in your classpath. Accumulo client code depends on Hadoop
and Zookeeper. For Hadoop add the hadoop core jar, all of the jars in the Hadoop lib directory,
and the conf directory to the classpath. For Zookeeper 3.3 you only need to add the Zookeeper
jar, and not what is in the Zookeeper lib directory. You can run the following command on
a configured Accumulo system to see what its using for its classpath. </p>
+<div class="codehilite"><pre><span class="nv">$ACCUMULO_HOME</span><span
class="sr">/bin/</span><span class="n">accumulo</span> <span class="n">classpath</span>
+<p>Another option for running your code is to put a jar file in $ACCUMULO_HOME/lib/ext.
After doing this you can use the accumulo script to execute your code. For example if you
create a jar containing the class and placed that in lib/ext, then you could
use the command $ACCUMULO_HOME/bin/accumulo to execute your code. </p>
+<p>If you are writing map reduce job that access Accumulo, then you can use the bin/
script to run those jobs. See the map reduce example. </p>
+<h2 id="a_idconnectinga_connecting"><a id=Connecting></a> Connecting</h2>
 <p>All clients must first identify the Accumulo instance to which they will be communicating.
Code to do this is as follows: </p>
 <div class="codehilite"><pre><span class="n">String</span> <span
class="n">instanceName</span> <span class="o">=</span> <span class="s">&quot;myinstance&quot;</span><span
 <span class="n">String</span> <span class="n">zooServers</span> <span
class="o">=</span> <span class="s">&quot;zooserver-one,zooserver-two&quot;</span>

View raw message