Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21460

correct Document Configurable Bucket Sizes in bucketCache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1
    • documentation
    • None
    • Reviewed

    Description

      we use the bucket cache(offheap),found the doc was error,

      the property bucket sizes shoul be "hbase.bucketcache.bucket.sizes"  instead of "hfile.block.cache.sizes"

      CacheConfig.java
      /**

      • A comma-delimited array of values for use as bucket sizes.
        */
        public static final String BUCKET_CACHE_BUCKETS_KEY = "hbase.bucketcache.bucket.sizes";

      the doc was:


       
      HBASE-10641 introduced the ability to configure multiple sizes for the buckets of the BucketCache, in HBase 0.98 and newer. To configurable multiple bucket sizes, configure the new property hfile.block.cache.sizes (instead of hfile.block.cache.size) to a comma-separated list of block sizes, ordered from smallest to largest, with no spaces. The goal is to optimize the bucket sizes based on your data access patterns. The following example configures buckets of size 4096 and 8192.
      <property> <name>hfile.block.cache.sizes</name> <value>4096,8192</value> </property>

      Attachments

        1. HBASE-21460.v1.patch
          2 kB
          Yechao Chen
        2. HBASE-21460.v2.patch
          2 kB
          Yechao Chen

        Issue Links

          Activity

            People

              chenyechao Yechao Chen
              chenyechao Yechao Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: