diff --git a/hbase-common/src/main/resources/hbase-default.xml b/hbase-common/src/main/resources/hbase-default.xml index d7bdfc7cf66..98a18c0f533 100644 --- a/hbase-common/src/main/resources/hbase-default.xml +++ b/hbase-common/src/main/resources/hbase-default.xml @@ -673,7 +673,7 @@ possible configurations would overwhelm and obscure the important. hbase.hstore.compaction.min.size 134217728 A StoreFile smaller than this size will always be eligible for minor compaction. - HFiles this size or larger are evaluated by hbase.store.compaction.ratio to determine if + HFiles this size or larger are evaluated by hbase.hstore.compaction.ratio to determine if they are eligible. Because this limit represents the "automatic include"limit for all StoreFiles smaller than this value, this value may need to be reduced in write-heavy environments where many StoreFiles in the 1-2 MB range are being flushed, because every diff --git a/src/main/docbkx/book.xml b/src/main/docbkx/book.xml index 36f2257cf3e..cdfe5b2ca47 100644 --- a/src/main/docbkx/book.xml +++ b/src/main/docbkx/book.xml @@ -3262,7 +3262,7 @@ myHtd.setValue(HTableDescriptor.SPLIT_POLICY, MyCustomSplitPolicy.class.getName( For each StoreFile, its size multiplied by - hbase.store.compaction.ratio (or + hbase.hstore.compaction.ratio (or hbase.hstore.compaction.ratio.offpeak if off-peak hours are configured and it is during off-peak hours) is less than the sum of the sizes of the other HFiles in the @@ -3359,10 +3359,10 @@ myHtd.setValue(HTableDescriptor.SPLIT_POLICY, MyCustomSplitPolicy.class.getName( locality on the StoreFile. - The value of the hbase.store.compaction.ratio parameter + The value of the hbase.hstore.compaction.ratio parameter is multiplied by the sum of StoreFiles smaller than a given file, to determine whether that StoreFile is selected for compaction during a minor compaction. For - instance, if hbase.store.compaction.ratio is 1.2, FileX is 5 mb, FileY is 2 mb, + instance, if hbase.hstore.compaction.ratio is 1.2, FileX is 5 mb, FileY is 2 mb, and FileZ is 3 mb: 5 <= 1.2 x (2 + 3) or 5 <= 6 In this scenario, FileX is eligible for minor compaction. If FileX were 7 @@ -3438,7 +3438,7 @@ myHtd.setValue(HTableDescriptor.SPLIT_POLICY, MyCustomSplitPolicy.class.getName( hbase.hstore.compaction.min.size A StoreFile smaller than this size will always be eligible for minor compaction. StoreFiles this size or larger are evaluated by - hbase.store.compaction.ratio to determine if they are + hbase.hstore.compaction.ratio to determine if they are eligible. Because this limit represents the "automatic include" limit for all StoreFiles smaller than this value, this value may need to be reduced @@ -3579,7 +3579,7 @@ myHtd.setValue(HTableDescriptor.SPLIT_POLICY, MyCustomSplitPolicy.class.getName( Important knobs: - hbase.store.compaction.ratio Ratio used in compaction file + hbase.hstore.compaction.ratio Ratio used in compaction file selection algorithm (default 1.2f). @@ -3614,7 +3614,7 @@ myHtd.setValue(HTableDescriptor.SPLIT_POLICY, MyCustomSplitPolicy.class.getName( TestCompactSelection. - hbase.store.compaction.ratio = 1.0f + hbase.hstore.compaction.ratio = 1.0f hbase.hstore.compaction.min = 3 (files) @@ -3660,7 +3660,7 @@ myHtd.setValue(HTableDescriptor.SPLIT_POLICY, MyCustomSplitPolicy.class.getName( This example mirrors an example from the unit test TestCompactSelection. - hbase.store.compaction.ratio = 1.0f + hbase.hstore.compaction.ratio = 1.0f hbase.hstore.compaction.min = 3 (files) @@ -3702,7 +3702,7 @@ myHtd.setValue(HTableDescriptor.SPLIT_POLICY, MyCustomSplitPolicy.class.getName( This example mirrors an example from the unit test TestCompactSelection. - hbase.store.compaction.ratio = 1.0f + hbase.hstore.compaction.ratio = 1.0f hbase.hstore.compaction.min = 3 (files)