You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by kt...@apache.org on 2013/05/16 20:46:30 UTC

svn commit: r1483504 - in /accumulo/branches/1.5/docs/src/main/latex/accumulo_user_manual/chapters: analytics.tex clients.tex

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)