accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1679463 - /accumulo/site/trunk/content/release_notes/1.7.0.mdtext
Date Thu, 14 May 2015 21:49:43 GMT
Author: kturner
Date: Thu May 14 21:49:42 2015
New Revision: 1679463

Add section about user initiated compaction strategies to release notes


Modified: accumulo/site/trunk/content/release_notes/1.7.0.mdtext
--- accumulo/site/trunk/content/release_notes/1.7.0.mdtext (original)
+++ accumulo/site/trunk/content/release_notes/1.7.0.mdtext Thu May 14 21:49:42 2015
@@ -18,6 +18,47 @@ Notice:    Licensed to the Apache Softwa
 Apache Accumulo 1.7.0 is a release that needs to be described
+### User Initiated Compaction Strategies
+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
+[ACCUMULO-1798][ACCUMULO-1798].   This allows surgical compactions on a subset 
+of tablets files.  Previously a user initiated compaction would compact all 
+files in a tablet.
+In the Java API, this new feature can be accessed in the following way :
+       Connection conn = ...
+       CompactionStrategyConfig csConfig = new CompactionStrategyConfig(strategyClassName).setOptions(strategyOpts);
+       CompactionConfig compactionConfig = new CompactionConfig().setCompactionStrategy(csConfig);
+       connector.tableOperations().compact(tableName, compactionConfig)
+In [ACCUMULO-3134][ACCUMULO-3134] 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.
+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.
+       compact -t foo --min-files 2 --sf-lt-esize 10M
+The following is an example shell command that compacts all bulk imported files
+in a table.
+       compact -t foo --sf-ename I.*
 ## Notable Bug Fixes
 ### Bug Fix 1
@@ -120,4 +161,7 @@ and, in HDFS High-Availability instances
\ No newline at end of file
\ No newline at end of file

View raw message