diff --git a/hbase-common/src/main/resources/hbase-default.xml b/hbase-common/src/main/resources/hbase-default.xml
index 91f4534..f82abd7 100644
--- a/hbase-common/src/main/resources/hbase-default.xml
+++ b/hbase-common/src/main/resources/hbase-default.xml
@@ -41,16 +41,15 @@ possible configurations would overwhelm and obscure the important.
-
+
hbase.tmp.dir
${java.io.tmpdir}/hbase-${user.name}
Temporary directory on the local filesystem.
Change this setting to point to a location more permanent
than '/tmp', the usual resolve for java.io.tmpdir, as the
- '/tmp' directory is cleared on machine restart.
-
+ '/tmp' directory is cleared on machine restart.
-
+
hbase.rootdir
file://${hbase.tmp.dir}/hbase
The directory shared by region servers and into
@@ -61,17 +60,15 @@ possible configurations would overwhelm and obscure the important.
hdfs://namenode.example.org:9000/hbase. By default, we write
to whatever ${hbase.tmp.dir} is set too -- usually /tmp --
so change this configuration or else all data will be lost on
- machine restart.
-
+ machine restart.
-
+
hbase.cluster.distributed
false
The mode the cluster will be in. Possible values are
false for standalone mode and true for distributed mode. If
false, startup will run all HBase and ZooKeeper daemons together
- in the one JVM.
-
+ in the one JVM.
hbase.zookeeper.quorum
@@ -86,8 +83,7 @@ possible configurations would overwhelm and obscure the important.
part of cluster start/stop. Client-side, we will take this list of
ensemble members and put it together with the hbase.zookeeper.clientPort
config. and pass it into zookeeper constructor as the connectString
- parameter.
-
+ parameter.
@@ -96,12 +92,11 @@ possible configurations would overwhelm and obscure the important.
hbase.local.dir
${hbase.tmp.dir}/local/
Directory on the local filesystem to be used
- as a local storage.
-
+ as a local storage.
-
+
hbase.master.port
60000
The port the HBase Master should bind to.
@@ -110,8 +105,7 @@ possible configurations would overwhelm and obscure the important.
hbase.master.info.port
60010
The port for the HBase Master web UI.
- Set to -1 if you do not want a UI instance run.
-
+ Set to -1 if you do not want a UI instance run.
hbase.master.info.bindAddress
@@ -127,15 +121,13 @@ possible configurations would overwhelm and obscure the important.
so put the HLog cleaner that prunes the most HLog files in front. To
implement your own LogCleanerDelegate, 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.
-
+ default log cleaners in the list.
hbase.master.logcleaner.ttl
600000
Maximum time a HLog can stay in the .oldlogdir directory,
- after which it will be cleaned by a Master thread.
-
+ after which it will be cleaned by a Master thread.
hbase.master.hfilecleaner.plugins
@@ -145,50 +137,45 @@ possible configurations would overwhelm and obscure the important.
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 log cleaners in the list as they will be overwritten in
+ hbase-site.xml.
hbase.master.catalog.timeout
600000
- Timeout value for the Catalog Janitor from the master to META.
-
+ Timeout value for the Catalog Janitor from the master to
+ META.
hbase.master.dns.interface
default
The name of the Network Interface from which a master
- should report its IP address.
-
+ should report its IP address.
hbase.master.dns.nameserver
default
The host name or IP address of the name server (DNS)
which a master should use to determine the host name used
- for communication and display purposes.
-
+ for communication and display purposes.
hbase.regionserver.port
60020
- The port the HBase RegionServer binds to.
-
+ The port the HBase RegionServer binds to.
hbase.regionserver.info.port
60030
The port for the HBase RegionServer web UI
- Set to -1 if you do not want the RegionServer UI to run.
-
+ Set to -1 if you do not want the RegionServer UI to run.
hbase.regionserver.info.bindAddress
0.0.0.0
- The address for the HBase RegionServer web UI
-
+ The address for the HBase RegionServer web UI
hbase.regionserver.info.port.auto
@@ -196,31 +183,25 @@ possible configurations would overwhelm and obscure the important.
Whether or not the Master or RegionServer
UI should search for a port to bind to. Enables automatic port
search if hbase.regionserver.info.port is already in use.
- Useful for testing, turned off by default.
-
+ Useful for testing, turned off by default.
hbase.regionserver.handler.count
30
Count of RPC Listener instances spun up on RegionServers.
- Same property is used by the Master for count of master handlers.
- Default is 30.
-
+ Same property is used by the Master for count of master handlers.
hbase.regionserver.msginterval
3000
Interval between messages from the RegionServer to Master
- in milliseconds.
-
+ in milliseconds.
hbase.regionserver.optionallogflushinterval
1000
Sync the HLog to the HDFS after this interval if it has not
- accumulated enough entries to trigger a sync. Default 1 second. Units:
- milliseconds.
-
+ accumulated enough entries to trigger a sync. Units: milliseconds.
hbase.regionserver.regionSplitLimit
@@ -228,8 +209,7 @@ possible configurations would overwhelm and obscure the important.
Limit for the number of regions after which no more region
splitting should take place. This is not a hard limit for the number of
regions but acts as a guideline for the regionserver to stop splitting after
- a certain limit. Default is set to MAX_INT; i.e. do not block splitting.
-
+ a certain limit. Default is MAX_INT; i.e. do not block splitting.
hbase.regionserver.logroll.period
@@ -262,8 +242,7 @@ possible configurations would overwhelm and obscure the important.
Maximum size of all memstores in a region server before new
updates are blocked and flushes are forced. Defaults to 40% of heap.
Updates are blocked and flushes are forced until size of all memstores
- in a region server hits hbase.regionserver.global.memstore.lowerLimit.
-
+ in a region server hits hbase.regionserver.global.memstore.lowerLimit.
hbase.regionserver.global.memstore.lowerLimit
@@ -272,16 +251,14 @@ possible configurations would overwhelm and obscure the important.
flushes are forced. Defaults to 38% of heap.
This value equal to hbase.regionserver.global.memstore.upperLimit causes
the minimum possible flushing to occur when updates are blocked due to
- memstore limiting.
-
+ memstore limiting.
hbase.regionserver.optionalcacheflushinterval
3600000
Maximum amount of time an edit lives in memory before being automatically flushed.
- Default 1 hour. Set it to 0 to disable automatic flushing.
-
+ Default 1 hour. Set it to 0 to disable automatic flushing.
hbase.regionserver.catalog.timeout
@@ -292,16 +269,14 @@ possible configurations would overwhelm and obscure the important.
hbase.regionserver.dns.interface
default
The name of the Network Interface from which a region server
- should report its IP address.
-
+ should report its IP address.
hbase.regionserver.dns.nameserver
default
The host name or IP address of the name server (DNS)
which a region server should use to determine the host name used by the
- master for communication and display purposes.
-
+ master for communication and display purposes.
@@ -313,8 +288,7 @@ possible configurations would overwhelm and obscure the important.
session (This setting becomes zookeeper's 'maxSessionTimeout'). See
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. " In milliseconds.
-
+ timeout that it can give the client. " In milliseconds.
zookeeper.znode.parent
@@ -322,8 +296,7 @@ possible configurations would overwhelm and obscure the important.
Root ZNode for HBase in ZooKeeper. All of HBase's ZooKeeper
files that are configured with a relative path will go under this node.
By default, all of HBase's ZooKeeper file path are configured with a
- relative path, so they will all go under this directory unless changed.
-
+ relative path, so they will all go under this directory unless changed.
zookeeper.znode.rootserver
@@ -331,8 +304,7 @@ possible configurations would overwhelm and obscure the important.
Path to ZNode holding root region location. This is written by
the master and read by clients and region servers. If a relative path is
given, the parent folder will be ${zookeeper.znode.parent}. By default,
- this means the root location is stored at /hbase/root-region-server.
-
+ this means the root location is stored at /hbase/root-region-server.
zookeeper.znode.acl.parent
@@ -343,16 +315,14 @@ possible configurations would overwhelm and obscure the important.
hbase.zookeeper.dns.interface
default
The name of the Network Interface from which a ZooKeeper server
- should report its IP address.
-
+ should report its IP address.
hbase.zookeeper.dns.nameserver
default
The host name or IP address of the name server (DNS)
which a ZooKeeper server should use to determine the host name used by the
- master for communication and display purposes.
-
+ master for communication and display purposes.
@@ -383,8 +351,7 @@ possible configurations would overwhelm and obscure the important.
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).
-
+ will not fail gracefully if multi-update is invoked (see ZOOKEEPER-1495).
hbase.config.read.zookeeper.config
@@ -393,8 +360,7 @@ possible configurations would overwhelm and obscure the important.
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.
-
+ properties from a zoo.cfg file has been deprecated.
@@ -456,8 +417,7 @@ possible configurations would overwhelm and obscure the important.
side since server instantiates the passed write buffer to process
it -- but a larger buffer size reduces the number of RPCs made.
For an estimate of server-side memory-used, evaluate
- hbase.client.write.buffer * hbase.regionserver.handler.count
-
+ hbase.client.write.buffer * hbase.regionserver.handler.count
hbase.client.pause
@@ -469,9 +429,8 @@ possible configurations would overwhelm and obscure the important.
hbase.client.retries.number
14
Maximum retries. Used as maximum for all retryable
- operations such as the getting of a cell's value, starting a row update, etc.
- Default: 14.
-
+ operations such as the getting of a cell's value, starting a row update,
+ etc.
hbase.client.scanner.caching
@@ -481,8 +440,7 @@ possible configurations would overwhelm and obscure the important.
caching values will enable faster scanners but will eat up more memory
and some calls of next may take longer and longer times when the cache is empty.
Do not set this value such that the time between invocations is greater
- than the scanner timeout; i.e. hbase.client.scanner.timeout.period
-
+ than the scanner timeout; i.e. hbase.client.scanner.timeout.period
hbase.client.keyvalue.maxsize
@@ -492,14 +450,12 @@ possible configurations would overwhelm and obscure the important.
storage file. Since they cannot be split it helps avoiding that a region
cannot be split any further because the data is too large. It seems wise
to set this to a fraction of the maximum region size. Setting it to zero
- or less disables the check.
-
+ or less disables the check.
hbase.client.scanner.timeout.period
60000
- Client scanner lease period in milliseconds. Default is
- 60 seconds.
+ Client scanner lease period in milliseconds.
@@ -508,29 +464,24 @@ possible configurations would overwhelm and obscure the important.
0
Maximum retries. This is maximum number of iterations
to atomic bulk loads are attempted in the face of splitting operations
- 0 means never give up. Default: 0.
-
+ 0 means never give up.
hbase.balancer.period
300000
- Period at which the region balancer runs in the Master.
-
+ Period at which the region balancer runs in the Master.
hbase.regions.slop
0.2
- Rebalance if any regionserver has average + (average * slop) regions.
- Default is 20% slop.
-
+ Rebalance if any regionserver has average + (average * slop) regions.
hbase.server.thread.wakefrequency
10000
Time to sleep in between searches for work (in milliseconds).
- Used as sleep interval by service threads such as log roller.
-
+ Used as sleep interval by service threads such as log roller.
hbase.server.versionfile.writeattempts
@@ -538,8 +489,7 @@ possible configurations would overwhelm and obscure the important.
How many time to retry attempting to write a version file
before just aborting. Each attempt is seperated by the
- hbase.server.thread.wakefrequency milliseconds.
-
+ hbase.server.thread.wakefrequency milliseconds.
hbase.hregion.memstore.flush.size
@@ -547,8 +497,7 @@ possible configurations would overwhelm and obscure the important.
Memstore will be flushed to disk if size of the memstore
exceeds this number of bytes. Value is checked by a thread that runs
- every hbase.server.thread.wakefrequency.
-
+ every hbase.server.thread.wakefrequency.
hbase.hregion.preclose.flush.size
@@ -562,8 +511,7 @@ possible configurations would overwhelm and obscure the important.
If the memstore content is large, this flush could take a long time to
complete. The preflush is meant to clean out the bulk of the memstore
before putting up the close flag and taking the region offline so the
- flush that runs under the close flag has little to do.
-
+ flush that runs under the close flag has little to do.
hbase.hregion.memstore.block.multiplier
@@ -574,8 +522,7 @@ possible configurations would overwhelm and obscure the important.
runaway memstore during spikes in update traffic. Without an
upper-bound, memstore fills such that when it flushes the
resultant flush files take a long time to compact or split, or
- worse, we OOME.
-
+ worse, we OOME.
hbase.hregion.memstore.mslab.enabled
@@ -584,17 +531,14 @@ possible configurations would overwhelm and obscure the important.
Enables the MemStore-Local Allocation Buffer,
a feature which works to prevent heap fragmentation under
heavy write loads. This can reduce the frequency of stop-the-world
- GC pauses on large heaps.
-
+ GC pauses on large heaps.
hbase.hregion.max.filesize
10737418240
Maximum HStoreFile size. If any one of a column families' HStoreFiles has
- grown to exceed this value, the hosting HRegion is split in two.
- Default: 10G.
-
+ grown to exceed this value, the hosting HRegion is split in two.
hbase.hregion.majorcompaction
@@ -604,8 +548,7 @@ possible configurations would overwhelm and obscure the important.
happen exactly when you need them least so enable them such that they run at
off-peak for your deploy; or, since this setting is on a periodicity that is
unlikely to match your loading, run the compactions via an external
- invocation out of a cron job or some such.
-
+ invocation out of a cron job or some such.
hbase.hregion.majorcompaction.jitter
@@ -616,8 +559,7 @@ possible configurations would overwhelm and obscure the important.
maximum. We then add this + or - product to when the next
major compaction is to run. The idea is that major compaction
does happen on every regionserver at exactly the same time. The
- smaller this number, the closer the compactions come together.
-
+ smaller this number, the closer the compactions come together.
hbase.hstore.compactionThreshold
@@ -626,8 +568,7 @@ possible configurations would overwhelm and obscure the important.
If more than this number of HStoreFiles in any one HStore
(one HStoreFile is written per flush of memstore) then a compaction
is run to rewrite all HStoreFiles files as one. Larger numbers
- put off compaction but when it runs, it takes longer to complete.
-
+ put off compaction but when it runs, it takes longer to complete.
hbase.hstore.blockingStoreFiles
@@ -636,8 +577,7 @@ possible configurations would overwhelm and obscure the important.
If more than this number of StoreFiles in any one Store
(one StoreFile is written per flush of MemStore) then updates are
blocked for this HRegion until a compaction is completed, or
- until hbase.hstore.blockingWaitTime has been exceeded.
-
+ until hbase.hstore.blockingWaitTime has been exceeded.
hbase.hstore.blockingWaitTime
@@ -646,29 +586,25 @@ possible configurations would overwhelm and obscure the important.
The time an HRegion will block updates for after hitting the StoreFile
limit defined by hbase.hstore.blockingStoreFiles.
After this time has elapsed, the HRegion will stop blocking updates even
- if a compaction has not been completed. Default: 90 seconds.
-
+ if a compaction has not been completed.
hbase.hstore.compaction.max
10
- Max number of HStoreFiles to compact per 'minor' compaction.
-
+ Max number of HStoreFiles to compact per 'minor' compaction.
hbase.storescanner.parallel.seek.enable
false
Enables StoreFileScanner parallel-seeking in StoreScanner,
- a feature which can reduce response latency under special conditions.
-
+ a feature which can reduce response latency under special conditions.
hbase.storescanner.parallel.seek.threads
10
- The default thread pool size if parallel-seeking feature enabled.
-
+ The default thread pool size if parallel-seeking feature enabled.
hbase.mapreduce.hfileoutputformat.blocksize
@@ -680,93 +616,73 @@ possible configurations would overwhelm and obscure the important.
schema so get blocksize from Configuration. The smaller you make
the blocksize, the bigger your index and the less you fetch on a
random-access. Set the blocksize down if you have small cells and want
- faster random-access of individual cells.
-
+ faster random-access of individual cells.
hfile.block.cache.size
0.4
-
- Percentage of maximum heap (-Xmx setting) to allocate to block cache
+ Percentage of maximum heap (-Xmx setting) to allocate to block cache
used by HFile/StoreFile. Default of 0.4 means allocate 40%.
Set to 0 to disable but it's not recommended; you need at least
- enough cache to hold the storefile indices.
-
+ enough cache to hold the storefile indices.
hfile.block.index.cacheonwrite
false
-
- This allows to put non-root multi-level index blocks into the block
- cache at the time the index is being written.
-
+ This allows to put non-root multi-level index blocks into the block
+ cache at the time the index is being written.
hfile.index.block.max.size
131072
-
- When the size of a leaf-level, intermediate-level, or root-level
+ When the size of a leaf-level, intermediate-level, or root-level
index block in a multi-level block index grows to this size, the
- block is written out and a new block is started.
-
+ block is written out and a new block is started.
hfile.format.version
2
-
- The HFile format version to use for new files. Set this to 1 to test
+ The HFile format version to use for new files. Set this to 1 to test
backwards-compatibility. The default value of this option should be
- consistent with FixedFileTrailer.MAX_VERSION.
-
+ consistent with FixedFileTrailer.MAX_VERSION.
hfile.block.bloom.cacheonwrite
false
-
- Enables cache-on-write for inline blocks of a compound Bloom filter.
-
+ Enables cache-on-write for inline blocks of a compound Bloom filter.
io.storefile.bloom.block.size
131072
-
- The size in bytes of a single block ("chunk") of a compound Bloom
+ The size in bytes of a single block ("chunk") of a compound Bloom
filter. This size is approximate, because Bloom blocks can only be
inserted at data block boundaries, and the number of keys per data
- block varies.
-
+ block varies.
hbase.rs.cacheblocksonwrite
false
-
- Whether an HFile block should be added to the block cache when the
- block is finished.
-
+ Whether an HFile block should be added to the block cache when the
+ block is finished.
hbase.rpc.server.engine
org.apache.hadoop.hbase.ipc.ProtobufRpcServerEngine
Implementation of org.apache.hadoop.hbase.ipc.RpcServerEngine to be
- used for server RPC call marshalling.
-
+ used for server RPC call marshalling.
hbase.rpc.timeout
60000
-
- This is for the RPC layer to define how long HBase client applications
+ This is for the RPC layer to define how long HBase client applications
take for a remote call to time out. It uses pings to check connections
- but will eventually throw a TimeoutException.
- The default value is 10000ms(10s).
-
+ but will eventually throw a TimeoutException.
hbase.ipc.client.tcpnodelay
true
Set no delay on rpc socket connections. See
- http://docs.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html#getTcpNoDelay()
-
+ http://docs.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html#getTcpNoDelay()
@@ -812,42 +724,36 @@ possible configurations would overwhelm and obscure the important.
hbase-policy.xml
The policy configuration file used by RPC servers to make
authorization decisions on client requests. Only used when HBase
- security is enabled.
-
+ security is enabled.
hbase.superuser
List of users or groups (comma-separated), who are allowed
full privileges, regardless of stored ACLs, across the cluster.
- Only used when HBase security is enabled.
-
+ Only used when HBase security is enabled.
hbase.auth.key.update.interval
86400000
The update interval for master key for authentication tokens
- in servers in milliseconds. Only used when HBase security is enabled.
-
+ in servers in milliseconds. Only used when HBase security is enabled.
hbase.auth.token.max.lifetime
604800000
The maximum lifetime in milliseconds after which an
- authentication token expires. Only used when HBase security is enabled.
-
+ authentication token expires. Only used when HBase security is enabled.
hbase.ipc.client.fallback-to-simple-auth-allowed
false
-
- When a client is configured to attempt a secure connection, but attempts to
+ When a client is configured to attempt a secure connection, but attempts to
connect to an insecure server, that server may instruct the client to
switch to SASL SIMPLE (unsecure) authentication. This setting controls
whether or not the client will accept this instruction from the server.
When false (the default), the client will not allow the fallback to SIMPLE
- authentication, and will abort the connection.
-
+ authentication, and will abort the connection.
hbase.coprocessor.region.classes
@@ -856,8 +762,7 @@ possible configurations would overwhelm and obscure the important.
default on all tables. For any override coprocessor method, these classes
will be called in order. After implementing your own Coprocessor, just put
it in HBase's classpath and add the fully qualified class name here.
- A coprocessor can also be loaded on demand by setting HTableDescriptor.
-
+ A coprocessor can also be loaded on demand by setting HTableDescriptor.
hbase.rest.port
@@ -867,56 +772,44 @@ possible configurations would overwhelm and obscure the important.
hbase.rest.readonly
false
-
- Defines the mode the REST server will be started in. Possible values are:
+ Defines the mode the REST server will be started in. Possible values are:
false: All HTTP methods are permitted - GET/PUT/POST/DELETE.
- true: Only the GET method is permitted.
-
+ true: Only the GET method is permitted.
hbase.rest.threads.max
100
-
- The maximum number of threads of the REST server thread pool.
+ 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.
-
+ will be queued up and wait for some free threads.
hbase.rest.threads.min
2
-
- The minimum number of threads of the REST server thread pool.
+ 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.
-
+ the REST server is ready to serve incoming requests.
hbase.defaults.for.version
@@@VERSION@@@
-
- This defaults file was compiled for version ${project.version}. This variable is used
+ This defaults file was compiled for version ${project.version}. This variable is used
to make sure that a user doesn't have an old version of hbase-default.xml on the
- classpath.
-
+ classpath.
hbase.defaults.for.version.skip
false
-
- Set to true to skip the 'hbase.defaults.for.version' check.
+ 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"
-
+ version is X.X.X-SNAPSHOT"
hbase.coprocessor.master.classes
@@ -926,88 +819,71 @@ possible configurations would overwhelm and obscure the important.
loaded by default on the active HMaster process. For any implemented
coprocessor methods, the listed classes will be called in order. After
implementing your own MasterObserver, just put it in HBase's classpath
- and add the fully qualified class name here.
-
+ and add the fully qualified class name here.
hbase.coprocessor.abortonerror
false
-
- Set to true to cause the hosting server (master or regionserver) to
+ 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.
-
+ simplify coprocessor failure analysis.
hbase.online.schema.update.enable
false
-
- Set true to enable online schema changes. This is an experimental feature.
+ 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.
-
+ be running with splits disabled.
hbase.table.lock.enable
true
-
- Set to true to enable locking the table in zookeeper for schema change operations.
+ 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.
-
+ state.
hbase.thrift.minWorkerThreads
16
-
- The "core size" of the thread pool. New threads are created on every
- connection until this many threads are created.
-
+ The "core size" of the thread pool. New threads are created on every
+ connection until this many threads are created.
hbase.thrift.maxWorkerThreads
1000
-
- The maximum size of the thread pool. When the pending request queue
+ 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.
-
+ After that, the server starts dropping connections.
hbase.thrift.maxQueuedRequests
1000
-
- The maximum number of pending Thrift connections waiting in the queue. If
+ 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.
-
+ hbase.thrift.maxQueuedRequests threads.
hbase.offheapcache.percentage
0
-
- The amount of off heap space to be allocated towards the experimental
+ 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.
-
+ value to 0.
hbase.data.umask.enable
false
Enable, if true, that file permissions should be assigned
- to the files written by the regionserver
-
+ to the files written by the regionserver
hbase.data.umask
000
File permissions that should be used to write data
- files when hbase.data.umask.enable is true
-
+ files when hbase.data.umask.enable is true
hbase.metrics.showTableName
@@ -1015,51 +891,42 @@ possible configurations would overwhelm and obscure the important.
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.
-
+ In both cases, the aggregated metric M across tables and cfs will be reported.
hbase.metrics.exposeOperationTimes
true
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.
-
+ have their times exposed through Hadoop metrics per CF and per region.
hbase.snapshot.enabled
true
-
- Set to true to allow snapshots to be taken / restored / cloned.
-
+ Set to true to allow snapshots to be taken / restored / cloned.
hbase.server.compactchecker.interval.multiplier
1000
-
- The number that determines how often we scan to see if compaction is necessary.
+ The number that determines how often we scan to see if compaction is necessary.
Normally, compactions are done after some events (such as memstore flush), but if
region didn't receive a lot of writes for some time, or due to different compaction
policies, it may be necessary to check it periodically. The interval between checks is
- hbase.server.compactchecker.interval.multiplier multiplied by hbase.server.thread.wakefrequency.
-
+ hbase.server.compactchecker.interval.multiplier multiplied by
+ hbase.server.thread.wakefrequency.
hbase.lease.recovery.timeout
900000
-
- How long we wait on dfs lease recovery in total before giving up.
-
+ How long we wait on dfs lease recovery in total before giving up.
hbase.lease.recovery.dfs.timeout
64000
-
- How long between dfs recover lease invocations. Should be larger than the sum of
+ How long between dfs recover lease invocations. Should be larger than the sum of
the time it takes for the namenode to issue a block recovery command as part of
datanode; dfs.heartbeat.interval and the time it takes for the primary
datanode, performing block recovery to timeout on a dead datanode; usually
- dfs.socket.timeout. See the end of HBASE-8389 for more.
-
+ dfs.socket.timeout. See the end of HBASE-8389 for more.
diff --git a/hbase-common/src/test/java/org/apache/hadoop/hbase/HBaseDefaultXMLConstants.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/HBaseDefaultXMLConstants.java
new file mode 100644
index 0000000..b441547
--- /dev/null
+++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/HBaseDefaultXMLConstants.java
@@ -0,0 +1,991 @@
+
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.hbase;
+
+/**
+ * Defaults for named configurations taken from hbase-default.xml.
+ * GENERATED CLASS. Do not modify. Made at build time by running a stylesheet
+ * against hbase-default.xml.
+ */
+public class HBaseDefaultsXMLDefines {
+
+ /**
+ hbase.tmp.dir
+ Temporary directory on the local filesystem.
+ Change this setting to point to a location more permanent
+ than '/tmp', the usual resolve for java.io.tmpdir, as the
+ '/tmp' directory is cleared on machine restart.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.TMP.DIR = ${java.io.tmpdir}/hbase-${user.name};
+
+ /**
+ hbase.rootdir
+ The directory shared by region servers and into
+ which HBase persists. The URL should be 'fully-qualified'
+ to include the filesystem scheme. For example, to specify the
+ HDFS directory '/hbase' where the HDFS instance's namenode is
+ running at namenode.example.org on port 9000, set this value to:
+ hdfs://namenode.example.org:9000/hbase. By default, we write
+ to whatever ${hbase.tmp.dir} is set too -- usually /tmp --
+ so change this configuration or else all data will be lost on
+ machine restart.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.ROOTDIR = file://${hbase.tmp.dir}/hbase;
+
+ /**
+ hbase.cluster.distributed
+ The mode the cluster will be in. Possible values are
+ false for standalone mode and true for distributed mode. If
+ false, startup will run all HBase and ZooKeeper daemons together
+ in the one JVM.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.CLUSTER.DISTRIBUTED = false;
+
+ /**
+ hbase.zookeeper.quorum
+ Comma separated list of servers in the ZooKeeper ensemble
+ (This config. should have been named hbase.zookeeper.ensemble).
+ For example, "host1.mydomain.com,host2.mydomain.com,host3.mydomain.com".
+ By default this is set to localhost for local and pseudo-distributed modes
+ of operation. For a fully-distributed setup, this should be set to a full
+ list of ZooKeeper ensemble servers. If HBASE_MANAGES_ZK is set in hbase-env.sh
+ this is the list of servers which hbase will start/stop ZooKeeper on as
+ part of cluster start/stop. Client-side, we will take this list of
+ ensemble members and put it together with the hbase.zookeeper.clientPort
+ config. and pass it into zookeeper constructor as the connectString
+ parameter.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.ZOOKEEPER.QUORUM = localhost;
+
+ /**
+ hbase.local.dir
+ Directory on the local filesystem to be used
+ as a local storage.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.LOCAL.DIR = ${hbase.tmp.dir}/local/;
+
+ /**
+ hbase.master.port
+ The port the HBase Master should bind to.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.MASTER.PORT = 60000;
+
+ /**
+ hbase.master.info.port
+ The port for the HBase Master web UI.
+ Set to -1 if you do not want a UI instance run.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.MASTER.INFO.PORT = 60010;
+
+ /**
+ hbase.master.info.bindAddress
+ The bind address for the HBase Master web UI
+
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.MASTER.INFO.BINDADDRESS = 0.0.0.0;
+
+ /**
+ hbase.master.logcleaner.plugins
+ A comma-separated list of LogCleanerDelegate invoked by
+ the LogsCleaner service. These WAL/HLog cleaners are called in order,
+ so put the HLog cleaner that prunes the most HLog files in front. To
+ implement your own LogCleanerDelegate, 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.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.MASTER.LOGCLEANER.PLUGINS = org.apache.hadoop.hbase.master.cleaner.TimeToLiveLogCleaner;
+
+ /**
+ hbase.master.logcleaner.ttl
+ Maximum time a HLog can stay in the .oldlogdir directory,
+ after which it will be cleaned by a Master thread.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.MASTER.LOGCLEANER.TTL = 600000;
+
+ /**
+ 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.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.MASTER.HFILECLEANER.PLUGINS = org.apache.hadoop.hbase.master.cleaner.TimeToLiveHFileCleaner;
+
+ /**
+ hbase.master.catalog.timeout
+ Timeout value for the Catalog Janitor from the master to
+ META.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.MASTER.CATALOG.TIMEOUT = 600000;
+
+ /**
+ hbase.master.dns.interface
+ The name of the Network Interface from which a master
+ should report its IP address.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.MASTER.DNS.INTERFACE = default;
+
+ /**
+ hbase.master.dns.nameserver
+ The host name or IP address of the name server (DNS)
+ which a master should use to determine the host name used
+ for communication and display purposes.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.MASTER.DNS.NAMESERVER = default;
+
+ /**
+ hbase.regionserver.port
+ The port the HBase RegionServer binds to.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.PORT = 60020;
+
+ /**
+ hbase.regionserver.info.port
+ The port for the HBase RegionServer web UI
+ Set to -1 if you do not want the RegionServer UI to run.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.INFO.PORT = 60030;
+
+ /**
+ hbase.regionserver.info.bindAddress
+ The address for the HBase RegionServer web UI
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.INFO.BINDADDRESS = 0.0.0.0;
+
+ /**
+ hbase.regionserver.info.port.auto
+ Whether or not the Master or RegionServer
+ UI should search for a port to bind to. Enables automatic port
+ search if hbase.regionserver.info.port is already in use.
+ Useful for testing, turned off by default.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.INFO.PORT.AUTO = false;
+
+ /**
+ hbase.regionserver.handler.count
+ Count of RPC Listener instances spun up on RegionServers.
+ Same property is used by the Master for count of master handlers.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.HANDLER.COUNT = 30;
+
+ /**
+ hbase.regionserver.msginterval
+ Interval between messages from the RegionServer to Master
+ in milliseconds.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.MSGINTERVAL = 3000;
+
+ /**
+ hbase.regionserver.optionallogflushinterval
+ Sync the HLog to the HDFS after this interval if it has not
+ accumulated enough entries to trigger a sync. Units: milliseconds.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.OPTIONALLOGFLUSHINTERVAL = 1000;
+
+ /**
+ hbase.regionserver.regionSplitLimit
+ Limit for the number of regions after which no more region
+ splitting should take place. This is not a hard limit for the number of
+ regions but acts as a guideline for the regionserver to stop splitting after
+ a certain limit. Default is MAX_INT; i.e. do not block splitting.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.REGIONSPLITLIMIT = 2147483647;
+
+ /**
+ hbase.regionserver.logroll.period
+ Period at which we will roll the commit log regardless
+ of how many edits it has.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.LOGROLL.PERIOD = 3600000;
+
+ /**
+ hbase.regionserver.logroll.errors.tolerated
+ The number of consecutive WAL close errors we will allow
+ before triggering a server abort. A setting of 0 will cause the
+ region server to abort if closing the current WAL writer fails during
+ log rolling. Even a small value (2 or 3) will allow a region server
+ to ride over transient HDFS errors.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.LOGROLL.ERRORS.TOLERATED = 2;
+
+ /**
+ hbase.regionserver.hlog.reader.impl
+ The HLog file reader implementation.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.HLOG.READER.IMPL = org.apache.hadoop.hbase.regionserver.wal.ProtobufLogReader;
+
+ /**
+ hbase.regionserver.hlog.writer.impl
+ The HLog file writer implementation.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.HLOG.WRITER.IMPL = org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter;
+
+ /**
+ hbase.regionserver.global.memstore.upperLimit
+ Maximum size of all memstores in a region server before new
+ updates are blocked and flushes are forced. Defaults to 40% of heap.
+ Updates are blocked and flushes are forced until size of all memstores
+ in a region server hits hbase.regionserver.global.memstore.lowerLimit.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.GLOBAL.MEMSTORE.UPPERLIMIT = 0.4;
+
+ /**
+ hbase.regionserver.global.memstore.lowerLimit
+ Maximum size of all memstores in a region server before
+ flushes are forced. Defaults to 38% of heap.
+ This value equal to hbase.regionserver.global.memstore.upperLimit causes
+ the minimum possible flushing to occur when updates are blocked due to
+ memstore limiting.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.GLOBAL.MEMSTORE.LOWERLIMIT = 0.38;
+
+ /**
+ hbase.regionserver.optionalcacheflushinterval
+
+ Maximum amount of time an edit lives in memory before being automatically flushed.
+ Default 1 hour. Set it to 0 to disable automatic flushing.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.OPTIONALCACHEFLUSHINTERVAL = 3600000;
+
+ /**
+ hbase.regionserver.catalog.timeout
+ Timeout value for the Catalog Janitor from the regionserver to META.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.CATALOG.TIMEOUT = 600000;
+
+ /**
+ hbase.regionserver.dns.interface
+ The name of the Network Interface from which a region server
+ should report its IP address.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.DNS.INTERFACE = default;
+
+ /**
+ hbase.regionserver.dns.nameserver
+ The host name or IP address of the name server (DNS)
+ which a region server should use to determine the host name used by the
+ master for communication and display purposes.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.DNS.NAMESERVER = default;
+
+ /**
+ zookeeper.session.timeout
+ ZooKeeper session timeout.
+ HBase passes this to the zk quorum as suggested maximum time for a
+ session (This setting becomes zookeeper's 'maxSessionTimeout'). See
+ 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. " In milliseconds.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_ZOOKEEPER.SESSION.TIMEOUT = 90000;
+
+ /**
+ zookeeper.znode.parent
+ Root ZNode for HBase in ZooKeeper. All of HBase's ZooKeeper
+ files that are configured with a relative path will go under this node.
+ By default, all of HBase's ZooKeeper file path are configured with a
+ relative path, so they will all go under this directory unless changed.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_ZOOKEEPER.ZNODE.PARENT = /hbase;
+
+ /**
+ zookeeper.znode.rootserver
+ Path to ZNode holding root region location. This is written by
+ the master and read by clients and region servers. If a relative path is
+ given, the parent folder will be ${zookeeper.znode.parent}. By default,
+ this means the root location is stored at /hbase/root-region-server.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_ZOOKEEPER.ZNODE.ROOTSERVER = root-region-server;
+
+ /**
+ zookeeper.znode.acl.parent
+ Root ZNode for access control lists.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_ZOOKEEPER.ZNODE.ACL.PARENT = acl;
+
+ /**
+ hbase.zookeeper.dns.interface
+ The name of the Network Interface from which a ZooKeeper server
+ should report its IP address.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.ZOOKEEPER.DNS.INTERFACE = default;
+
+ /**
+ hbase.zookeeper.dns.nameserver
+ The host name or IP address of the name server (DNS)
+ which a ZooKeeper server should use to determine the host name used by the
+ master for communication and display purposes.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.ZOOKEEPER.DNS.NAMESERVER = default;
+
+ /**
+ hbase.zookeeper.peerport
+ Port used by ZooKeeper peers to talk to each other.
+ Seehttp://hadoop.apache.org/zookeeper/docs/r3.1.1/zookeeperStarted.html#sc_RunningReplicatedZooKeeper
+ for more information.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.ZOOKEEPER.PEERPORT = 2888;
+
+ /**
+ hbase.zookeeper.leaderport
+ Port used by ZooKeeper for leader election.
+ See http://hadoop.apache.org/zookeeper/docs/r3.1.1/zookeeperStarted.html#sc_RunningReplicatedZooKeeper
+ for more information.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.ZOOKEEPER.LEADERPORT = 3888;
+
+ /**
+ 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).
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.ZOOKEEPER.USEMULTI = false;
+
+ /**
+ 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.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.CONFIG.READ.ZOOKEEPER.CONFIG = false;
+
+ /**
+ hbase.zookeeper.property.initLimit
+ Property from ZooKeeper's config zoo.cfg.
+ The number of ticks that the initial synchronization phase can take.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.ZOOKEEPER.PROPERTY.INITLIMIT = 10;
+
+ /**
+ hbase.zookeeper.property.syncLimit
+ Property from ZooKeeper's config zoo.cfg.
+ The number of ticks that can pass between sending a request and getting an
+ acknowledgment.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.ZOOKEEPER.PROPERTY.SYNCLIMIT = 5;
+
+ /**
+ hbase.zookeeper.property.dataDir
+ Property from ZooKeeper's config zoo.cfg.
+ The directory where the snapshot is stored.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.ZOOKEEPER.PROPERTY.DATADIR = ${hbase.tmp.dir}/zookeeper;
+
+ /**
+ hbase.zookeeper.property.clientPort
+ Property from ZooKeeper's config zoo.cfg.
+ The port at which the clients will connect.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.ZOOKEEPER.PROPERTY.CLIENTPORT = 2181;
+
+ /**
+ hbase.zookeeper.property.maxClientCnxns
+ Property from ZooKeeper's config zoo.cfg.
+ Limit on number of concurrent connections (at the socket level) that a
+ single client, identified by IP address, may make to a single member of
+ the ZooKeeper ensemble. Set high to avoid zk connection issues running
+ standalone and pseudo-distributed.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.ZOOKEEPER.PROPERTY.MAXCLIENTCNXNS = 300;
+
+ /**
+ hbase.client.write.buffer
+ Default size of the HTable client write buffer in bytes.
+ A bigger buffer takes more memory -- on both the client and server
+ side since server instantiates the passed write buffer to process
+ it -- but a larger buffer size reduces the number of RPCs made.
+ For an estimate of server-side memory-used, evaluate
+ hbase.client.write.buffer * hbase.regionserver.handler.count
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.CLIENT.WRITE.BUFFER = 2097152;
+
+ /**
+ hbase.client.pause
+ General client pause value. Used mostly as value to wait
+ before running a retry of a failed get, region lookup, etc.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.CLIENT.PAUSE = 100;
+
+ /**
+ hbase.client.retries.number
+ Maximum retries. Used as maximum for all retryable
+ operations such as the getting of a cell's value, starting a row update,
+ etc.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.CLIENT.RETRIES.NUMBER = 14;
+
+ /**
+ hbase.client.scanner.caching
+ Number of rows that will be fetched when calling next
+ on a scanner if it is not served from (local, client) memory. Higher
+ caching values will enable faster scanners but will eat up more memory
+ and some calls of next may take longer and longer times when the cache is empty.
+ Do not set this value such that the time between invocations is greater
+ than the scanner timeout; i.e. hbase.client.scanner.timeout.period
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.CLIENT.SCANNER.CACHING = 100;
+
+ /**
+ hbase.client.keyvalue.maxsize
+ Specifies the combined maximum allowed size of a KeyValue
+ instance. This is to set an upper boundary for a single entry saved in a
+ storage file. Since they cannot be split it helps avoiding that a region
+ cannot be split any further because the data is too large. It seems wise
+ to set this to a fraction of the maximum region size. Setting it to zero
+ or less disables the check.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.CLIENT.KEYVALUE.MAXSIZE = 10485760;
+
+ /**
+ hbase.client.scanner.timeout.period
+ Client scanner lease period in milliseconds.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.CLIENT.SCANNER.TIMEOUT.PERIOD = 60000;
+
+ /**
+ hbase.bulkload.retries.number
+ Maximum retries. This is maximum number of iterations
+ to atomic bulk loads are attempted in the face of splitting operations
+ 0 means never give up.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.BULKLOAD.RETRIES.NUMBER = 0;
+
+ /**
+ hbase.balancer.period
+
+ Period at which the region balancer runs in the Master.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.BALANCER.PERIOD
+ = 300000;
+
+ /**
+ hbase.regions.slop
+ Rebalance if any regionserver has average + (average * slop) regions.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONS.SLOP = 0.2;
+
+ /**
+ hbase.server.thread.wakefrequency
+ Time to sleep in between searches for work (in milliseconds).
+ Used as sleep interval by service threads such as log roller.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.SERVER.THREAD.WAKEFREQUENCY = 10000;
+
+ /**
+ hbase.server.versionfile.writeattempts
+
+ How many time to retry attempting to write a version file
+ before just aborting. Each attempt is seperated by the
+ hbase.server.thread.wakefrequency milliseconds.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.SERVER.VERSIONFILE.WRITEATTEMPTS = 3;
+
+ /**
+ hbase.hregion.memstore.flush.size
+
+ Memstore will be flushed to disk if size of the memstore
+ exceeds this number of bytes. Value is checked by a thread that runs
+ every hbase.server.thread.wakefrequency.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.HREGION.MEMSTORE.FLUSH.SIZE = 134217728;
+
+ /**
+ hbase.hregion.preclose.flush.size
+
+ If the memstores in a region are this size or larger when we go
+ to close, run a "pre-flush" to clear out memstores before we put up
+ the region closed flag and take the region offline. On close,
+ a flush is run under the close flag to empty memory. During
+ this time the region is offline and we are not taking on any writes.
+ If the memstore content is large, this flush could take a long time to
+ complete. The preflush is meant to clean out the bulk of the memstore
+ before putting up the close flag and taking the region offline so the
+ flush that runs under the close flag has little to do.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.HREGION.PRECLOSE.FLUSH.SIZE = 5242880;
+
+ /**
+ hbase.hregion.memstore.block.multiplier
+
+ Block updates if memstore has hbase.hregion.block.memstore
+ time hbase.hregion.flush.size bytes. Useful preventing
+ runaway memstore during spikes in update traffic. Without an
+ upper-bound, memstore fills such that when it flushes the
+ resultant flush files take a long time to compact or split, or
+ worse, we OOME.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.HREGION.MEMSTORE.BLOCK.MULTIPLIER = 2;
+
+ /**
+ hbase.hregion.memstore.mslab.enabled
+
+ Enables the MemStore-Local Allocation Buffer,
+ a feature which works to prevent heap fragmentation under
+ heavy write loads. This can reduce the frequency of stop-the-world
+ GC pauses on large heaps.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.HREGION.MEMSTORE.MSLAB.ENABLED = true;
+
+ /**
+ hbase.hregion.max.filesize
+
+ Maximum HStoreFile size. If any one of a column families' HStoreFiles has
+ grown to exceed this value, the hosting HRegion is split in two.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.HREGION.MAX.FILESIZE = 10737418240;
+
+ /**
+ hbase.hregion.majorcompaction
+ The time (in miliseconds) between 'major' compactions of all
+ HStoreFiles in a region. Default: Set to 7 days. Major compactions tend to
+ happen exactly when you need them least so enable them such that they run at
+ off-peak for your deploy; or, since this setting is on a periodicity that is
+ unlikely to match your loading, run the compactions via an external
+ invocation out of a cron job or some such.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.HREGION.MAJORCOMPACTION = 604800000;
+
+ /**
+ hbase.hregion.majorcompaction.jitter
+ Jitter outer bound for major compactions.
+ On each regionserver, we multiply the hbase.region.majorcompaction
+ interval by some random fraction that is inside the bounds of this
+ maximum. We then add this + or - product to when the next
+ major compaction is to run. The idea is that major compaction
+ does happen on every regionserver at exactly the same time. The
+ smaller this number, the closer the compactions come together.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.HREGION.MAJORCOMPACTION.JITTER = 0.50;
+
+ /**
+ hbase.hstore.compactionThreshold
+
+ If more than this number of HStoreFiles in any one HStore
+ (one HStoreFile is written per flush of memstore) then a compaction
+ is run to rewrite all HStoreFiles files as one. Larger numbers
+ put off compaction but when it runs, it takes longer to complete.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.HSTORE.COMPACTIONTHRESHOLD = 3;
+
+ /**
+ hbase.hstore.blockingStoreFiles
+
+ If more than this number of StoreFiles in any one Store
+ (one StoreFile is written per flush of MemStore) then updates are
+ blocked for this HRegion until a compaction is completed, or
+ until hbase.hstore.blockingWaitTime has been exceeded.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.HSTORE.BLOCKINGSTOREFILES = 10;
+
+ /**
+ hbase.hstore.blockingWaitTime
+
+ The time an HRegion will block updates for after hitting the StoreFile
+ limit defined by hbase.hstore.blockingStoreFiles.
+ After this time has elapsed, the HRegion will stop blocking updates even
+ if a compaction has not been completed.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.HSTORE.BLOCKINGWAITTIME = 90000;
+
+ /**
+ hbase.hstore.compaction.max
+ Max number of HStoreFiles to compact per 'minor' compaction.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.HSTORE.COMPACTION.MAX = 10;
+
+ /**
+ hbase.storescanner.parallel.seek.enable
+
+ Enables StoreFileScanner parallel-seeking in StoreScanner,
+ a feature which can reduce response latency under special conditions.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.STORESCANNER.PARALLEL.SEEK.ENABLE = false;
+
+ /**
+ hbase.storescanner.parallel.seek.threads
+
+ The default thread pool size if parallel-seeking feature enabled.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.STORESCANNER.PARALLEL.SEEK.THREADS = 10;
+
+ /**
+ hbase.mapreduce.hfileoutputformat.blocksize
+ The mapreduce HFileOutputFormat writes storefiles/hfiles.
+ This is the minimum hfile blocksize to emit. Usually in hbase, writing
+ hfiles, the blocksize is gotten from the table schema (HColumnDescriptor)
+ but in the mapreduce outputformat context, we don't have access to the
+ schema so get blocksize from Configuration. The smaller you make
+ the blocksize, the bigger your index and the less you fetch on a
+ random-access. Set the blocksize down if you have small cells and want
+ faster random-access of individual cells.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.MAPREDUCE.HFILEOUTPUTFORMAT.BLOCKSIZE = 65536;
+
+ /**
+ hfile.block.cache.size
+ Percentage of maximum heap (-Xmx setting) to allocate to block cache
+ used by HFile/StoreFile. Default of 0.4 means allocate 40%.
+ Set to 0 to disable but it's not recommended; you need at least
+ enough cache to hold the storefile indices.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HFILE.BLOCK.CACHE.SIZE = 0.4;
+
+ /**
+ hfile.block.index.cacheonwrite
+ This allows to put non-root multi-level index blocks into the block
+ cache at the time the index is being written.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HFILE.BLOCK.INDEX.CACHEONWRITE = false;
+
+ /**
+ hfile.index.block.max.size
+ When the size of a leaf-level, intermediate-level, or root-level
+ index block in a multi-level block index grows to this size, the
+ block is written out and a new block is started.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HFILE.INDEX.BLOCK.MAX.SIZE = 131072;
+
+ /**
+ hfile.format.version
+ The HFile format version to use for new files. Set this to 1 to test
+ backwards-compatibility. The default value of this option should be
+ consistent with FixedFileTrailer.MAX_VERSION.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HFILE.FORMAT.VERSION = 2;
+
+ /**
+ hfile.block.bloom.cacheonwrite
+ Enables cache-on-write for inline blocks of a compound Bloom filter.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HFILE.BLOCK.BLOOM.CACHEONWRITE = false;
+
+ /**
+ io.storefile.bloom.block.size
+ The size in bytes of a single block ("chunk") of a compound Bloom
+ filter. This size is approximate, because Bloom blocks can only be
+ inserted at data block boundaries, and the number of keys per data
+ block varies.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_IO.STOREFILE.BLOOM.BLOCK.SIZE = 131072;
+
+ /**
+ hbase.rs.cacheblocksonwrite
+ Whether an HFile block should be added to the block cache when the
+ block is finished.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.RS.CACHEBLOCKSONWRITE = false;
+
+ /**
+ hbase.rpc.server.engine
+ Implementation of org.apache.hadoop.hbase.ipc.RpcServerEngine to be
+ used for server RPC call marshalling.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.RPC.SERVER.ENGINE = org.apache.hadoop.hbase.ipc.ProtobufRpcServerEngine;
+
+ /**
+ hbase.rpc.timeout
+ This is for the RPC layer to define how long HBase client applications
+ take for a remote call to time out. It uses pings to check connections
+ but will eventually throw a TimeoutException.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.RPC.TIMEOUT = 60000;
+
+ /**
+ hbase.ipc.client.tcpnodelay
+ Set no delay on rpc socket connections. See
+ http://docs.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html#getTcpNoDelay()
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.IPC.CLIENT.TCPNODELAY = true;
+
+ /**
+ hbase.master.keytab.file
+ Full path to the kerberos keytab file to use for logging in
+ the configured HMaster server principal.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.MASTER.KEYTAB.FILE = ;
+
+ /**
+ hbase.master.kerberos.principal
+ Ex. "hbase/_HOST@EXAMPLE.COM". The kerberos principal name
+ that should be used to run the HMaster process. The principal name should
+ be in the form: user/hostname@DOMAIN. If "_HOST" is used as the hostname
+ portion, it will be replaced with the actual hostname of the running
+ instance.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.MASTER.KERBEROS.PRINCIPAL = ;
+
+ /**
+ hbase.regionserver.keytab.file
+ Full path to the kerberos keytab file to use for logging in
+ the configured HRegionServer server principal.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.KEYTAB.FILE = ;
+
+ /**
+ hbase.regionserver.kerberos.principal
+ Ex. "hbase/_HOST@EXAMPLE.COM". The kerberos principal name
+ that should be used to run the HRegionServer process. The principal name
+ should be in the form: user/hostname@DOMAIN. If "_HOST" is used as the
+ hostname portion, it will be replaced with the actual hostname of the
+ running instance. An entry for this principal must exist in the file
+ specified in hbase.regionserver.keytab.file
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REGIONSERVER.KERBEROS.PRINCIPAL = ;
+
+ /**
+ hadoop.policy.file
+ The policy configuration file used by RPC servers to make
+ authorization decisions on client requests. Only used when HBase
+ security is enabled.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HADOOP.POLICY.FILE = hbase-policy.xml;
+
+ /**
+ hbase.superuser
+ List of users or groups (comma-separated), who are allowed
+ full privileges, regardless of stored ACLs, across the cluster.
+ Only used when HBase security is enabled.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.SUPERUSER = ;
+
+ /**
+ hbase.auth.key.update.interval
+ The update interval for master key for authentication tokens
+ in servers in milliseconds. Only used when HBase security is enabled.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.AUTH.KEY.UPDATE.INTERVAL = 86400000;
+
+ /**
+ hbase.auth.token.max.lifetime
+ The maximum lifetime in milliseconds after which an
+ authentication token expires. Only used when HBase security is enabled.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.AUTH.TOKEN.MAX.LIFETIME = 604800000;
+
+ /**
+ hbase.ipc.client.fallback-to-simple-auth-allowed
+ When a client is configured to attempt a secure connection, but attempts to
+ connect to an insecure server, that server may instruct the client to
+ switch to SASL SIMPLE (unsecure) authentication. This setting controls
+ whether or not the client will accept this instruction from the server.
+ When false (the default), the client will not allow the fallback to SIMPLE
+ authentication, and will abort the connection.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.IPC.CLIENT.FALLBACK-TO-SIMPLE-AUTH-ALLOWED = false;
+
+ /**
+ hbase.coprocessor.region.classes
+ A comma-separated list of Coprocessors that are loaded by
+ default on all tables. For any override coprocessor method, these classes
+ will be called in order. After implementing your own Coprocessor, just put
+ it in HBase's classpath and add the fully qualified class name here.
+ A coprocessor can also be loaded on demand by setting HTableDescriptor.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.COPROCESSOR.REGION.CLASSES = ;
+
+ /**
+ hbase.rest.port
+ The port for the HBase REST server.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REST.PORT = 8080;
+
+ /**
+ hbase.rest.readonly
+ Defines the mode the REST server will be started in. Possible values are:
+ false: All HTTP methods are permitted - GET/PUT/POST/DELETE.
+ true: Only the GET method is permitted.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REST.READONLY = false;
+
+ /**
+ 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.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REST.THREADS.MAX = 100;
+
+ /**
+ 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.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.REST.THREADS.MIN = 2;
+
+ /**
+ 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"
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.DEFAULTS.FOR.VERSION.SKIP = false;
+
+ /**
+ hbase.coprocessor.master.classes
+ A comma-separated list of
+ org.apache.hadoop.hbase.coprocessor.MasterObserver coprocessors that are
+ loaded by default on the active HMaster process. For any implemented
+ coprocessor methods, the listed classes will be called in order. After
+ implementing your own MasterObserver, just put it in HBase's classpath
+ and add the fully qualified class name here.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.COPROCESSOR.MASTER.CLASSES = ;
+
+ /**
+ 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.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.COPROCESSOR.ABORTONERROR = false;
+
+ /**
+ 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.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.ONLINE.SCHEMA.UPDATE.ENABLE = false;
+
+ /**
+ 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.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.TABLE.LOCK.ENABLE = true;
+
+ /**
+ hbase.thrift.minWorkerThreads
+ The "core size" of the thread pool. New threads are created on every
+ connection until this many threads are created.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.THRIFT.MINWORKERTHREADS = 16;
+
+ /**
+ 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.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.THRIFT.MAXWORKERTHREADS = 1000;
+
+ /**
+ 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.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.THRIFT.MAXQUEUEDREQUESTS = 1000;
+
+ /**
+ 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.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.OFFHEAPCACHE.PERCENTAGE = 0;
+
+ /**
+ hbase.data.umask.enable
+ Enable, if true, that file permissions should be assigned
+ to the files written by the regionserver
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.DATA.UMASK.ENABLE = false;
+
+ /**
+ hbase.data.umask
+ File permissions that should be used to write data
+ files when hbase.data.umask.enable is true
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.DATA.UMASK = 000;
+
+ /**
+ 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.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.METRICS.SHOWTABLENAME = true;
+
+ /**
+ 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.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.METRICS.EXPOSEOPERATIONTIMES = true;
+
+ /**
+ hbase.snapshot.enabled
+ Set to true to allow snapshots to be taken / restored / cloned.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.SNAPSHOT.ENABLED = true;
+
+ /**
+ hbase.server.compactchecker.interval.multiplier
+ The number that determines how often we scan to see if compaction is necessary.
+ Normally, compactions are done after some events (such as memstore flush), but if
+ region didn't receive a lot of writes for some time, or due to different compaction
+ policies, it may be necessary to check it periodically. The interval between checks is
+ hbase.server.compactchecker.interval.multiplier multiplied by
+ hbase.server.thread.wakefrequency.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.SERVER.COMPACTCHECKER.INTERVAL.MULTIPLIER = 1000;
+
+ /**
+ hbase.lease.recovery.timeout
+ How long we wait on dfs lease recovery in total before giving up.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.LEASE.RECOVERY.TIMEOUT = 900000;
+
+ /**
+ hbase.lease.recovery.dfs.timeout
+ How long between dfs recover lease invocations. Should be larger than the sum of
+ the time it takes for the namenode to issue a block recovery command as part of
+ datanode; dfs.heartbeat.interval and the time it takes for the primary
+ datanode, performing block recovery to timeout on a dead datanode; usually
+ dfs.socket.timeout. See the end of HBASE-8389 for more.
+ */
+ public static String FROM_HBASE_DEFAULT_XML_HBASE.LEASE.RECOVERY.DFS.TIMEOUT = 64000;
+
+}
diff --git a/hbase-common/src/test/java/org/apache/hadoop/hbase/TestHBaseDefaulXMLPropertyValues.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/TestHBaseDefaulXMLPropertyValues.java
new file mode 100644
index 0000000..9d66ebc
--- /dev/null
+++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/TestHBaseDefaulXMLPropertyValues.java
@@ -0,0 +1,941 @@
+
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.hbase;
+import static org.junit.Assert.*;
+import org.junit.Test;
+import org.junit.experimental.categories.Category;
+import org.apache.hadoop.conf.Configuration;
+
+/**
+ * GENERATED CLASS. Do not modify. Made at build time by running a stylesheet
+ * against hbase-default.xml.
+ */
+ @Category(SmallTests.class)
+public class TestHBaseDefaulXMLPropertyValues {
+ private final Configuration conf = new Configuration();
+
+
+ /**
+ * hbase.tmp.dir
+ */
+ @Test
+ public void test_hbase_tmp_dir() {
+ assertEquals("${java.io.tmpdir}/hbase-${user.name}", this.conf.get("hbase.tmp.dir"));
+ }
+
+ /**
+ * hbase.rootdir
+ */
+ @Test
+ public void test_hbase_rootdir() {
+ assertEquals("file://${hbase.tmp.dir}/hbase", this.conf.get("hbase.rootdir"));
+ }
+
+ /**
+ * hbase.cluster.distributed
+ */
+ @Test
+ public void test_hbase_cluster_distributed() {
+ assertEquals("false", this.conf.get("hbase.cluster.distributed"));
+ }
+
+ /**
+ * hbase.zookeeper.quorum
+ */
+ @Test
+ public void test_hbase_zookeeper_quorum() {
+ assertEquals("localhost", this.conf.get("hbase.zookeeper.quorum"));
+ }
+
+ /**
+ * hbase.local.dir
+ */
+ @Test
+ public void test_hbase_local_dir() {
+ assertEquals("${hbase.tmp.dir}/local/", this.conf.get("hbase.local.dir"));
+ }
+
+ /**
+ * hbase.master.port
+ */
+ @Test
+ public void test_hbase_master_port() {
+ assertEquals("60000", this.conf.get("hbase.master.port"));
+ }
+
+ /**
+ * hbase.master.info.port
+ */
+ @Test
+ public void test_hbase_master_info_port() {
+ assertEquals("60010", this.conf.get("hbase.master.info.port"));
+ }
+
+ /**
+ * hbase.master.info.bindAddress
+ */
+ @Test
+ public void test_hbase_master_info_bindAddress() {
+ assertEquals("0.0.0.0", this.conf.get("hbase.master.info.bindAddress"));
+ }
+
+ /**
+ * hbase.master.logcleaner.plugins
+ */
+ @Test
+ public void test_hbase_master_logcleaner_plugins() {
+ assertEquals("org.apache.hadoop.hbase.master.cleaner.TimeToLiveLogCleaner", this.conf.get("hbase.master.logcleaner.plugins"));
+ }
+
+ /**
+ * hbase.master.logcleaner.ttl
+ */
+ @Test
+ public void test_hbase_master_logcleaner_ttl() {
+ assertEquals("600000", this.conf.get("hbase.master.logcleaner.ttl"));
+ }
+
+ /**
+ * hbase.master.hfilecleaner.plugins
+ */
+ @Test
+ public void test_hbase_master_hfilecleaner_plugins() {
+ assertEquals("org.apache.hadoop.hbase.master.cleaner.TimeToLiveHFileCleaner", this.conf.get("hbase.master.hfilecleaner.plugins"));
+ }
+
+ /**
+ * hbase.master.catalog.timeout
+ */
+ @Test
+ public void test_hbase_master_catalog_timeout() {
+ assertEquals("600000", this.conf.get("hbase.master.catalog.timeout"));
+ }
+
+ /**
+ * hbase.master.dns.interface
+ */
+ @Test
+ public void test_hbase_master_dns_interface() {
+ assertEquals("default", this.conf.get("hbase.master.dns.interface"));
+ }
+
+ /**
+ * hbase.master.dns.nameserver
+ */
+ @Test
+ public void test_hbase_master_dns_nameserver() {
+ assertEquals("default", this.conf.get("hbase.master.dns.nameserver"));
+ }
+
+ /**
+ * hbase.regionserver.port
+ */
+ @Test
+ public void test_hbase_regionserver_port() {
+ assertEquals("60020", this.conf.get("hbase.regionserver.port"));
+ }
+
+ /**
+ * hbase.regionserver.info.port
+ */
+ @Test
+ public void test_hbase_regionserver_info_port() {
+ assertEquals("60030", this.conf.get("hbase.regionserver.info.port"));
+ }
+
+ /**
+ * hbase.regionserver.info.bindAddress
+ */
+ @Test
+ public void test_hbase_regionserver_info_bindAddress() {
+ assertEquals("0.0.0.0", this.conf.get("hbase.regionserver.info.bindAddress"));
+ }
+
+ /**
+ * hbase.regionserver.info.port.auto
+ */
+ @Test
+ public void test_hbase_regionserver_info_port_auto() {
+ assertEquals("false", this.conf.get("hbase.regionserver.info.port.auto"));
+ }
+
+ /**
+ * hbase.regionserver.handler.count
+ */
+ @Test
+ public void test_hbase_regionserver_handler_count() {
+ assertEquals("30", this.conf.get("hbase.regionserver.handler.count"));
+ }
+
+ /**
+ * hbase.regionserver.msginterval
+ */
+ @Test
+ public void test_hbase_regionserver_msginterval() {
+ assertEquals("3000", this.conf.get("hbase.regionserver.msginterval"));
+ }
+
+ /**
+ * hbase.regionserver.optionallogflushinterval
+ */
+ @Test
+ public void test_hbase_regionserver_optionallogflushinterval() {
+ assertEquals("1000", this.conf.get("hbase.regionserver.optionallogflushinterval"));
+ }
+
+ /**
+ * hbase.regionserver.regionSplitLimit
+ */
+ @Test
+ public void test_hbase_regionserver_regionSplitLimit() {
+ assertEquals("2147483647", this.conf.get("hbase.regionserver.regionSplitLimit"));
+ }
+
+ /**
+ * hbase.regionserver.logroll.period
+ */
+ @Test
+ public void test_hbase_regionserver_logroll_period() {
+ assertEquals("3600000", this.conf.get("hbase.regionserver.logroll.period"));
+ }
+
+ /**
+ * hbase.regionserver.logroll.errors.tolerated
+ */
+ @Test
+ public void test_hbase_regionserver_logroll_errors_tolerated() {
+ assertEquals("2", this.conf.get("hbase.regionserver.logroll.errors.tolerated"));
+ }
+
+ /**
+ * hbase.regionserver.hlog.reader.impl
+ */
+ @Test
+ public void test_hbase_regionserver_hlog_reader_impl() {
+ assertEquals("org.apache.hadoop.hbase.regionserver.wal.ProtobufLogReader", this.conf.get("hbase.regionserver.hlog.reader.impl"));
+ }
+
+ /**
+ * hbase.regionserver.hlog.writer.impl
+ */
+ @Test
+ public void test_hbase_regionserver_hlog_writer_impl() {
+ assertEquals("org.apache.hadoop.hbase.regionserver.wal.ProtobufLogWriter", this.conf.get("hbase.regionserver.hlog.writer.impl"));
+ }
+
+ /**
+ * hbase.regionserver.global.memstore.upperLimit
+ */
+ @Test
+ public void test_hbase_regionserver_global_memstore_upperLimit() {
+ assertEquals("0.4", this.conf.get("hbase.regionserver.global.memstore.upperLimit"));
+ }
+
+ /**
+ * hbase.regionserver.global.memstore.lowerLimit
+ */
+ @Test
+ public void test_hbase_regionserver_global_memstore_lowerLimit() {
+ assertEquals("0.38", this.conf.get("hbase.regionserver.global.memstore.lowerLimit"));
+ }
+
+ /**
+ * hbase.regionserver.optionalcacheflushinterval
+ */
+ @Test
+ public void test_hbase_regionserver_optionalcacheflushinterval() {
+ assertEquals("3600000", this.conf.get("hbase.regionserver.optionalcacheflushinterval"));
+ }
+
+ /**
+ * hbase.regionserver.catalog.timeout
+ */
+ @Test
+ public void test_hbase_regionserver_catalog_timeout() {
+ assertEquals("600000", this.conf.get("hbase.regionserver.catalog.timeout"));
+ }
+
+ /**
+ * hbase.regionserver.dns.interface
+ */
+ @Test
+ public void test_hbase_regionserver_dns_interface() {
+ assertEquals("default", this.conf.get("hbase.regionserver.dns.interface"));
+ }
+
+ /**
+ * hbase.regionserver.dns.nameserver
+ */
+ @Test
+ public void test_hbase_regionserver_dns_nameserver() {
+ assertEquals("default", this.conf.get("hbase.regionserver.dns.nameserver"));
+ }
+
+ /**
+ * zookeeper.session.timeout
+ */
+ @Test
+ public void test_zookeeper_session_timeout() {
+ assertEquals("90000", this.conf.get("zookeeper.session.timeout"));
+ }
+
+ /**
+ * zookeeper.znode.parent
+ */
+ @Test
+ public void test_zookeeper_znode_parent() {
+ assertEquals("/hbase", this.conf.get("zookeeper.znode.parent"));
+ }
+
+ /**
+ * zookeeper.znode.rootserver
+ */
+ @Test
+ public void test_zookeeper_znode_rootserver() {
+ assertEquals("root-region-server", this.conf.get("zookeeper.znode.rootserver"));
+ }
+
+ /**
+ * zookeeper.znode.acl.parent
+ */
+ @Test
+ public void test_zookeeper_znode_acl_parent() {
+ assertEquals("acl", this.conf.get("zookeeper.znode.acl.parent"));
+ }
+
+ /**
+ * hbase.zookeeper.dns.interface
+ */
+ @Test
+ public void test_hbase_zookeeper_dns_interface() {
+ assertEquals("default", this.conf.get("hbase.zookeeper.dns.interface"));
+ }
+
+ /**
+ * hbase.zookeeper.dns.nameserver
+ */
+ @Test
+ public void test_hbase_zookeeper_dns_nameserver() {
+ assertEquals("default", this.conf.get("hbase.zookeeper.dns.nameserver"));
+ }
+
+ /**
+ * hbase.zookeeper.peerport
+ */
+ @Test
+ public void test_hbase_zookeeper_peerport() {
+ assertEquals("2888", this.conf.get("hbase.zookeeper.peerport"));
+ }
+
+ /**
+ * hbase.zookeeper.leaderport
+ */
+ @Test
+ public void test_hbase_zookeeper_leaderport() {
+ assertEquals("3888", this.conf.get("hbase.zookeeper.leaderport"));
+ }
+
+ /**
+ * hbase.zookeeper.useMulti
+ */
+ @Test
+ public void test_hbase_zookeeper_useMulti() {
+ assertEquals("false", this.conf.get("hbase.zookeeper.useMulti"));
+ }
+
+ /**
+ * hbase.config.read.zookeeper.config
+ */
+ @Test
+ public void test_hbase_config_read_zookeeper_config() {
+ assertEquals("false", this.conf.get("hbase.config.read.zookeeper.config"));
+ }
+
+ /**
+ * hbase.zookeeper.property.initLimit
+ */
+ @Test
+ public void test_hbase_zookeeper_property_initLimit() {
+ assertEquals("10", this.conf.get("hbase.zookeeper.property.initLimit"));
+ }
+
+ /**
+ * hbase.zookeeper.property.syncLimit
+ */
+ @Test
+ public void test_hbase_zookeeper_property_syncLimit() {
+ assertEquals("5", this.conf.get("hbase.zookeeper.property.syncLimit"));
+ }
+
+ /**
+ * hbase.zookeeper.property.dataDir
+ */
+ @Test
+ public void test_hbase_zookeeper_property_dataDir() {
+ assertEquals("${hbase.tmp.dir}/zookeeper", this.conf.get("hbase.zookeeper.property.dataDir"));
+ }
+
+ /**
+ * hbase.zookeeper.property.clientPort
+ */
+ @Test
+ public void test_hbase_zookeeper_property_clientPort() {
+ assertEquals("2181", this.conf.get("hbase.zookeeper.property.clientPort"));
+ }
+
+ /**
+ * hbase.zookeeper.property.maxClientCnxns
+ */
+ @Test
+ public void test_hbase_zookeeper_property_maxClientCnxns() {
+ assertEquals("300", this.conf.get("hbase.zookeeper.property.maxClientCnxns"));
+ }
+
+ /**
+ * hbase.client.write.buffer
+ */
+ @Test
+ public void test_hbase_client_write_buffer() {
+ assertEquals("2097152", this.conf.get("hbase.client.write.buffer"));
+ }
+
+ /**
+ * hbase.client.pause
+ */
+ @Test
+ public void test_hbase_client_pause() {
+ assertEquals("100", this.conf.get("hbase.client.pause"));
+ }
+
+ /**
+ * hbase.client.retries.number
+ */
+ @Test
+ public void test_hbase_client_retries_number() {
+ assertEquals("14", this.conf.get("hbase.client.retries.number"));
+ }
+
+ /**
+ * hbase.client.scanner.caching
+ */
+ @Test
+ public void test_hbase_client_scanner_caching() {
+ assertEquals("100", this.conf.get("hbase.client.scanner.caching"));
+ }
+
+ /**
+ * hbase.client.keyvalue.maxsize
+ */
+ @Test
+ public void test_hbase_client_keyvalue_maxsize() {
+ assertEquals("10485760", this.conf.get("hbase.client.keyvalue.maxsize"));
+ }
+
+ /**
+ * hbase.client.scanner.timeout.period
+ */
+ @Test
+ public void test_hbase_client_scanner_timeout_period() {
+ assertEquals("60000", this.conf.get("hbase.client.scanner.timeout.period"));
+ }
+
+ /**
+ * hbase.bulkload.retries.number
+ */
+ @Test
+ public void test_hbase_bulkload_retries_number() {
+ assertEquals("0", this.conf.get("hbase.bulkload.retries.number"));
+ }
+
+ /**
+ * hbase.balancer.period
+
+ */
+ @Test
+ public void test_hbase_balancer_period
+ () {
+ assertEquals("300000", this.conf.get("hbase.balancer.period"));
+ }
+
+ /**
+ * hbase.regions.slop
+ */
+ @Test
+ public void test_hbase_regions_slop() {
+ assertEquals("0.2", this.conf.get("hbase.regions.slop"));
+ }
+
+ /**
+ * hbase.server.thread.wakefrequency
+ */
+ @Test
+ public void test_hbase_server_thread_wakefrequency() {
+ assertEquals("10000", this.conf.get("hbase.server.thread.wakefrequency"));
+ }
+
+ /**
+ * hbase.server.versionfile.writeattempts
+ */
+ @Test
+ public void test_hbase_server_versionfile_writeattempts() {
+ assertEquals("3", this.conf.get("hbase.server.versionfile.writeattempts"));
+ }
+
+ /**
+ * hbase.hregion.memstore.flush.size
+ */
+ @Test
+ public void test_hbase_hregion_memstore_flush_size() {
+ assertEquals("134217728", this.conf.get("hbase.hregion.memstore.flush.size"));
+ }
+
+ /**
+ * hbase.hregion.preclose.flush.size
+ */
+ @Test
+ public void test_hbase_hregion_preclose_flush_size() {
+ assertEquals("5242880", this.conf.get("hbase.hregion.preclose.flush.size"));
+ }
+
+ /**
+ * hbase.hregion.memstore.block.multiplier
+ */
+ @Test
+ public void test_hbase_hregion_memstore_block_multiplier() {
+ assertEquals("2", this.conf.get("hbase.hregion.memstore.block.multiplier"));
+ }
+
+ /**
+ * hbase.hregion.memstore.mslab.enabled
+ */
+ @Test
+ public void test_hbase_hregion_memstore_mslab_enabled() {
+ assertEquals("true", this.conf.get("hbase.hregion.memstore.mslab.enabled"));
+ }
+
+ /**
+ * hbase.hregion.max.filesize
+ */
+ @Test
+ public void test_hbase_hregion_max_filesize() {
+ assertEquals("10737418240", this.conf.get("hbase.hregion.max.filesize"));
+ }
+
+ /**
+ * hbase.hregion.majorcompaction
+ */
+ @Test
+ public void test_hbase_hregion_majorcompaction() {
+ assertEquals("604800000", this.conf.get("hbase.hregion.majorcompaction"));
+ }
+
+ /**
+ * hbase.hregion.majorcompaction.jitter
+ */
+ @Test
+ public void test_hbase_hregion_majorcompaction_jitter() {
+ assertEquals("0.50", this.conf.get("hbase.hregion.majorcompaction.jitter"));
+ }
+
+ /**
+ * hbase.hstore.compactionThreshold
+ */
+ @Test
+ public void test_hbase_hstore_compactionThreshold() {
+ assertEquals("3", this.conf.get("hbase.hstore.compactionThreshold"));
+ }
+
+ /**
+ * hbase.hstore.blockingStoreFiles
+ */
+ @Test
+ public void test_hbase_hstore_blockingStoreFiles() {
+ assertEquals("10", this.conf.get("hbase.hstore.blockingStoreFiles"));
+ }
+
+ /**
+ * hbase.hstore.blockingWaitTime
+ */
+ @Test
+ public void test_hbase_hstore_blockingWaitTime() {
+ assertEquals("90000", this.conf.get("hbase.hstore.blockingWaitTime"));
+ }
+
+ /**
+ * hbase.hstore.compaction.max
+ */
+ @Test
+ public void test_hbase_hstore_compaction_max() {
+ assertEquals("10", this.conf.get("hbase.hstore.compaction.max"));
+ }
+
+ /**
+ * hbase.storescanner.parallel.seek.enable
+ */
+ @Test
+ public void test_hbase_storescanner_parallel_seek_enable() {
+ assertEquals("false", this.conf.get("hbase.storescanner.parallel.seek.enable"));
+ }
+
+ /**
+ * hbase.storescanner.parallel.seek.threads
+ */
+ @Test
+ public void test_hbase_storescanner_parallel_seek_threads() {
+ assertEquals("10", this.conf.get("hbase.storescanner.parallel.seek.threads"));
+ }
+
+ /**
+ * hbase.mapreduce.hfileoutputformat.blocksize
+ */
+ @Test
+ public void test_hbase_mapreduce_hfileoutputformat_blocksize() {
+ assertEquals("65536", this.conf.get("hbase.mapreduce.hfileoutputformat.blocksize"));
+ }
+
+ /**
+ * hfile.block.cache.size
+ */
+ @Test
+ public void test_hfile_block_cache_size() {
+ assertEquals("0.4", this.conf.get("hfile.block.cache.size"));
+ }
+
+ /**
+ * hfile.block.index.cacheonwrite
+ */
+ @Test
+ public void test_hfile_block_index_cacheonwrite() {
+ assertEquals("false", this.conf.get("hfile.block.index.cacheonwrite"));
+ }
+
+ /**
+ * hfile.index.block.max.size
+ */
+ @Test
+ public void test_hfile_index_block_max_size() {
+ assertEquals("131072", this.conf.get("hfile.index.block.max.size"));
+ }
+
+ /**
+ * hfile.format.version
+ */
+ @Test
+ public void test_hfile_format_version() {
+ assertEquals("2", this.conf.get("hfile.format.version"));
+ }
+
+ /**
+ * hfile.block.bloom.cacheonwrite
+ */
+ @Test
+ public void test_hfile_block_bloom_cacheonwrite() {
+ assertEquals("false", this.conf.get("hfile.block.bloom.cacheonwrite"));
+ }
+
+ /**
+ * io.storefile.bloom.block.size
+ */
+ @Test
+ public void test_io_storefile_bloom_block_size() {
+ assertEquals("131072", this.conf.get("io.storefile.bloom.block.size"));
+ }
+
+ /**
+ * hbase.rs.cacheblocksonwrite
+ */
+ @Test
+ public void test_hbase_rs_cacheblocksonwrite() {
+ assertEquals("false", this.conf.get("hbase.rs.cacheblocksonwrite"));
+ }
+
+ /**
+ * hbase.rpc.server.engine
+ */
+ @Test
+ public void test_hbase_rpc_server_engine() {
+ assertEquals("org.apache.hadoop.hbase.ipc.ProtobufRpcServerEngine", this.conf.get("hbase.rpc.server.engine"));
+ }
+
+ /**
+ * hbase.rpc.timeout
+ */
+ @Test
+ public void test_hbase_rpc_timeout() {
+ assertEquals("60000", this.conf.get("hbase.rpc.timeout"));
+ }
+
+ /**
+ * hbase.ipc.client.tcpnodelay
+ */
+ @Test
+ public void test_hbase_ipc_client_tcpnodelay() {
+ assertEquals("true", this.conf.get("hbase.ipc.client.tcpnodelay"));
+ }
+
+ /**
+ * hbase.master.keytab.file
+ */
+ @Test
+ public void test_hbase_master_keytab_file() {
+ assertEquals("", this.conf.get("hbase.master.keytab.file"));
+ }
+
+ /**
+ * hbase.master.kerberos.principal
+ */
+ @Test
+ public void test_hbase_master_kerberos_principal() {
+ assertEquals("", this.conf.get("hbase.master.kerberos.principal"));
+ }
+
+ /**
+ * hbase.regionserver.keytab.file
+ */
+ @Test
+ public void test_hbase_regionserver_keytab_file() {
+ assertEquals("", this.conf.get("hbase.regionserver.keytab.file"));
+ }
+
+ /**
+ * hbase.regionserver.kerberos.principal
+ */
+ @Test
+ public void test_hbase_regionserver_kerberos_principal() {
+ assertEquals("", this.conf.get("hbase.regionserver.kerberos.principal"));
+ }
+
+ /**
+ * hadoop.policy.file
+ */
+ @Test
+ public void test_hadoop_policy_file() {
+ assertEquals("hbase-policy.xml", this.conf.get("hadoop.policy.file"));
+ }
+
+ /**
+ * hbase.superuser
+ */
+ @Test
+ public void test_hbase_superuser() {
+ assertEquals("", this.conf.get("hbase.superuser"));
+ }
+
+ /**
+ * hbase.auth.key.update.interval
+ */
+ @Test
+ public void test_hbase_auth_key_update_interval() {
+ assertEquals("86400000", this.conf.get("hbase.auth.key.update.interval"));
+ }
+
+ /**
+ * hbase.auth.token.max.lifetime
+ */
+ @Test
+ public void test_hbase_auth_token_max_lifetime() {
+ assertEquals("604800000", this.conf.get("hbase.auth.token.max.lifetime"));
+ }
+
+ /**
+ * hbase.ipc.client.fallback-to-simple-auth-allowed
+ */
+ @Test
+ public void test_hbase_ipc_client_fallbacktosimpleauthallowed() {
+ assertEquals("false", this.conf.get("hbase.ipc.client.fallback-to-simple-auth-allowed"));
+ }
+
+ /**
+ * hbase.coprocessor.region.classes
+ */
+ @Test
+ public void test_hbase_coprocessor_region_classes() {
+ assertEquals("", this.conf.get("hbase.coprocessor.region.classes"));
+ }
+
+ /**
+ * hbase.rest.port
+ */
+ @Test
+ public void test_hbase_rest_port() {
+ assertEquals("8080", this.conf.get("hbase.rest.port"));
+ }
+
+ /**
+ * hbase.rest.readonly
+ */
+ @Test
+ public void test_hbase_rest_readonly() {
+ assertEquals("false", this.conf.get("hbase.rest.readonly"));
+ }
+
+ /**
+ * hbase.rest.threads.max
+ */
+ @Test
+ public void test_hbase_rest_threads_max() {
+ assertEquals("100", this.conf.get("hbase.rest.threads.max"));
+ }
+
+ /**
+ * hbase.rest.threads.min
+ */
+ @Test
+ public void test_hbase_rest_threads_min() {
+ assertEquals("2", this.conf.get("hbase.rest.threads.min"));
+ }
+
+ /**
+ * hbase.defaults.for.version.skip
+ */
+ @Test
+ public void test_hbase_defaults_for_version_skip() {
+ assertEquals("false", this.conf.get("hbase.defaults.for.version.skip"));
+ }
+
+ /**
+ * hbase.coprocessor.master.classes
+ */
+ @Test
+ public void test_hbase_coprocessor_master_classes() {
+ assertEquals("", this.conf.get("hbase.coprocessor.master.classes"));
+ }
+
+ /**
+ * hbase.coprocessor.abortonerror
+ */
+ @Test
+ public void test_hbase_coprocessor_abortonerror() {
+ assertEquals("false", this.conf.get("hbase.coprocessor.abortonerror"));
+ }
+
+ /**
+ * hbase.online.schema.update.enable
+ */
+ @Test
+ public void test_hbase_online_schema_update_enable() {
+ assertEquals("false", this.conf.get("hbase.online.schema.update.enable"));
+ }
+
+ /**
+ * hbase.table.lock.enable
+ */
+ @Test
+ public void test_hbase_table_lock_enable() {
+ assertEquals("true", this.conf.get("hbase.table.lock.enable"));
+ }
+
+ /**
+ * hbase.thrift.minWorkerThreads
+ */
+ @Test
+ public void test_hbase_thrift_minWorkerThreads() {
+ assertEquals("16", this.conf.get("hbase.thrift.minWorkerThreads"));
+ }
+
+ /**
+ * hbase.thrift.maxWorkerThreads
+ */
+ @Test
+ public void test_hbase_thrift_maxWorkerThreads() {
+ assertEquals("1000", this.conf.get("hbase.thrift.maxWorkerThreads"));
+ }
+
+ /**
+ * hbase.thrift.maxQueuedRequests
+ */
+ @Test
+ public void test_hbase_thrift_maxQueuedRequests() {
+ assertEquals("1000", this.conf.get("hbase.thrift.maxQueuedRequests"));
+ }
+
+ /**
+ * hbase.offheapcache.percentage
+ */
+ @Test
+ public void test_hbase_offheapcache_percentage() {
+ assertEquals("0", this.conf.get("hbase.offheapcache.percentage"));
+ }
+
+ /**
+ * hbase.data.umask.enable
+ */
+ @Test
+ public void test_hbase_data_umask_enable() {
+ assertEquals("false", this.conf.get("hbase.data.umask.enable"));
+ }
+
+ /**
+ * hbase.data.umask
+ */
+ @Test
+ public void test_hbase_data_umask() {
+ assertEquals("000", this.conf.get("hbase.data.umask"));
+ }
+
+ /**
+ * hbase.metrics.showTableName
+ */
+ @Test
+ public void test_hbase_metrics_showTableName() {
+ assertEquals("true", this.conf.get("hbase.metrics.showTableName"));
+ }
+
+ /**
+ * hbase.metrics.exposeOperationTimes
+ */
+ @Test
+ public void test_hbase_metrics_exposeOperationTimes() {
+ assertEquals("true", this.conf.get("hbase.metrics.exposeOperationTimes"));
+ }
+
+ /**
+ * hbase.snapshot.enabled
+ */
+ @Test
+ public void test_hbase_snapshot_enabled() {
+ assertEquals("true", this.conf.get("hbase.snapshot.enabled"));
+ }
+
+ /**
+ * hbase.server.compactchecker.interval.multiplier
+ */
+ @Test
+ public void test_hbase_server_compactchecker_interval_multiplier() {
+ assertEquals("1000", this.conf.get("hbase.server.compactchecker.interval.multiplier"));
+ }
+
+ /**
+ * hbase.lease.recovery.timeout
+ */
+ @Test
+ public void test_hbase_lease_recovery_timeout() {
+ assertEquals("900000", this.conf.get("hbase.lease.recovery.timeout"));
+ }
+
+ /**
+ * hbase.lease.recovery.dfs.timeout
+ */
+ @Test
+ public void test_hbase_lease_recovery_dfs_timeout() {
+ assertEquals("64000", this.conf.get("hbase.lease.recovery.dfs.timeout"));
+ }
+
+}
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationQueueFailoverCompressed.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationQueueFailoverCompressed.java
index 35c0715..72a7d4b 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationQueueFailoverCompressed.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationQueueFailoverCompressed.java
@@ -37,4 +37,4 @@ public class TestReplicationQueueFailoverCompressed extends TestReplicationQueue
conf1.setBoolean(HConstants.ENABLE_WAL_COMPRESSION, true);
TestReplicationBase.setUpBeforeClass();
}
-}
+}
\ No newline at end of file
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/rest/client/TestRemoteAdmin.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/rest/client/TestRemoteAdmin.java
index d8cd56b..702db8e 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/rest/client/TestRemoteAdmin.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/rest/client/TestRemoteAdmin.java
@@ -106,9 +106,7 @@ public class TestRemoteAdmin {
@Test
public void testClusterStatus() throws Exception {
-
- ClusterStatus status = TEST_UTIL.getHBaseClusterInterface()
- .getClusterStatus();
+ ClusterStatus status = TEST_UTIL.getHBaseClusterInterface().getClusterStatus();
StorageClusterStatusModel returnedStatus = remoteAdmin.getClusterStatus();
assertEquals(
"Region count from cluster status and returned status did not match up. ",
diff --git a/src/main/xslt/hbase-default_to_java_constants.xsl b/src/main/xslt/hbase-default_to_java_constants.xsl
new file mode 100644
index 0000000..896695e
--- /dev/null
+++ b/src/main/xslt/hbase-default_to_java_constants.xsl
@@ -0,0 +1,66 @@
+
+
+
+
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.hbase;
+
+/**
+ * Defaults for named configurations taken from hbase-default.xml.
+ * GENERATED CLASS. Do not modify. Made at build time by running a stylesheet
+ * against hbase-default.xml.
+ */
+public class HBaseDefaultsXMLDefines {
+
+
+ /**
+
+
+
+ */
+ public static String FROM_HBASE_DEFAULT_XML_ = ;
+
+
+}
+
+
diff --git a/src/main/xslt/hbase-default_to_java_junit.xsl b/src/main/xslt/hbase-default_to_java_junit.xsl
new file mode 100644
index 0000000..5f79f83
--- /dev/null
+++ b/src/main/xslt/hbase-default_to_java_junit.xsl
@@ -0,0 +1,74 @@
+
+
+
+
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.hbase;
+import static org.junit.Assert.*;
+import org.junit.Test;
+import org.junit.experimental.categories.Category;
+import org.apache.hadoop.conf.Configuration;
+
+/**
+ * GENERATED CLASS. Run saxon xslt against hbase-default.xml by doing the following
+ * under hbase checkout dir:
+ * $ java -classpath /opt/local/share/java/saxon9he.jar net.sf.saxon.Transform -xsl:./src/main/xslt/hbase-default_to_java_junit.xsl ./hbase-common/src/main/resources/hbase-default.xml > ./hbase-common/src/test/java/org/apache/hadoop/hbase/TestHBaseDefaulXMLPropertyValues.java
+ */
+ @Category(SmallTests.class)
+public class TestHBaseDefaulXMLPropertyValues {
+ private final Configuration conf = new Configuration();
+
+
+
+ /**
+ *
+ */
+ @Test
+ public void test_() {
+ assertEquals("", this.conf.get(""));
+ }
+
+
+}
+
+