incubator-accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject svn commit: r1242107 - in /incubator/accumulo/trunk: ./ docs/src/user_manual/chapters/clients.tex src/core/ src/server/
Date Wed, 08 Feb 2012 21:25:33 GMT
Author: kturner
Date: Wed Feb  8 21:25:33 2012
New Revision: 1242107

URL: http://svn.apache.org/viewvc?rev=1242107&view=rev
Log:
ACCUMULO-371 Added info about how to run Accumulo client code to the user manual. (merged
form 1.4)

Modified:
    incubator/accumulo/trunk/   (props changed)
    incubator/accumulo/trunk/docs/src/user_manual/chapters/clients.tex
    incubator/accumulo/trunk/src/core/   (props changed)
    incubator/accumulo/trunk/src/server/   (props changed)

Propchange: incubator/accumulo/trunk/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed Feb  8 21:25:33 2012
@@ -1,3 +1,3 @@
 /incubator/accumulo/branches/1.3:1190280,1190413,1190420,1190427,1190500,1195622,1195625,1195629,1195635,1196044,1196054,1196057,1196071-1196072,1196106,1197066,1198935,1199383,1203683,1204625,1205547,1205880,1206169,1208031,1209124,1209526,1209532,1209539,1209541,1209587,1209657,1210518,1210571,1210596,1210598,1213424,1214320,1225006,1227215,1227231,1227611,1228195,1230180,1230736,1231043,1236873
 /incubator/accumulo/branches/1.3.5rc:1209938
-/incubator/accumulo/branches/1.4:1201902-1242061
+/incubator/accumulo/branches/1.4:1201902-1242105

Modified: incubator/accumulo/trunk/docs/src/user_manual/chapters/clients.tex
URL: http://svn.apache.org/viewvc/incubator/accumulo/trunk/docs/src/user_manual/chapters/clients.tex?rev=1242107&r1=1242106&r2=1242107&view=diff
==============================================================================
--- incubator/accumulo/trunk/docs/src/user_manual/chapters/clients.tex (original)
+++ incubator/accumulo/trunk/docs/src/user_manual/chapters/clients.tex Wed Feb  8 21:25:33
2012
@@ -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.
+
+\begin{itemize} 
+  \item using java executable 
+  \item using the accumulo script
+  \item using the tool script 
+\end{itemize}
+
+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.
+
+\small 
+\begin{verbatim} 
+$ACCUMULO_HOME/bin/accumulo classpath 
+\end{verbatim}
+\normalsize
+
+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 com.foo.Client and placed that in lib/ext, then you could use the command
+\texttt{\$ACCUMULO\_HOME/bin/accumulo com.foo.Client} to execute your code.
+
+If you are writing map reduce job that access Accumulo, then you can use the
+bin/tool.sh script to run those jobs.  See the map reduce example.
+
+\section{Connecting}
+
 All clients must first identify the Accumulo instance to which they will be
 communicating. Code to do this is as follows:
 

Propchange: incubator/accumulo/trunk/src/core/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed Feb  8 21:25:33 2012
@@ -1,3 +1,3 @@
 /incubator/accumulo/branches/1.3.5rc/src/core:1209938
 /incubator/accumulo/branches/1.3/src/core:1190280,1190413,1190420,1190427,1190500,1195622,1195625,1195629,1195635,1196044,1196054,1196057,1196071-1196072,1196106,1197066,1198935,1199383,1203683,1204625,1205547,1205880,1206169,1208031,1209124,1209526,1209532,1209539,1209541,1209587,1209657,1210518,1210571,1210596,1210598,1213424,1214320,1225006,1227215
-/incubator/accumulo/branches/1.4/src/core:1201902-1242061
+/incubator/accumulo/branches/1.4/src/core:1201902-1242105

Propchange: incubator/accumulo/trunk/src/server/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed Feb  8 21:25:33 2012
@@ -1,3 +1,3 @@
 /incubator/accumulo/branches/1.3.5rc/src/server:1209938
 /incubator/accumulo/branches/1.3/src/server:1190280,1190413,1190420,1190427,1190500,1195622,1195625,1195629,1195635,1196044,1196054,1196057,1196071-1196072,1196106,1197066,1198935,1199383,1203683,1204625,1205547,1205880,1206169,1208031,1209124,1209526,1209532,1209539,1209541,1209587,1209657,1210518,1210571,1210596,1210598,1213424,1214320,1225006,1227215,1227231,1227611
-/incubator/accumulo/branches/1.4/src/server:1201902-1242061
+/incubator/accumulo/branches/1.4/src/server:1201902-1242105



Mime
View raw message