accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r951304 - in /websites/staging/accumulo/trunk/content: ./ release_notes/1.7.0.html
Date Thu, 14 May 2015 21:49:57 GMT
Author: buildbot
Date: Thu May 14 21:49:56 2015
New Revision: 951304

Log:
Staging update by buildbot for accumulo

Modified:
    websites/staging/accumulo/trunk/content/   (props changed)
    websites/staging/accumulo/trunk/content/release_notes/1.7.0.html

Propchange: websites/staging/accumulo/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu May 14 21:49:56 2015
@@ -1 +1 @@
-1679120
+1679463

Modified: websites/staging/accumulo/trunk/content/release_notes/1.7.0.html
==============================================================================
--- websites/staging/accumulo/trunk/content/release_notes/1.7.0.html (original)
+++ websites/staging/accumulo/trunk/content/release_notes/1.7.0.html Thu May 14 21:49:56 2015
@@ -209,6 +209,41 @@ Latest 1.5 release: <strong>1.5.2</stron
     <h1 class="title">Apache Accumulo 1.7.0 Release Notes</h1>
 
     <p>Apache Accumulo 1.7.0 is a release that needs to be described</p>
+<h1 id="draft-draft-draft-draft-draft-draft">DRAFT DRAFT DRAFT DRAFT DRAFT DRAFT</h1>
+<h3 id="user-initiated-compaction-strategies">User Initiated Compaction Strategies</h3>
+<p>Per table compaction strategies were added in 1.6.0.  In 1.7.0 the ability to
+specify a compaction strategy for a user initiated compaction was added in
+<a href="https://issues.apache.org/jira/browse/ACCUMULO-1798">ACCUMULO-1798</a>.
  This allows surgical compactions on a subset 
+of tablets files.  Previously a user initiated compaction would compact all 
+files in a tablet.</p>
+<p>In the Java API, this new feature can be accessed in the following way :</p>
+<div class="codehilite"><pre>   <span class="n">Connection</span>
<span class="n">conn</span> <span class="p">=</span> <span class="p">...</span>
+   <span class="n">CompactionStrategyConfig</span> <span class="n">csConfig</span>
<span class="p">=</span> <span class="n">new</span> <span class="n">CompactionStrategyConfig</span><span
class="p">(</span><span class="n">strategyClassName</span><span class="p">).</span><span
class="n">setOptions</span><span class="p">(</span><span class="n">strategyOpts</span><span
class="p">);</span>
+   <span class="n">CompactionConfig</span> <span class="n">compactionConfig</span>
<span class="p">=</span> <span class="n">new</span> <span class="n">CompactionConfig</span><span
class="p">().</span><span class="n">setCompactionStrategy</span><span
class="p">(</span><span class="n">csConfig</span><span class="p">);</span>
+   <span class="n">connector</span><span class="p">.</span><span
class="n">tableOperations</span><span class="p">().</span><span class="n">compact</span><span
class="p">(</span><span class="n">tableName</span><span class="p">,</span>
<span class="n">compactionConfig</span><span class="p">)</span>
+</pre></div>
+
+
+<p>In <a href="https://issues.apache.org/jira/browse/ACCUMULO-3134">ACCUMULO-3134</a>
the shell's compact command was modified to 
+enable selecting which files to compact based on size, name, and path.  Options 
+were also added to the shell's compaction command to allow setting RFile options
+for the compaction output.  Setting the output options could be useful for 
+testing.  For example, one tablet to be compacted using snappy.</p>
+<p>The following is an example shell command that compacts all files less than
+10MB, if the tablet has at least two files that meet this criteria.  If a
+tablet had a 100MB, 50MB, 7MB, and 5MB file then the 7MB and 5MB files would be
+compacted.  If a tablet had a 100MB and 5MB file, then nothing would be done
+because there are not at least two files meeting the selection criteria.</p>
+<div class="codehilite"><pre>   <span class="n">compact</span> <span
class="o">-</span><span class="n">t</span> <span class="n">foo</span>
<span class="o">--</span><span class="n">min</span><span class="o">-</span><span
class="n">files</span> 2 <span class="o">--</span><span class="n">sf</span><span
class="o">-</span><span class="n">lt</span><span class="o">-</span><span
class="n">esize</span> 10<span class="n">M</span>
+</pre></div>
+
+
+<p>The following is an example shell command that compacts all bulk imported files
+in a table.</p>
+<div class="codehilite"><pre>   <span class="n">compact</span> <span
class="o">-</span><span class="n">t</span> <span class="n">foo</span>
<span class="o">--</span><span class="n">sf</span><span class="o">-</span><span
class="n">ename</span> <span class="n">I</span><span class="o">.*</span>
+</pre></div>
+
+
 <h2 id="notable-bug-fixes">Notable Bug Fixes</h2>
 <h3 id="bug-fix-1">Bug Fix 1</h3>
 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.



Mime
View raw message