天天看點

大資料技術----HBase配置檔案說明

以下是hbase-site.xml檔案的相關配置項:

1 ,hbase.rootdir

RegionServer 的共享目錄,用來持久化 HBase資料。

預設存儲在/tmp,HBase重新開機會資料丢失,是以需要配置相應的目錄,一般為HDFS目錄。

例如:namenode 運作在namenode.example.org 的 9090 端口,則需要設定hdfs://namenode.example.org:9000/hbase

2 ,hbase.master.port

HBase的Master的端口,預設: 60000

3 ,hbase.cluster.distributed

HBase的運作模式

false是單機模式,

true是分布式模式,分為完全分布式、僞分布式

4 ,hbase.tmp.dir

本地檔案系統的臨時目錄。可以修改到一個更為持久的目錄上。(/tmp會在重新開機時清除)

5 ,hbase.local.dir

作為本地存儲,位于本地檔案系統的路徑。

預設: ${hbase.tmp.dir}/local/

6 ,hbase.master.info.port

HBase Master web 界面端口. 設定為-1 意味着你不想讓他運作。

0.98 版本以後預設: 16010 以前是 60010

hbase.master.info.bindAddress

HBase Master web 界面綁定的端口

預設: 0.0.0.0

7,hbase.client.write.buffer

HTable用戶端的寫緩沖的預設大小。這個值越大,需要消耗的記憶體越大。因為緩沖在用戶端和服務端都有執行個體,是以需要消耗用戶端和服務端兩個地方的記憶體。得到的好處是,可以減少RPC的次數。可以這樣估算伺服器端被占用的記憶體: hbase.client.write.buffer * hbase.regionserver.handler.count

預設: 2097152

8,hbase.regionserver.port

HBase RegionServer綁定的端口

0.98 以前預設: 60020 以後預設是:16020

hbase.regionserver.info.port

HBase RegionServer web 界面綁定的端口 設定為 -1 意味這你不想與運作 RegionServer 界面.

0.98 以前預設: 60030 以後預設是:16030

9 ,hbase.regionserver.info.port.auto

Master或RegionServer是否要動态搜一個可以用的端口來綁定界面。當hbase.regionserver.info.port已經被占用的時候,可以搜一個空閑的端口綁定。這個功能在測試的時候很有用。預設關閉。

預設: false

hbase.regionserver.info.bindAddress

HBase RegionServer web 界面的IP位址

預設: 0.0.0.0

10,hbase.regionserver.class

RegionServer 使用的接口。用戶端打開代理來連接配接region server的時候會使用到。

預設: org.apache.hadoop.hbase.ipc.HRegionInterface

hbase.client.pause

通常的用戶端暫停時間。最多的用法是用戶端在重試前的等待時間。比如失敗的get操作和region查詢操作等都很可能用到。

預設: 1000

11 ,hbase.client.retries.number

最大重試次數。所有需重試操作的最大值。例如從root region伺服器擷取root region,Get單元值,行Update操作等等。這是最大重試錯誤的值。 Default: 10.

0.98 以前預設: 10 以後預設是:35

hbase.bulkload.retries.number

最大重試次數。 原子批加載嘗試的疊代最大次數。 0 永不放棄。預設: 0.

預設: 0

12 ,hbase.client.scanner.caching

當調用Scanner的next方法,而值又不在緩存裡的時候,從服務端一次擷取的行數。越大的值意味着Scanner會快一些,但是會占用更多的記憶體。當緩沖被占滿的時候,next方法調用會越來越慢。慢到一定程度,可能會導緻逾時。例如超過了hbase.regionserver.lease.period。

預設: 100

13,hbase.client.keyvalue.maxsize

一個KeyValue執行個體的最大size.這個是用來設定存儲檔案中的單個entry的大小上界。因為一個KeyValue是不能分割的,是以可以避免因為資料過大導緻region不可分割。明智的做法是把它設為可以被最大region size整除的數。如果設定為0或者更小,就會禁用這個檢查。預設10MB。

預設: 10485760

14,hbase.regionserver.lease.period

用戶端租用HRegion server 期限,即逾時閥值。機關是毫秒。預設情況下,用戶端必須在這個時間内發一條資訊,否則視為死掉。

預設: 60000

15 ,hbase.regionserver.handler.count

RegionServers受理的RPC Server執行個體數量。對于Master來說,這個屬性是Master受理的handler數量

預設: 10

16,hbase.regionserver.msginterval

