accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1242104 - /incubator/accumulo/branches/1.4/docs/src/user_manual/chapters/clients.tex
Date Wed, 08 Feb 2012 21:21:57 GMT
Author: kturner
Date: Wed Feb  8 21:21:57 2012
New Revision: 1242104

ACCUMULO-371 Added info about how to run Accumulo client code to the user manual.


Modified: incubator/accumulo/branches/1.4/docs/src/user_manual/chapters/clients.tex
--- incubator/accumulo/branches/1.4/docs/src/user_manual/chapters/clients.tex (original)
+++ incubator/accumulo/branches/1.4/docs/src/user_manual/chapters/clients.tex Wed Feb  8 21:21:57
@@ -16,6 +16,42 @@
 \chapter{Writing Accumulo Clients}
+\section{Running Client Code}
+There are multiple ways to run Java code that uses Accumulo.  Below is a list
+of the different ways to execute client code.
+  \item using java executable 
+  \item using the accumulo script
+  \item using the tool script 
+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.
+$ACCUMULO_HOME/bin/accumulo classpath 
+Another option for running your code is to put a jar file in
+\texttt{\$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
+\texttt{\$ACCUMULO\_HOME/bin/accumulo} to execute your code.
+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.
 All clients must first identify the Accumulo instance to which they will be
 communicating. Code to do this is as follows:

View raw message