Updated on 2024-11-29 GMT+08:00

Enabling Succinct Trie

Scenario

Succinct Trie optimizes the HFile Block structure. It uses less cache space, reduces the cache data eviction rate, and improves the cache hit ratio. You can enable this feature to improve performance of tasks that frequently read data.

If Succinct Trie is enabled, open-source versions of HFiles are incompatible. If you are using an HFile to migrate data to MRS 3.2.1- or an earlier version, disable this feature and then run the major compaction command on the data table to generate a new HFile file.

Procedure

  1. Log in to FusionInsight Manager of the cluster and choose Cluster > Services > HBase > Configurations.
  2. In the search box, search for and modify the configuration in Table 1 to enable Succinct Trie.

    Table 1 Succinct Trie parameters

    Parameter

    Description

    New Value

    Must Be Modified

    hbase.write.tries

    Whether to enable Succinct Tries

    • true: Enable Succinct Tries
    • false: Disable Succinct Tries

    true

    Yes

    hbase.tries.cache.enabled

    If this parameter is set to true, LoudsTriesLruBlockCache uses off-heap memory to cache index blocks, reducing the eviction rate of index blocks and improving cache efficiency.

    true

    No

    hbase.index.block.cache.size

    Cache size ratio of the LoudsTriesLruBlockCache index block to the blocksize

    If the value of blocksize is small, you are advised to increase the value.

    -

    No

  3. Click Save.
  4. Click Instances, select all RegionServer instances, choose More > Instance Rolling Restart, and enter the password of the user to restart the RegionServer instances.