RegionServer 發消息給 Master 時間間隔,機關是毫秒

預設: 3000

17 ,hbase.regionserver.optionallogflushinterval

将Hlog同步到HDFS的間隔。如果Hlog沒有積累到一定的數量,到了時間,也會觸發同步。預設是1秒,機關毫秒。

預設: 1000

18 ,hbase.regionserver.regionSplitLimit

region的數量到了這個值後就不會在分裂了。這不是一個region數量的硬性限制。但是起到了一定指導性的作用,到了這個值就該停止分裂了。預設是MAX_INT.就是說不阻止分裂。

預設: 2147483647

19 ,hbase.regionserver.logroll.period

送出commit log的間隔,不管有沒有寫足夠的值。

預設: 3600000

20,hbase.regionserver.hlog.reader.impl

HLog file reader 的實作.

預設: org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogReader

20 ,hbase.regionserver.hlog.writer.impl

HLog file writer 的實作.

預設: org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogWriter

20 ,hbase.regionserver.nbreservationblocks

儲備的記憶體block的數量(譯者注:就像石油儲備一樣)。當發生out of memory 異常的時候,我們可以用這些記憶體在RegionServer停止之前做清理操作。

預設: 4

21 ,hbase.zookeeper.dns.interface

當使用DNS的時候,Zookeeper用來上報的IP位址的網絡接口名字。

預設: default

22 ,hbase.zookeeper.dns.nameserver

當使用DNS的時候,Zookeepr使用的DNS的域名或者IP 位址,Zookeeper用它來确定和master用來進行通訊的域名.

預設: default

23 ,hbase.regionserver.dns.interface

當使用DNS的時候,RegionServer用來上報的IP位址的網絡接口名字。

預設: default

24 ,hbase.regionserver.dns.nameserver

當使用DNS的時候,RegionServer使用的DNS的域名或者IP 位址,RegionServer用它來确定和master用來進行通訊的域名.

預設: default

25 ,hbase.master.dns.interface

當使用DNS的時候,Master用來上報的IP位址的網絡接口名字。

預設: default

hbase.master.dns.nameserver

當使用DNS的時候,RegionServer使用的DNS的域名或者IP 位址,Master用它來确定用來進行通訊的域名.

預設: default

26 ,hbase.balancer.period

Master執行region balancer的間隔。

預設: 300000

27 ,hbase.regions.slop

當任一區域伺服器有average + (average * slop)個分區,将會執行重新均衡。預設 20% slop .

預設:0.2

28 ,hbase.master.logcleaner.ttl

Hlog存在于.oldlogdir 檔案夾的最長時間, 超過了就會被 Master 的線程清理掉.

預設: 600000

29 ,hbase.master.logcleaner.plugins

LogsCleaner服務會執行的一組LogCleanerDelegat。值用逗号間隔的文本表示。這些WAL/HLog cleaners會按順序調用。可以把先調用的放在前面。你可以實作自己的LogCleanerDelegat,加到Classpath下,然後在這裡寫下類的全稱。一般都是加在預設值的前面。

預設: org.apache.hadoop.hbase.master.TimeToLiveLogCleaner

30 ,hbase.regionserver.global.memstore.upperLimit

單個region server的全部memtores的最大值。超過這個值,一個新的update操作會被挂起,強制執行flush操作。

預設: 0.4

31 ,hbase.regionserver.global.memstore.lowerLimit

當強制執行flush操作的時候,當低于這個值的時候,flush會停止。預設是堆大小的 35% . 如果這個值和 hbase.regionserver.global.memstore.upperLimit 相同就意味着當update操作因為記憶體限制被挂起時,會盡量少的執行flush(譯者注:一旦執行flush,值就會比下限要低,不再執行)

預設: 0.35

32 ,hbase.server.thread.wakefrequency

service工作的sleep間隔,機關毫秒。 可以作為service線程的sleep間隔,比如log roller.

預設: 10000

33 ,hbase.server.versionfile.writeattempts

退出前嘗試寫版本檔案的次數。每次嘗試由 hbase.server.thread.wakefrequency 毫秒數間隔。

預設: 3

34 ,hbase.hregion.memstore.flush.size

當memstore的大小超過這個值的時候,會flush到磁盤。這個值被一個線程每隔hbase.server.thread.wakefrequency檢查一下。

預設:134217728

35 ,hbase.hregion.preclose.flush.size

