From 46ffa85982c0d56a1d3ea98f322bf4786dd50ef3 Mon Sep 17 00:00:00 2001 From: stack Date: Fri, 26 Feb 2016 13:49:26 -0800 Subject: [PATCH] HBASE-15351 Fix description of hbase.bucketcache.size in hbase-default.xml --- .../src/main/resources/hbase-default.xml | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/hbase-common/src/main/resources/hbase-default.xml b/hbase-common/src/main/resources/hbase-default.xml index ca104cd66ed..94f1e6dc4c7 100644 --- a/hbase-common/src/main/resources/hbase-default.xml +++ b/hbase-common/src/main/resources/hbase-default.xml @@ -779,6 +779,40 @@ possible configurations would overwhelm and obscure the important. index block in a multi-level block index grows to this size, the block is written out and a new block is started. + + hbase.bucketcache.ioengine + + Where to store the contents of the bucketcache. One of: heap, + offheap, or file. If a file, set it to file:PATH_TO_FILE. See + http://hbase.apache.org/book.html#offheap.blockcache for more information. + + + + hbase.bucketcache.combinedcache.enabled + true + Whether or not the bucketcache is used in league with the LRU + on-heap block cache. In this mode, indices and blooms are kept in the LRU + blockcache and the data blocks are kept in the bucketcache. + + + hbase.bucketcache.size + + A float that EITHER represents a percentage of total heap memory + size to give to the cache (if < 1.0) OR, it is the total capacity in + megabytes of BucketCache. Default: 0.0 + + + hbase.bucketcache.sizes + + A comma-separated list of sizes for buckets for the bucketcache. + Can be multiple sizes. List block sizes in order from smallest to largest. + The sizes you use will depend on your data access patterns. + Must be a multiple of 1024 else you will run into + 'java.io.IOException: Invalid HFile block magic' when you go to read from cache. + If you specify no values here, then you pick up the default bucketsizes set + in code (See BucketAllocator#DEFAULT_BUCKET_SIZES). + + hfile.format.version 3 @@ -805,7 +839,7 @@ possible configurations would overwhelm and obscure the important. hbase.rs.cacheblocksonwrite false Whether an HFile block should be added to the block cache when the - block is finished. + block is finished. hbase.rpc.timeout