全部課程
發(fā)布時(shí)間: 2019-06-13 10:54:36
使用HBase Shell為MOB配置列:

示例23.使用Java API為MOB配置列:

使用HBase Shell配置MOB壓縮策略:

如果一個(gè)mob文件的大小小于默認(rèn)值1280MB,它被認(rèn)為是一個(gè)小文件,需要在mob compaction中合并。

HBase中提供了實(shí)用程序org.apache.hadoop.hbase.IntegrationTestIngestWithMOB以幫助測(cè)試MOB功能。該實(shí)用程序運(yùn)行如下:

MOB緩存配置示例:
<property>
<name>hbase.mob.file.cache.size</name>
<value>1000</value>
<description>
Number of opened file handlers to cache.
A larger value will benefit reads by providing more file handlers per mob
file cache and would reduce frequent file opening and closing.
However, if this is set too high, this could lead to a "too many opened file handers"
The default value is 1000.
</description></property>
<property>
<name>hbase.mob.cache.evict.period</name>
<value>3600</value>
<description>
The amount of time in seconds after which an unused file is evicted from the
MOB cache. The default value is 3600 seconds.
</description></property>
<property>
<name>hbase.mob.cache.evict.remain.ratio</name>
<value>0.5f</value>
<description>
A multiplier (between 0.0 and 1.0), which determines how many files remain cached
after the threshold of files that remains cached after a cache eviction occurs
which is triggered by reaching the `hbase.mob.file.cache.size` threshold.
The default value is 0.5f, which means that half the files (the least-recently-used
ones) are evicted.
</description></property>
?
下一篇: H5培訓(xùn)_CSS選擇器介紹