當一個region中的memstore的大小大于這個值的時候,我們又觸發了close.會先運作“pre-flush”操作,清理這個需要關閉的memstore,然後将這個region下線。當一個region下線了,我們無法再進行任何寫操作。如果一個memstore很大的時候,flush操作會消耗很多時間。"pre-flush"操作意味着在region下線之前,會先把memstore清空。這樣在最終執行close操作的時候,flush操作會很快。

預設: 5242880

36 ,hbase.hregion.memstore.block.multiplier

如果memstore有hbase.hregion.memstore.block.multiplier倍數的hbase.hregion.flush.size的大小,就會阻塞update操作。這是為了預防在update高峰期會導緻的失控。如果不設上界,flush的時候會花很長的時間來合并或者分割,最壞的情況就是引發out of memory異常。(譯者注:記憶體操作的速度和磁盤不比對,需要等一等。原文似乎有誤)

預設: 2

37 ,hbase.hregion.memstore.mslab.enabled

體驗特性:啟用memStore配置設定本地緩沖區。這個特性是為了防止在大量寫負載的時候堆的碎片過多。這可以減少GC操作的頻率。(GC有可能會Stop the world)(譯者注:實作的原理相當于預配置設定記憶體,而不是每一個值都要從堆裡配置設定)

38 ,預設: true

hbase.hregion.max.filesize

最大HStoreFile大小。若某個列族的HStoreFile增長達到這個值,這個Hegion會被切割成兩個。 預設: 10G.

預設:10737418240

39 ,hbase.hstore.compactionThreshold

當一個HStore含有多于這個值的HStoreFiles(每一個memstore flush産生一個HStoreFile)的時候,會執行一個合并操作,把這HStoreFiles寫成一個。這個值越大,需要合并的時間就越長。

預設: 3

40 ,hbase.hstore.blockingStoreFiles

當一個HStore含有多于這個值的HStoreFiles(每一個memstore flush産生一個HStoreFile)的時候,會執行一個合并操作,update會阻塞直到合并完成,直到超過了hbase.hstore.blockingWaitTime的值

預設: 7

41 ,hbase.hstore.blockingWaitTime

hbase.hstore.blockingStoreFiles所限制的StoreFile數量會導緻update阻塞,這個時間是來限制阻塞時間的。當超過了這個時間,HRegion會停止阻塞update操作,不過合并還有沒有完成。預設為90s.

預設: 90000

42 ,hbase.hstore.compaction.max

每個“小”合并的HStoreFiles最大數量。

預設: 10

43 ,hbase.hregion.majorcompaction

一個Region中的所有HStoreFile的major compactions的時間間隔。預設是1天。 設定為0就是禁用這個功能。

預設: 86400000

44 ,hbase.storescanner.parallel.seek.enable

允許 StoreFileScanner 并行搜尋 StoreScanner, 一個在特定條件下降低延遲的特性。

預設: false

45 ,hbase.storescanner.parallel.seek.threads

并行搜尋特性打開後,預設線程池大小。

預設: 10

46 ,hbase.mapreduce.hfileoutputformat.blocksize

MapReduce中HFileOutputFormat可以寫 storefiles/hfiles. 這個值是hfile的blocksize的最小值。通常在HBase寫Hfile的時候,bloocksize是由table schema(HColumnDescriptor)決定的,但是在mapreduce寫的時候,我們無法擷取schema中blocksize。這個值越小,你的索引就越大,你随機通路需要擷取的資料就越小。如果你的cell都很小,而且你需要更快的随機通路,可以把這個值調低。

預設: 65536

47 ,hfile.block.cache.size

配置設定給HFile/StoreFile的block cache占最大堆(-Xmx setting)的比例。預設0.25意思是配置設定25%,設定為0就是禁用,但不推薦。

預設:0.25

48 ,hbase.hash.type

哈希函數使用的雜湊演算法。可以選擇兩個值:: murmur (MurmurHash) 和 jenkins (JenkinsHash). 這個哈希是給 bloom filters用的.

預設: murmur

49 ,hfile.block.index.cacheonwrite

在index寫入的時候允許put無根(non-root)的多級索引塊到block cache裡,預設是false;

hfile.index.block.max.size:在多級索引的樹形結構裡,如果任何一層的block index達到這個配置大小,則block寫出,同時

替換上新的block,

預設是131072;

50 ,hfile.format.version

新檔案的HFile 格式版本,設定為1來測試向後相容,

預設是2;

51 ,io.storefile.bloom.block.size

