免責事項:この記事はブロガーオリジナル記事です、続くBY-SAのCC 4.0を著作権契約、複製、元のソースのリンクと、この文を添付してください。
org.apache.hadoop.hbase.HConstants
デフォルトのエントリ | デフォルト値 | リマーク |
---|---|---|
エンコーディング | UTF-8 | |
デフォルトのブロックサイズ | 64キロバイト | HFILEのデフォルトサイズ |
キー | 意味 | デフォルト値 |
---|---|---|
hbase.zookeeper.recoverable.waittime | 飼育係の回復待ち時間 | 10000 |
hbase.zookeeper.property.maxClientCnxns | 飼育係の同時接続数の制限 | 300 |
zookeeper.session.timeout | 飼育係のセッションタイムアウト | * 1000 180 |
hbase.zookeeper.useMulti | (結果の一貫性を確保するために、複数の原子への操作)マルチ更新操作かどうかをZK | 偽 |
hbase.regionserver.port | 地域サーバ待機ポート | 60020 |
hbase.regionserver.info.port | デフォルトのポート情報regionserverin | 60030 |
hbase.server.thread.wakefrequency | スレッドには、周波数を目覚め | * 1000年10 |
hbase.server.versionfile.writeattempts | どのくらいファイルの書かれたバージョンの前に、失敗 | 3 |
hbase.hstore.compaction.kv.max | のKV-容量フラッシュ/圧縮の最大数 | 10 |
hbase.client.ipc.pool.type | HBaseのクライアントタイプIPCプール | PoolType.RoundRobin(ループ) |
hbase.client.ipc.pool.size | HBaseのクライアントIPCプールサイズ | 1 |
hbase.client.operation.timeout | HBaseのクライアント操作のタイムアウト(タイムアウトカバーRPC) | Integer.MAX_VALUEの |
hbase.client.meta.operation.timeout | HBaseのクライアント操作のタイムアウト(タイムアウトカバーRPC) | Integer.MAX_VALUEの |
hbase.hregion.max.filesize | 領域分割の最大ファイルサイズ | * 1024 * 1024 * 1024 10 |
hbase.hstore.open.and.close.threads.max | 開口/閉鎖記憶メモリまたは並列スレッド | 1 |
hbase.hregion.edits.replay.skip.errors | 重い編集エラーをスキップ | 偽 |
hbase.client.scanner.max.result.size | 最大バイト数をスキャン | Long.MAX_VALUE |
hbase.client.pause | 故障や地域検索が取得した後、クライアントが時間を一時停止(故障睡眠時間) | 100 |
hbase.client.max.total.tasks | クライアントは、最大同時接続数を維持します | 100 |
hbase.client.max.perserver.tasks | リージョンサーバーを維持するために、同時クライアント接続の最大数のために | 2 |
hbase.client.max.perregion.tasks | 同時クライアント接続の最大数は、地域を維持するために | 1 |
hbase.server.pause | 運転待機時間の後に失敗したことを再試行 | 1000年 |
hbase.client.retries.number | クライアントの再試行 | 31 |
hbase.client.prefetch.limit | 地域は、プリフェッチの数を制限します | 10 |
hbase.client.scanner.caching | デフォルトでは、行のすべてのクライアント・キャッシュ・ラインの番号をスキャン | 100 |
hbase.meta.scanner.caching | メタデータテーブル:キャッシュラインの行のスキャン数の(HBaseのメタ) | 100 |
hbase.client.scanner.timeout.period | クライアントのスキャンタイムアウト | 60000ミリ秒 |
hbase.rpc.timeout | HBaseののRPCタイムアウト | 60000 |
hbase.rpc.shortoperation.timeout | rpc短操作超时时间 | 10000 |
hbase.client.write.buffer | 客户端写入数据缓冲区 | 2097152≈2M |
hbase.client.keyvalue.maxsize | 客户端最长的keyvalue值 | -1(不限制) |
hbase.ipc.client.connection.maxidletime | 客户端连接最大空闲时间 | 10000(10s) |
hbase.ipc.client.connect.max.retries | 客户端连接最大重试次数 | 0 |
hbase.ipc.client.tcpnodelay | tcp无延迟 | true |
hbase.ipc.client.tcpkeepalive | tcp保活 | true |
ipc.ping.interval | 客户端ping频率 | 60000(1 min) |
ipc.socket.timeout | 发起连接超时时间 | 20000(20s) |
我们系统在生产上的配置如下,仅供参考
Configuration configuration = new Configuration();
configuration.set("hbase.zookeeper.quorum", quorum);
configuration.set("hbase.client.scanner.caching", "500");// 所有客户端的默认scan缓存时间, 默认100
configuration.set("hbase.client.pause", "50");// 失败重试时等待时间, 默认100
configuration.set("hbase.rpc.timeout", "2000");// 一次RPC请求的超时时间, 默认60000
configuration.set("hbase.client.operation.timeout", "3000");// 客户端发起一次数据操作直至得到响应之间总的超时时间, 默认Integer.MAX_VALUE(一次阻塞操作)
configuration.set("hbase.client.retries.number", "3");// 重试次数3次,默认31