accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject svn commit: r1483504 - in /accumulo/branches/1.5/docs/src/main/latex/accumulo_user_manual/chapters: analytics.tex clients.tex
Date Thu, 16 May 2013 18:46:30 GMT
Author: kturner
Date: Thu May 16 18:46:29 2013
New Revision: 1483504

URL: http://svn.apache.org/r1483504
Log:
ACCUMULO-970 use reasonable defaults for batchwriter in documentation

Modified:
    accumulo/branches/1.5/docs/src/main/latex/accumulo_user_manual/chapters/analytics.tex
    accumulo/branches/1.5/docs/src/main/latex/accumulo_user_manual/chapters/clients.tex

Modified: accumulo/branches/1.5/docs/src/main/latex/accumulo_user_manual/chapters/analytics.tex
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/docs/src/main/latex/accumulo_user_manual/chapters/analytics.tex?rev=1483504&r1=1483503&r2=1483504&view=diff
==============================================================================
--- accumulo/branches/1.5/docs/src/main/latex/accumulo_user_manual/chapters/analytics.tex
(original)
+++ accumulo/branches/1.5/docs/src/main/latex/accumulo_user_manual/chapters/analytics.tex
Thu May 16 18:46:29 2013
@@ -146,8 +146,8 @@ AccumuloOutputFormat.setZooKeeperInstanc
 
 \small
 \begin{verbatim}
-AccumuloOutputFormat.setMaxLatency(job, 300); // milliseconds
-AccumuloOutputFormat.setMaxMutationBufferSize(job, 5000000); // bytes
+AccumuloOutputFormat.setMaxLatency(job, 300000); // milliseconds
+AccumuloOutputFormat.setMaxMutationBufferSize(job, 50000000); // bytes
 \end{verbatim}
 \normalsize
 

Modified: accumulo/branches/1.5/docs/src/main/latex/accumulo_user_manual/chapters/clients.tex
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/docs/src/main/latex/accumulo_user_manual/chapters/clients.tex?rev=1483504&r1=1483503&r2=1483504&view=diff
==============================================================================
--- accumulo/branches/1.5/docs/src/main/latex/accumulo_user_manual/chapters/clients.tex (original)
+++ accumulo/branches/1.5/docs/src/main/latex/accumulo_user_manual/chapters/clients.tex Thu
May 16 18:46:29 2013
@@ -100,10 +100,10 @@ Mutations are added to a BatchWriter thu
 
 \small
 \begin{verbatim}
+
+//BatchWriterConfig has reasonable defaults
 BatchWriterConfig config = new BatchWriterConfig();
-config.setMaxMemory(1000000L); // bytes to store before sending a batch
-config.setMaxLatency(1000L);   // milliseconds to wait before sending
-config.maxWriteThreads(10);    // number of threads used to write to tablet servers
+config.setMaxMemory(10000000L); // bytes available to batchwriter for buffering mutations
 
 BatchWriter writer = conn.createBatchWriter("table", config)
 



Mime
View raw message