一個聯合布隆過濾器的單一塊(chunk)的大小,這個值是一個逼近值,預設是131072;

hfile.block.bloom.cacheonwrite

對于組合布隆過濾器的内聯block開啟cache-on-write,

預設是false

52 ,hbase.rs.cacheblocksonwrite

當一個HFile block完成時是否寫入block cache,

預設是false

53 ,hbase.rpc.server.engine

hbase 做rpc server的排程管理類,實作自org.apache.hadoop.ipc.RpcServerEngine,

預設是org.apache.hadoop.hbase.ipc.ProtobufRpcServerEngine

54 ,hbase.ipc.client.tcpnodelay

預設是true,具體就是在tcp socket連接配接時設定 no delay

hbase.master.keytab.file

55 ,HMaster server驗證登入使用的kerberos keytab 檔案路徑。(譯者注:HBase使用Kerberos實作安全)

預設:

56 ,hbase.master.kerberos.principal

例如. “hbase/[email protected]”. HMaster運作需要使用 kerberos principal name. principal name 可以在: user/[email protected] 中擷取. 如果 “_HOST” 被用做hostname portion,需要使用實際運作的hostname來替代它。

預設:

57 ,hbase.regionserver.keytab.file

HRegionServer驗證登入使用的kerberos keytab 檔案路徑。

預設:

58 ,hbase.regionserver.kerberos.principal

例如. “hbase/[email protected]”. HRegionServer運作需要使用 kerberos principal name. principal name 可以在: user/[email protected] 中擷取. 如果 “_HOST” 被用做hostname portion,需要使用實際運作的hostname來替代它。在這個檔案中必須要有一個entry來描述 hbase.regionserver.keytab.file

預設:

59 ,hadoop.policy.file

RPC伺服器做權限認證時需要的安全政策配置檔案,在Hbase security開啟後使用,預設是habse-policy.xml;

hbase.superuser

Hbase security 開啟後的超級使用者配置,一系列由逗号隔開的user或者group;

hbase.auth.key.update.interval

Hbase security開啟後服務端更新認證key的間隔時間:預設是86400000毫秒;

hbase.auth.token.max.lifetime

Hbase security開啟後,認證token下發後的生存周期,預設是604800000毫秒

zookeeper.session.timeout

ZooKeeper 會話逾時.HBase把這個值傳遞改zk叢集,向他推薦一個會話的最大逾時時間。詳見http://hadoop.apache.org/zookeeper/docs/current/zookeeperProgrammers.html#ch_zkSessions "The client sends a requested timeout, the server responds with the timeout that it can give the client. "。 機關是毫秒

預設: 180000

60 ,zookeeper.znode.parent

ZooKeeper中的HBase的根ZNode。所有的HBase的ZooKeeper會用這個目錄配置相對路徑。預設情況下,所有的HBase的ZooKeeper檔案路徑是用相對路徑,是以他們會都去這個目錄下面。

預設: /hbase

61 ,zookeeper.znode.rootserver

ZNode 儲存的 根region的路徑. 這個值是由Master來寫,client和regionserver 來讀的。如果設為一個相對位址,父目錄就是 ${zookeeper.znode.parent}.預設情形下,意味着根region的路徑存儲在/hbase/root-region-server.

預設: root-region-server

zookeeper.znode.acl.parent

root znode的acl,預設acl;

62 ,hbase.coprocessor.region.classes

逗号分隔的Coprocessores清單,會被加載到預設所有表上。在自己實作了一個Coprocessor後,将其添加到Hbase的classpath并加入全限定名。也可以延遲加載,由HTableDescriptor指定;

63 ,hbase.coprocessor.master.classes

由HMaster程序加載的coprocessors,逗号分隔,全部實作org.apache.hadoop.hbase.coprocessor.MasterObserver,同coprocessor類似,加入classpath及全限定名;

63 ,hbase.zookeeper.quorum

Zookeeper叢集的位址清單,用逗号分割。例如:“host1.mydomain.com,host2.mydomain.com,host3.mydomain.com”.預設是localhost,是給僞分布式用的。要修改才能在完全分布式的情況下使用。如果在hbase-env.sh設定了HBASE_MANAGES_ZK,這些ZooKeeper節點就會和HBase一起啟動。

預設: localhost

64 ,hbase.zookeeper.peerport

ZooKeeper節點使用的端口。詳細參見:http://hadoop.apache.org/zookeeper/docs/r3.1.1/zookeeperStarted.html#sc_RunningReplicatedZooKeeper

