Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use split Policy in hbase

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "how to use split strategy in hbase". The content is simple and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to use split strategy in hbase".

The split strategy used in this release is IncreasingToUpperBoundRegionSplitPolicy. To be exact, he is the strategy after version 0.94. Class is org/apache/hadoop/hbase/regionserver/IncreasingToUpperBoundRegionSplitPolicy.java

First take a look at the configureForRegion method, where initialSize will be used later. The main purpose of this method is to initialize initialSize.

@ Override protected void configureForRegion (HRegion region) {super.configureForRegion (region); Configuration conf = getConf (); / / if hbase.increasing.policy.initial.size is set, use the user-set this.initialSize = conf.getLong ("hbase.increasing.policy.initial.size",-1); if (this.initialSize > 0) {return } / / if it is not set, see if hbase.hregion.memstore.flush.size has / / if not, then initialSize=2*hbase.hregion.memstore.flush.size, / / if not, use the default 1024 "1024" 128L (128m) HTableDescriptor desc = region.getTableDesc (); if (desc! = null) {this.initialSize = 2*desc.getMemStoreFlushSize ();} if (this.initialSize)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report