預設: 2888

65 ,hbase.zookeeper.leaderport

ZooKeeper用來選擇Leader的端口,詳細參見:http://hadoop.apache.org/zookeeper/docs/r3.1.1/zookeeperStarted.html#sc_RunningReplicatedZooKeeper

預設: 3888

66 ,hbase.zookeeper.useMulti

Instructs HBase to make use of ZooKeeper’s multi-update functionality. This allows certain ZooKeeper operations to complete more quickly and prevents some issues with rare Replication failure scenarios (see the release note of HBASE-2611 for an example). IMPORTANT: only set this to true if all ZooKeeper servers in the cluster are on version 3.4+ and will not be downgraded. ZooKeeper versions before 3.4 do not support multi-update and will not fail gracefully if multi-update is invoked (see ZOOKEEPER-1495).

Default: false

67 ,hbase.zookeeper.property.initLimit

ZooKeeper的zoo.conf中的配置。 初始化synchronization階段的ticks數量限制

預設: 10

68 ,hbase.zookeeper.property.syncLimit

ZooKeeper的zoo.conf中的配置。 發送一個請求到獲得承認之間的ticks的數量限制

預設: 5

69 ,hbase.zookeeper.property.dataDir

ZooKeeper的zoo.conf中的配置。 快照的存儲位置

預設: ${hbase.tmp.dir}/zookeeper

70 ,hbase.zookeeper.property.clientPort

ZooKeeper的zoo.conf中的配置。 用戶端連接配接的端口

預設: 2181

71 ,hbase.zookeeper.property.maxClientCnxns

ZooKeeper的zoo.conf中的配置。 ZooKeeper叢集中的單個節點接受的單個Client(以IP區分)的請求的并發數。這個值可以調高一點,防止在單機和僞分布式模式中出問題。

預設: 300

72 ,hbase.rest.port

HBase REST server的端口

預設: 8080

73 ,hbase.rest.readonly

定義REST server的運作模式。可以設定成如下的值: false: 所有的HTTP請求都是被允許的 - GET/PUT/POST/DELETE. true:隻有GET請求是被允許的

預設: false

74 ,hbase.defaults.for.version.skip

Set to true to skip the ‘hbase.defaults.for.version’ check. Setting this to true can be useful in contexts other than the other side of a maven generation; i.e. running in an ide. You’ll want to set this boolean to true to avoid seeing the RuntimException complaint: “hbase-default.xml file seems to be for and old version of HBase (${hbase.version}), this version is X.X.X-SNAPSHOT”

Default: false

是否跳過hbase.defaults.for.version的檢查,

預設是false;

75 ,hbase.coprocessor.abortonerror

Set to true to cause the hosting server (master or regionserver) to abort if a coprocessor throws a Throwable object that is not IOException or a subclass of IOException. Setting it to true might be useful in development environments where one wants to terminate the server as soon as possible to simplify coprocessor failure analysis.

Default: false

如果coprocessor加載失敗或者初始化失敗或者抛出Throwable對象,則主機退出。設定為false會讓系統繼續運作,但是coprocessor的狀态會不一緻,是以一般debug時才會設定為false,

預設是true;

76 ,hbase.online.schema.update.enable

Set true to enable online schema changes. This is an experimental feature. There are known issues modifying table schemas at the same time a region split is happening so your table needs to be quiescent or else you have to be running with splits disabled.

Default: false

設定true來允許線上schema變更,

預設是true;

77 ,hbase.table.lock.enable

Set to true to enable locking the table in zookeeper for schema change operations. Table locking from master prevents concurrent schema modifications to corrupt table state.

Default: true

設定為true來允許在schema變更時zk鎖表,鎖表可以組織并發的schema變更導緻的表狀态不一緻,

預設是true;

78 ,dfs.support.append

Does HDFS allow appends to files? This is an hdfs config. set in here so the hdfs client will do append support. You must ensure that this config. is true serverside too when running hbase (You will have to restart your cluster after setting it).

Default: true

79 ,hbase.thrift.minWorkerThreads

The “core size” of the thread pool. New threads are created on every connection until this many threads are created.

Default: 16

線程池的core size,在達到這裡配置的量級後,新線程才會再新的連接配接創立時建立

預設是16;

80 ,hbase.thrift.maxWorkerThreads

The maximum size of the thread pool. When the pending request queue overflows, new threads are created until their number reaches this number. After that, the server starts dropping connections.

Default: 1000

顧名思義,最大線程數,達到這個數字後,伺服器開始drop連接配接,預設是1000;

81 ,hbase.thrift.maxQueuedRequests

The maximum number of pending Thrift connections waiting in the queue. If there are no idle threads in the pool, the server queues requests. Only when the queue overflows, new threads are added, up to hbase.thrift.maxQueuedRequests threads.

Default: 1000

Thrift連接配接隊列的最大數,如果線程池滿,會先在這個隊列中緩存請求,緩存上限就是該配置,

預設是1000;

82 ,hbase.offheapcache.percentage

The amount of off heap space to be allocated towards the experimental off heap cache. If you desire the cache to be disabled, simply set this value to 0.

Default: 0

JVM參數-XX:MaxDirectMemorySize的百分比值

預設是0,即不開啟堆外配置設定;

83 ,hbase.data.umask.enable

Enable, if true, that file permissions should be assigned to the files written by the regionserver

Default: false

開啟後,檔案在regionserver寫入時會 有權限相關設定,

預設是false不開啟;

84 ,hbase.data.umask

File permissions that should be used to write data files when hbase.data.umask.enable is true

Default: 000

開啟上面一項配置後,檔案的權限umask

預設是000

85 ,hbase.metrics.showTableName

Whether to include the prefix “tbl.tablename” in per-column family metrics. If true, for each metric M, per-cf metrics will be reported for tbl.T.cf.CF.M, if false, per-cf metrics will be aggregated by column-family across tables, and reported for cf.CF.M. In both cases, the aggregated metric M across tables and cfs will be reported.

Default: true

是否為每個名額顯示表名字首,

預設是true;

86 ,hbase.metrics.exposeOperationTimes

Whether to report metrics about time taken performing an operation on the region server. Get, Put, Delete, Increment, and Append can all have their times exposed through Hadoop metrics per CF and per region.

Default: true

是否進行關于操作在使用時間次元的名額報告,比如GET PUT DELETE INCREMENT等,

預設是true;

87 ,hbase.master.hfilecleaner.plugins

A comma-separated list of HFileCleanerDelegate invoked by the HFileCleaner service. These HFiles cleaners are called in order, so put the cleaner that prunes the most files in front. To implement your own HFileCleanerDelegate, just put it in HBase’s classpath and add the fully qualified class name here. Always add the above default log cleaners in the list as they will be overwritten in hbase-site.xml.

Default: org.apache.hadoop.hbase.master.cleaner.TimeToLiveHFileCleaner

HFile的清理插件清單,逗号分隔,被HFileService調用,可以自定義,

預設org.apache.hadoop.hbase.master.cleaner.TimeToLiveHFileCleaner

88 ,hbase.regionserver.catalog.timeout

Timeout value for the Catalog Janitor from the regionserver to META.

Default: 600000

regionserver的Catalog Janitor通路META的逾時時間,預設是600000;

89 ,hbase.master.catalog.timeout

Timeout value for the Catalog Janitor from the master to META.

Default: 600000

Catalog Janitor從master到META的逾時時間,我們知道這個Janitor是定時的去META掃描表目錄,來決定回收無用的regions,預設是600000;

90 ,hbase.config.read.zookeeper.config

Set to true to allow HBaseConfiguration to read the zoo.cfg file for ZooKeeper properties. Switching this to true is not recommended, since the functionality of reading ZK properties from a zoo.cfg file has been deprecated.

Default: false

讓hbaseconfig去讀zk的config,預設false,也不支援開啟,這個功能很搞笑~~個人觀點;

91 ,hbase.snapshot.enabled

Set to true to allow snapshots to be taken / restored / cloned.

Default: true

是否允許snapshot被使用、存儲和克隆,

預設是true;

92 ,hbase.rest.threads.max

The maximum number of threads of the REST server thread pool. Threads in the pool are reused to process REST requests. This controls the maximum number of requests processed concurrently. It may help to control the memory used by the REST server to avoid OOM issues. If the thread pool is full, incoming requests will be queued up and wait for some free threads. The default is 100.

Default: 100

REST伺服器線程池的最大線程數,池滿的話新請求會自動排隊,限制這個配置可以控制伺服器的記憶體量,預防OOM,

預設是100;

93 ,hbase.rest.threads.min

The minimum number of threads of the REST server thread pool. The thread pool always has at least these number of threads so the REST server is ready to serve incoming requests. The default is 2.

Default: 2

同上類似,最小線程數,為了確定伺服器的服務狀态,預設是2;