Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C63F18FA7 for ; Thu, 21 Jan 2016 17:22:34 +0000 (UTC) Received: (qmail 12913 invoked by uid 500); 21 Jan 2016 17:22:23 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 12807 invoked by uid 500); 21 Jan 2016 17:22:22 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 10817 invoked by uid 99); 21 Jan 2016 17:22:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jan 2016 17:22:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8E978E38BB; Thu, 21 Jan 2016 17:22:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: misty@apache.org To: commits@hbase.apache.org Date: Thu, 21 Jan 2016 17:23:04 -0000 Message-Id: <7464adb449224d0b9120d134a1482dde@git.apache.org> In-Reply-To: <260fbf76833c437ea038951881d40890@git.apache.org> References: <260fbf76833c437ea038951881d40890@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [45/51] [partial] hbase-site git commit: Published site at 4bf6f8379d7f85413b914dddf607d016780d40ce. http://git-wip-us.apache.org/repos/asf/hbase-site/blob/75eda567/apidocs/src-html/org/apache/hadoop/hbase/HConstants.html ---------------------------------------------------------------------- diff --git a/apidocs/src-html/org/apache/hadoop/hbase/HConstants.html b/apidocs/src-html/org/apache/hadoop/hbase/HConstants.html index ef5bdbb..78acfb7 100644 --- a/apidocs/src-html/org/apache/hadoop/hbase/HConstants.html +++ b/apidocs/src-html/org/apache/hadoop/hbase/HConstants.html @@ -142,1140 +142,1136 @@ 134 public static final String HBASE_MASTER_NORMALIZER_CLASS = 135 "hbase.master.normalizer.class"; 136 -137 /** Config for enabling/disabling pluggable region normalizer */ -138 public static final String HBASE_NORMALIZER_ENABLED = -139 "hbase.normalizer.enabled"; -140 -141 /** Cluster is standalone or pseudo-distributed */ -142 public static final boolean CLUSTER_IS_LOCAL = false; -143 -144 /** Cluster is fully-distributed */ -145 public static final boolean CLUSTER_IS_DISTRIBUTED = true; -146 -147 /** Default value for cluster distributed mode */ -148 public static final boolean DEFAULT_CLUSTER_DISTRIBUTED = CLUSTER_IS_LOCAL; -149 -150 /** default host address */ -151 public static final String DEFAULT_HOST = "0.0.0.0"; -152 -153 /** Parameter name for port master listens on. */ -154 public static final String MASTER_PORT = "hbase.master.port"; -155 -156 /** default port that the master listens on */ -157 public static final int DEFAULT_MASTER_PORT = 16000; -158 -159 /** default port for master web api */ -160 public static final int DEFAULT_MASTER_INFOPORT = 16010; -161 -162 /** Configuration key for master web API port */ -163 public static final String MASTER_INFO_PORT = "hbase.master.info.port"; -164 -165 /** Parameter name for the master type being backup (waits for primary to go inactive). */ -166 public static final String MASTER_TYPE_BACKUP = "hbase.master.backup"; -167 -168 /** -169 * by default every master is a possible primary master unless the conf explicitly overrides it -170 */ -171 public static final boolean DEFAULT_MASTER_TYPE_BACKUP = false; -172 -173 /** Name of ZooKeeper quorum configuration parameter. */ -174 public static final String ZOOKEEPER_QUORUM = "hbase.zookeeper.quorum"; +137 /** Cluster is standalone or pseudo-distributed */ +138 public static final boolean CLUSTER_IS_LOCAL = false; +139 +140 /** Cluster is fully-distributed */ +141 public static final boolean CLUSTER_IS_DISTRIBUTED = true; +142 +143 /** Default value for cluster distributed mode */ +144 public static final boolean DEFAULT_CLUSTER_DISTRIBUTED = CLUSTER_IS_LOCAL; +145 +146 /** default host address */ +147 public static final String DEFAULT_HOST = "0.0.0.0"; +148 +149 /** Parameter name for port master listens on. */ +150 public static final String MASTER_PORT = "hbase.master.port"; +151 +152 /** default port that the master listens on */ +153 public static final int DEFAULT_MASTER_PORT = 16000; +154 +155 /** default port for master web api */ +156 public static final int DEFAULT_MASTER_INFOPORT = 16010; +157 +158 /** Configuration key for master web API port */ +159 public static final String MASTER_INFO_PORT = "hbase.master.info.port"; +160 +161 /** Parameter name for the master type being backup (waits for primary to go inactive). */ +162 public static final String MASTER_TYPE_BACKUP = "hbase.master.backup"; +163 +164 /** +165 * by default every master is a possible primary master unless the conf explicitly overrides it +166 */ +167 public static final boolean DEFAULT_MASTER_TYPE_BACKUP = false; +168 +169 /** Name of ZooKeeper quorum configuration parameter. */ +170 public static final String ZOOKEEPER_QUORUM = "hbase.zookeeper.quorum"; +171 +172 /** Common prefix of ZooKeeper configuration properties */ +173 public static final String ZK_CFG_PROPERTY_PREFIX = +174 "hbase.zookeeper.property."; 175 -176 /** Common prefix of ZooKeeper configuration properties */ -177 public static final String ZK_CFG_PROPERTY_PREFIX = -178 "hbase.zookeeper.property."; -179 -180 public static final int ZK_CFG_PROPERTY_PREFIX_LEN = -181 ZK_CFG_PROPERTY_PREFIX.length(); -182 -183 /** -184 * The ZK client port key in the ZK properties map. The name reflects the -185 * fact that this is not an HBase configuration key. -186 */ -187 public static final String CLIENT_PORT_STR = "clientPort"; +176 public static final int ZK_CFG_PROPERTY_PREFIX_LEN = +177 ZK_CFG_PROPERTY_PREFIX.length(); +178 +179 /** +180 * The ZK client port key in the ZK properties map. The name reflects the +181 * fact that this is not an HBase configuration key. +182 */ +183 public static final String CLIENT_PORT_STR = "clientPort"; +184 +185 /** Parameter name for the client port that the zookeeper listens on */ +186 public static final String ZOOKEEPER_CLIENT_PORT = +187 ZK_CFG_PROPERTY_PREFIX + CLIENT_PORT_STR; 188 -189 /** Parameter name for the client port that the zookeeper listens on */ -190 public static final String ZOOKEEPER_CLIENT_PORT = -191 ZK_CFG_PROPERTY_PREFIX + CLIENT_PORT_STR; -192 -193 /** Default client port that the zookeeper listens on */ -194 public static final int DEFAULT_ZOOKEPER_CLIENT_PORT = 2181; -195 -196 /** -197 * Parameter name for the wait time for the recoverable zookeeper -198 */ -199 public static final String ZOOKEEPER_RECOVERABLE_WAITTIME = -200 "hbase.zookeeper.recoverable.waittime"; -201 -202 /** Default wait time for the recoverable zookeeper */ -203 public static final long DEFAULT_ZOOKEPER_RECOVERABLE_WAITIME = 10000; -204 -205 /** Parameter name for the root dir in ZK for this cluster */ -206 public static final String ZOOKEEPER_ZNODE_PARENT = "zookeeper.znode.parent"; -207 -208 public static final String DEFAULT_ZOOKEEPER_ZNODE_PARENT = "/hbase"; -209 -210 /** -211 * Parameter name for the limit on concurrent client-side zookeeper -212 * connections -213 */ -214 public static final String ZOOKEEPER_MAX_CLIENT_CNXNS = -215 ZK_CFG_PROPERTY_PREFIX + "maxClientCnxns"; +189 /** Default client port that the zookeeper listens on */ +190 public static final int DEFAULT_ZOOKEPER_CLIENT_PORT = 2181; +191 +192 /** +193 * Parameter name for the wait time for the recoverable zookeeper +194 */ +195 public static final String ZOOKEEPER_RECOVERABLE_WAITTIME = +196 "hbase.zookeeper.recoverable.waittime"; +197 +198 /** Default wait time for the recoverable zookeeper */ +199 public static final long DEFAULT_ZOOKEPER_RECOVERABLE_WAITIME = 10000; +200 +201 /** Parameter name for the root dir in ZK for this cluster */ +202 public static final String ZOOKEEPER_ZNODE_PARENT = "zookeeper.znode.parent"; +203 +204 public static final String DEFAULT_ZOOKEEPER_ZNODE_PARENT = "/hbase"; +205 +206 /** +207 * Parameter name for the limit on concurrent client-side zookeeper +208 * connections +209 */ +210 public static final String ZOOKEEPER_MAX_CLIENT_CNXNS = +211 ZK_CFG_PROPERTY_PREFIX + "maxClientCnxns"; +212 +213 /** Parameter name for the ZK data directory */ +214 public static final String ZOOKEEPER_DATA_DIR = +215 ZK_CFG_PROPERTY_PREFIX + "dataDir"; 216 -217 /** Parameter name for the ZK data directory */ -218 public static final String ZOOKEEPER_DATA_DIR = -219 ZK_CFG_PROPERTY_PREFIX + "dataDir"; +217 /** Parameter name for the ZK tick time */ +218 public static final String ZOOKEEPER_TICK_TIME = +219 ZK_CFG_PROPERTY_PREFIX + "tickTime"; 220 -221 /** Parameter name for the ZK tick time */ -222 public static final String ZOOKEEPER_TICK_TIME = -223 ZK_CFG_PROPERTY_PREFIX + "tickTime"; -224 -225 /** Default limit on concurrent client-side zookeeper connections */ -226 public static final int DEFAULT_ZOOKEPER_MAX_CLIENT_CNXNS = 300; -227 -228 /** Configuration key for ZooKeeper session timeout */ -229 public static final String ZK_SESSION_TIMEOUT = "zookeeper.session.timeout"; -230 -231 /** Default value for ZooKeeper session timeout */ -232 public static final int DEFAULT_ZK_SESSION_TIMEOUT = 180 * 1000; -233 -234 /** Configuration key for whether to use ZK.multi */ -235 public static final String ZOOKEEPER_USEMULTI = "hbase.zookeeper.useMulti"; -236 -237 /** Parameter name for port region server listens on. */ -238 public static final String REGIONSERVER_PORT = "hbase.regionserver.port"; -239 -240 /** Default port region server listens on. */ -241 public static final int DEFAULT_REGIONSERVER_PORT = 16020; -242 -243 /** default port for region server web api */ -244 public static final int DEFAULT_REGIONSERVER_INFOPORT = 16030; +221 /** Default limit on concurrent client-side zookeeper connections */ +222 public static final int DEFAULT_ZOOKEPER_MAX_CLIENT_CNXNS = 300; +223 +224 /** Configuration key for ZooKeeper session timeout */ +225 public static final String ZK_SESSION_TIMEOUT = "zookeeper.session.timeout"; +226 +227 /** Default value for ZooKeeper session timeout */ +228 public static final int DEFAULT_ZK_SESSION_TIMEOUT = 180 * 1000; +229 +230 /** Configuration key for whether to use ZK.multi */ +231 public static final String ZOOKEEPER_USEMULTI = "hbase.zookeeper.useMulti"; +232 +233 /** Parameter name for port region server listens on. */ +234 public static final String REGIONSERVER_PORT = "hbase.regionserver.port"; +235 +236 /** Default port region server listens on. */ +237 public static final int DEFAULT_REGIONSERVER_PORT = 16020; +238 +239 /** default port for region server web api */ +240 public static final int DEFAULT_REGIONSERVER_INFOPORT = 16030; +241 +242 /** A configuration key for regionserver info port */ +243 public static final String REGIONSERVER_INFO_PORT = +244 "hbase.regionserver.info.port"; 245 -246 /** A configuration key for regionserver info port */ -247 public static final String REGIONSERVER_INFO_PORT = -248 "hbase.regionserver.info.port"; +246 /** A flag that enables automatic selection of regionserver info port */ +247 public static final String REGIONSERVER_INFO_PORT_AUTO = +248 REGIONSERVER_INFO_PORT + ".auto"; 249 -250 /** A flag that enables automatic selection of regionserver info port */ -251 public static final String REGIONSERVER_INFO_PORT_AUTO = -252 REGIONSERVER_INFO_PORT + ".auto"; -253 -254 /** Parameter name for what region server implementation to use. */ -255 public static final String REGION_SERVER_IMPL= "hbase.regionserver.impl"; -256 -257 /** Parameter name for what master implementation to use. */ -258 public static final String MASTER_IMPL= "hbase.master.impl"; -259 -260 /** Parameter name for what hbase client implementation to use. */ -261 public static final String HBASECLIENT_IMPL= "hbase.hbaseclient.impl"; -262 -263 /** Parameter name for how often threads should wake up */ -264 public static final String THREAD_WAKE_FREQUENCY = "hbase.server.thread.wakefrequency"; -265 -266 /** Default value for thread wake frequency */ -267 public static final int DEFAULT_THREAD_WAKE_FREQUENCY = 10 * 1000; -268 -269 /** Parameter name for how often we should try to write a version file, before failing */ -270 public static final String VERSION_FILE_WRITE_ATTEMPTS = "hbase.server.versionfile.writeattempts"; -271 -272 /** Parameter name for how often we should try to write a version file, before failing */ -273 public static final int DEFAULT_VERSION_FILE_WRITE_ATTEMPTS = 3; -274 -275 /** Parameter name for how often a region should should perform a major compaction */ -276 public static final String MAJOR_COMPACTION_PERIOD = "hbase.hregion.majorcompaction"; +250 /** Parameter name for what region server implementation to use. */ +251 public static final String REGION_SERVER_IMPL= "hbase.regionserver.impl"; +252 +253 /** Parameter name for what master implementation to use. */ +254 public static final String MASTER_IMPL= "hbase.master.impl"; +255 +256 /** Parameter name for what hbase client implementation to use. */ +257 public static final String HBASECLIENT_IMPL= "hbase.hbaseclient.impl"; +258 +259 /** Parameter name for how often threads should wake up */ +260 public static final String THREAD_WAKE_FREQUENCY = "hbase.server.thread.wakefrequency"; +261 +262 /** Default value for thread wake frequency */ +263 public static final int DEFAULT_THREAD_WAKE_FREQUENCY = 10 * 1000; +264 +265 /** Parameter name for how often we should try to write a version file, before failing */ +266 public static final String VERSION_FILE_WRITE_ATTEMPTS = "hbase.server.versionfile.writeattempts"; +267 +268 /** Parameter name for how often we should try to write a version file, before failing */ +269 public static final int DEFAULT_VERSION_FILE_WRITE_ATTEMPTS = 3; +270 +271 /** Parameter name for how often a region should should perform a major compaction */ +272 public static final String MAJOR_COMPACTION_PERIOD = "hbase.hregion.majorcompaction"; +273 +274 /** Parameter name for the maximum batch of KVs to be used in flushes and compactions */ +275 public static final String COMPACTION_KV_MAX = "hbase.hstore.compaction.kv.max"; +276 public static final int COMPACTION_KV_MAX_DEFAULT = 10; 277 -278 /** Parameter name for the maximum batch of KVs to be used in flushes and compactions */ -279 public static final String COMPACTION_KV_MAX = "hbase.hstore.compaction.kv.max"; -280 public static final int COMPACTION_KV_MAX_DEFAULT = 10; -281 -282 /** Parameter name for HBase instance root directory */ -283 public static final String HBASE_DIR = "hbase.rootdir"; -284 -285 /** Parameter name for HBase client IPC pool type */ -286 public static final String HBASE_CLIENT_IPC_POOL_TYPE = "hbase.client.ipc.pool.type"; -287 -288 /** Parameter name for HBase client IPC pool size */ -289 public static final String HBASE_CLIENT_IPC_POOL_SIZE = "hbase.client.ipc.pool.size"; -290 -291 /** Parameter name for HBase client operation timeout, which overrides RPC timeout */ -292 public static final String HBASE_CLIENT_OPERATION_TIMEOUT = "hbase.client.operation.timeout"; +278 /** Parameter name for HBase instance root directory */ +279 public static final String HBASE_DIR = "hbase.rootdir"; +280 +281 /** Parameter name for HBase client IPC pool type */ +282 public static final String HBASE_CLIENT_IPC_POOL_TYPE = "hbase.client.ipc.pool.type"; +283 +284 /** Parameter name for HBase client IPC pool size */ +285 public static final String HBASE_CLIENT_IPC_POOL_SIZE = "hbase.client.ipc.pool.size"; +286 +287 /** Parameter name for HBase client operation timeout, which overrides RPC timeout */ +288 public static final String HBASE_CLIENT_OPERATION_TIMEOUT = "hbase.client.operation.timeout"; +289 +290 /** Parameter name for HBase client operation timeout, which overrides RPC timeout */ +291 public static final String HBASE_CLIENT_META_OPERATION_TIMEOUT = +292 "hbase.client.meta.operation.timeout"; 293 -294 /** Parameter name for HBase client operation timeout, which overrides RPC timeout */ -295 public static final String HBASE_CLIENT_META_OPERATION_TIMEOUT = -296 "hbase.client.meta.operation.timeout"; -297 -298 /** Default HBase client operation timeout, which is tantamount to a blocking call */ -299 public static final int DEFAULT_HBASE_CLIENT_OPERATION_TIMEOUT = 1200000; -300 -301 /** Used to construct the name of the log directory for a region server */ -302 public static final String HREGION_LOGDIR_NAME = "WALs"; -303 -304 /** Used to construct the name of the splitlog directory for a region server */ -305 public static final String SPLIT_LOGDIR_NAME = "splitWAL"; -306 -307 /** Like the previous, but for old logs that are about to be deleted */ -308 public static final String HREGION_OLDLOGDIR_NAME = "oldWALs"; -309 -310 public static final String CORRUPT_DIR_NAME = "corrupt"; -311 -312 /** Used by HBCK to sideline backup data */ -313 public static final String HBCK_SIDELINEDIR_NAME = ".hbck"; -314 -315 /** Any artifacts left from migration can be moved here */ -316 public static final String MIGRATION_NAME = ".migration"; -317 -318 /** -319 * The directory from which co-processor/custom filter jars can be loaded -320 * dynamically by the region servers. This value can be overridden by the -321 * hbase.dynamic.jars.dir config. -322 */ -323 public static final String LIB_DIR = "lib"; -324 -325 /** Used to construct the name of the compaction directory during compaction */ -326 public static final String HREGION_COMPACTIONDIR_NAME = "compaction.dir"; +294 /** Default HBase client operation timeout, which is tantamount to a blocking call */ +295 public static final int DEFAULT_HBASE_CLIENT_OPERATION_TIMEOUT = 1200000; +296 +297 /** Used to construct the name of the log directory for a region server */ +298 public static final String HREGION_LOGDIR_NAME = "WALs"; +299 +300 /** Used to construct the name of the splitlog directory for a region server */ +301 public static final String SPLIT_LOGDIR_NAME = "splitWAL"; +302 +303 /** Like the previous, but for old logs that are about to be deleted */ +304 public static final String HREGION_OLDLOGDIR_NAME = "oldWALs"; +305 +306 public static final String CORRUPT_DIR_NAME = "corrupt"; +307 +308 /** Used by HBCK to sideline backup data */ +309 public static final String HBCK_SIDELINEDIR_NAME = ".hbck"; +310 +311 /** Any artifacts left from migration can be moved here */ +312 public static final String MIGRATION_NAME = ".migration"; +313 +314 /** +315 * The directory from which co-processor/custom filter jars can be loaded +316 * dynamically by the region servers. This value can be overridden by the +317 * hbase.dynamic.jars.dir config. +318 */ +319 public static final String LIB_DIR = "lib"; +320 +321 /** Used to construct the name of the compaction directory during compaction */ +322 public static final String HREGION_COMPACTIONDIR_NAME = "compaction.dir"; +323 +324 /** Conf key for the max file size after which we split the region */ +325 public static final String HREGION_MAX_FILESIZE = +326 "hbase.hregion.max.filesize"; 327 -328 /** Conf key for the max file size after which we split the region */ -329 public static final String HREGION_MAX_FILESIZE = -330 "hbase.hregion.max.filesize"; -331 -332 /** Default maximum file size */ -333 public static final long DEFAULT_MAX_FILE_SIZE = 10 * 1024 * 1024 * 1024L; -334 -335 /** -336 * Max size of single row for Get's or Scan's without in-row scanning flag set. -337 */ -338 public static final String TABLE_MAX_ROWSIZE_KEY = "hbase.table.max.rowsize"; -339 -340 /** -341 * Default max row size (1 Gb). -342 */ -343 public static final long TABLE_MAX_ROWSIZE_DEFAULT = 1024 * 1024 * 1024L; -344 -345 /** -346 * The max number of threads used for opening and closing stores or store -347 * files in parallel -348 */ -349 public static final String HSTORE_OPEN_AND_CLOSE_THREADS_MAX = -350 "hbase.hstore.open.and.close.threads.max"; -351 -352 /** -353 * The default number for the max number of threads used for opening and -354 * closing stores or store files in parallel -355 */ -356 public static final int DEFAULT_HSTORE_OPEN_AND_CLOSE_THREADS_MAX = 1; -357 -358 /** -359 * Block updates if memstore has hbase.hregion.memstore.block.multiplier -360 * times hbase.hregion.memstore.flush.size bytes. Useful preventing -361 * runaway memstore during spikes in update traffic. -362 */ -363 public static final String HREGION_MEMSTORE_BLOCK_MULTIPLIER = -364 "hbase.hregion.memstore.block.multiplier"; -365 -366 /** -367 * Default value for hbase.hregion.memstore.block.multiplier -368 */ -369 public static final int DEFAULT_HREGION_MEMSTORE_BLOCK_MULTIPLIER = 4; +328 /** Default maximum file size */ +329 public static final long DEFAULT_MAX_FILE_SIZE = 10 * 1024 * 1024 * 1024L; +330 +331 /** +332 * Max size of single row for Get's or Scan's without in-row scanning flag set. +333 */ +334 public static final String TABLE_MAX_ROWSIZE_KEY = "hbase.table.max.rowsize"; +335 +336 /** +337 * Default max row size (1 Gb). +338 */ +339 public static final long TABLE_MAX_ROWSIZE_DEFAULT = 1024 * 1024 * 1024L; +340 +341 /** +342 * The max number of threads used for opening and closing stores or store +343 * files in parallel +344 */ +345 public static final String HSTORE_OPEN_AND_CLOSE_THREADS_MAX = +346 "hbase.hstore.open.and.close.threads.max"; +347 +348 /** +349 * The default number for the max number of threads used for opening and +350 * closing stores or store files in parallel +351 */ +352 public static final int DEFAULT_HSTORE_OPEN_AND_CLOSE_THREADS_MAX = 1; +353 +354 /** +355 * Block updates if memstore has hbase.hregion.memstore.block.multiplier +356 * times hbase.hregion.memstore.flush.size bytes. Useful preventing +357 * runaway memstore during spikes in update traffic. +358 */ +359 public static final String HREGION_MEMSTORE_BLOCK_MULTIPLIER = +360 "hbase.hregion.memstore.block.multiplier"; +361 +362 /** +363 * Default value for hbase.hregion.memstore.block.multiplier +364 */ +365 public static final int DEFAULT_HREGION_MEMSTORE_BLOCK_MULTIPLIER = 4; +366 +367 /** Conf key for the memstore size at which we flush the memstore */ +368 public static final String HREGION_MEMSTORE_FLUSH_SIZE = +369 "hbase.hregion.memstore.flush.size"; 370 -371 /** Conf key for the memstore size at which we flush the memstore */ -372 public static final String HREGION_MEMSTORE_FLUSH_SIZE = -373 "hbase.hregion.memstore.flush.size"; -374 -375 public static final String HREGION_EDITS_REPLAY_SKIP_ERRORS = -376 "hbase.hregion.edits.replay.skip.errors"; -377 -378 public static final boolean DEFAULT_HREGION_EDITS_REPLAY_SKIP_ERRORS = -379 false; -380 -381 /** Maximum value length, enforced on KeyValue construction */ -382 public static final int MAXIMUM_VALUE_LENGTH = Integer.MAX_VALUE - 1; -383 -384 /** name of the file for unique cluster ID */ -385 public static final String CLUSTER_ID_FILE_NAME = "hbase.id"; -386 -387 /** Default value for cluster ID */ -388 public static final String CLUSTER_ID_DEFAULT = "default-cluster"; -389 -390 /** Parameter name for # days to keep MVCC values during a major compaction */ -391 public static final String KEEP_SEQID_PERIOD = "hbase.hstore.compaction.keep.seqId.period"; -392 /** At least to keep MVCC values in hfiles for 5 days */ -393 public static final int MIN_KEEP_SEQID_PERIOD = 5; -394 -395 // Always store the location of the root table's HRegion. -396 // This HRegion is never split. +371 public static final String HREGION_EDITS_REPLAY_SKIP_ERRORS = +372 "hbase.hregion.edits.replay.skip.errors"; +373 +374 public static final boolean DEFAULT_HREGION_EDITS_REPLAY_SKIP_ERRORS = +375 false; +376 +377 /** Maximum value length, enforced on KeyValue construction */ +378 public static final int MAXIMUM_VALUE_LENGTH = Integer.MAX_VALUE - 1; +379 +380 /** name of the file for unique cluster ID */ +381 public static final String CLUSTER_ID_FILE_NAME = "hbase.id"; +382 +383 /** Default value for cluster ID */ +384 public static final String CLUSTER_ID_DEFAULT = "default-cluster"; +385 +386 /** Parameter name for # days to keep MVCC values during a major compaction */ +387 public static final String KEEP_SEQID_PERIOD = "hbase.hstore.compaction.keep.seqId.period"; +388 /** At least to keep MVCC values in hfiles for 5 days */ +389 public static final int MIN_KEEP_SEQID_PERIOD = 5; +390 +391 // Always store the location of the root table's HRegion. +392 // This HRegion is never split. +393 +394 // region name = table + startkey + regionid. This is the row key. +395 // each row in the root and meta tables describes exactly 1 region +396 // Do we ever need to know all the information that we are storing? 397 -398 // region name = table + startkey + regionid. This is the row key. -399 // each row in the root and meta tables describes exactly 1 region -400 // Do we ever need to know all the information that we are storing? -401 -402 // Note that the name of the root table starts with "-" and the name of the -403 // meta table starts with "." Why? it's a trick. It turns out that when we -404 // store region names in memory, we use a SortedMap. Since "-" sorts before -405 // "." (and since no other table name can start with either of these -406 // characters, the root region will always be the first entry in such a Map, -407 // followed by all the meta regions (which will be ordered by their starting -408 // row key as well), followed by all user tables. So when the Master is -409 // choosing regions to assign, it will always choose the root region first, -410 // followed by the meta regions, followed by user regions. Since the root -411 // and meta regions always need to be on-line, this ensures that they will -412 // be the first to be reassigned if the server(s) they are being served by -413 // should go down. -414 -415 -416 /** -417 * The hbase:meta table's name. -418 * @deprecated For upgrades of 0.94 to 0.96 -419 */ -420 @Deprecated // for compat from 0.94 -> 0.96. -421 public static final byte[] META_TABLE_NAME = TableName.META_TABLE_NAME.getName(); -422 -423 public static final String BASE_NAMESPACE_DIR = "data"; -424 -425 /** delimiter used between portions of a region name */ -426 public static final int META_ROW_DELIMITER = ','; -427 -428 /** The catalog family as a string*/ -429 public static final String CATALOG_FAMILY_STR = "info"; -430 -431 /** The catalog family */ -432 public static final byte [] CATALOG_FAMILY = Bytes.toBytes(CATALOG_FAMILY_STR); -433 -434 /** The RegionInfo qualifier as a string */ -435 public static final String REGIONINFO_QUALIFIER_STR = "regioninfo"; -436 -437 /** The regioninfo column qualifier */ -438 public static final byte [] REGIONINFO_QUALIFIER = Bytes.toBytes(REGIONINFO_QUALIFIER_STR); -439 -440 /** The server column qualifier */ -441 public static final String SERVER_QUALIFIER_STR = "server"; -442 /** The server column qualifier */ -443 public static final byte [] SERVER_QUALIFIER = Bytes.toBytes(SERVER_QUALIFIER_STR); -444 -445 /** The startcode column qualifier */ -446 public static final String STARTCODE_QUALIFIER_STR = "serverstartcode"; -447 /** The startcode column qualifier */ -448 public static final byte [] STARTCODE_QUALIFIER = Bytes.toBytes(STARTCODE_QUALIFIER_STR); -449 -450 /** The open seqnum column qualifier */ -451 public static final String SEQNUM_QUALIFIER_STR = "seqnumDuringOpen"; -452 /** The open seqnum column qualifier */ -453 public static final byte [] SEQNUM_QUALIFIER = Bytes.toBytes(SEQNUM_QUALIFIER_STR); -454 -455 /** The state column qualifier */ -456 public static final String STATE_QUALIFIER_STR = "state"; -457 -458 public static final byte [] STATE_QUALIFIER = Bytes.toBytes(STATE_QUALIFIER_STR); -459 -460 /** -461 * The serverName column qualifier. Its the server where the region is -462 * transitioning on, while column server is the server where the region is -463 * opened on. They are the same when the region is in state OPEN. -464 */ -465 public static final String SERVERNAME_QUALIFIER_STR = "sn"; -466 -467 public static final byte [] SERVERNAME_QUALIFIER = Bytes.toBytes(SERVERNAME_QUALIFIER_STR); -468 -469 /** The lower-half split region column qualifier */ -470 public static final byte [] SPLITA_QUALIFIER = Bytes.toBytes("splitA"); -471 -472 /** The upper-half split region column qualifier */ -473 public static final byte [] SPLITB_QUALIFIER = Bytes.toBytes("splitB"); -474 -475 /** The lower-half merge region column qualifier */ -476 public static final byte[] MERGEA_QUALIFIER = Bytes.toBytes("mergeA"); -477 -478 /** The upper-half merge region column qualifier */ -479 public static final byte[] MERGEB_QUALIFIER = Bytes.toBytes("mergeB"); -480 -481 /** The catalog family as a string*/ -482 public static final String TABLE_FAMILY_STR = "table"; -483 -484 /** The catalog family */ -485 public static final byte [] TABLE_FAMILY = Bytes.toBytes(TABLE_FAMILY_STR); +398 // Note that the name of the root table starts with "-" and the name of the +399 // meta table starts with "." Why? it's a trick. It turns out that when we +400 // store region names in memory, we use a SortedMap. Since "-" sorts before +401 // "." (and since no other table name can start with either of these +402 // characters, the root region will always be the first entry in such a Map, +403 // followed by all the meta regions (which will be ordered by their starting +404 // row key as well), followed by all user tables. So when the Master is +405 // choosing regions to assign, it will always choose the root region first, +406 // followed by the meta regions, followed by user regions. Since the root +407 // and meta regions always need to be on-line, this ensures that they will +408 // be the first to be reassigned if the server(s) they are being served by +409 // should go down. +410 +411 +412 /** +413 * The hbase:meta table's name. +414 * @deprecated For upgrades of 0.94 to 0.96 +415 */ +416 @Deprecated // for compat from 0.94 -> 0.96. +417 public static final byte[] META_TABLE_NAME = TableName.META_TABLE_NAME.getName(); +418 +419 public static final String BASE_NAMESPACE_DIR = "data"; +420 +421 /** delimiter used between portions of a region name */ +422 public static final int META_ROW_DELIMITER = ','; +423 +424 /** The catalog family as a string*/ +425 public static final String CATALOG_FAMILY_STR = "info"; +426 +427 /** The catalog family */ +428 public static final byte [] CATALOG_FAMILY = Bytes.toBytes(CATALOG_FAMILY_STR); +429 +430 /** The RegionInfo qualifier as a string */ +431 public static final String REGIONINFO_QUALIFIER_STR = "regioninfo"; +432 +433 /** The regioninfo column qualifier */ +434 public static final byte [] REGIONINFO_QUALIFIER = Bytes.toBytes(REGIONINFO_QUALIFIER_STR); +435 +436 /** The server column qualifier */ +437 public static final String SERVER_QUALIFIER_STR = "server"; +438 /** The server column qualifier */ +439 public static final byte [] SERVER_QUALIFIER = Bytes.toBytes(SERVER_QUALIFIER_STR); +440 +441 /** The startcode column qualifier */ +442 public static final String STARTCODE_QUALIFIER_STR = "serverstartcode"; +443 /** The startcode column qualifier */ +444 public static final byte [] STARTCODE_QUALIFIER = Bytes.toBytes(STARTCODE_QUALIFIER_STR); +445 +446 /** The open seqnum column qualifier */ +447 public static final String SEQNUM_QUALIFIER_STR = "seqnumDuringOpen"; +448 /** The open seqnum column qualifier */ +449 public static final byte [] SEQNUM_QUALIFIER = Bytes.toBytes(SEQNUM_QUALIFIER_STR); +450 +451 /** The state column qualifier */ +452 public static final String STATE_QUALIFIER_STR = "state"; +453 +454 public static final byte [] STATE_QUALIFIER = Bytes.toBytes(STATE_QUALIFIER_STR); +455 +456 /** +457 * The serverName column qualifier. Its the server where the region is +458 * transitioning on, while column server is the server where the region is +459 * opened on. They are the same when the region is in state OPEN. +460 */ +461 public static final String SERVERNAME_QUALIFIER_STR = "sn"; +462 +463 public static final byte [] SERVERNAME_QUALIFIER = Bytes.toBytes(SERVERNAME_QUALIFIER_STR); +464 +465 /** The lower-half split region column qualifier */ +466 public static final byte [] SPLITA_QUALIFIER = Bytes.toBytes("splitA"); +467 +468 /** The upper-half split region column qualifier */ +469 public static final byte [] SPLITB_QUALIFIER = Bytes.toBytes("splitB"); +470 +471 /** The lower-half merge region column qualifier */ +472 public static final byte[] MERGEA_QUALIFIER = Bytes.toBytes("mergeA"); +473 +474 /** The upper-half merge region column qualifier */ +475 public static final byte[] MERGEB_QUALIFIER = Bytes.toBytes("mergeB"); +476 +477 /** The catalog family as a string*/ +478 public static final String TABLE_FAMILY_STR = "table"; +479 +480 /** The catalog family */ +481 public static final byte [] TABLE_FAMILY = Bytes.toBytes(TABLE_FAMILY_STR); +482 +483 /** The serialized table state qualifier */ +484 public static final byte[] TABLE_STATE_QUALIFIER = Bytes.toBytes("state"); +485 486 -487 /** The serialized table state qualifier */ -488 public static final byte[] TABLE_STATE_QUALIFIER = Bytes.toBytes("state"); -489 -490 -491 /** -492 * The meta table version column qualifier. -493 * We keep current version of the meta table in this column in <code>-ROOT-</code> -494 * table: i.e. in the 'info:v' column. -495 */ -496 public static final byte [] META_VERSION_QUALIFIER = Bytes.toBytes("v"); -497 -498 /** -499 * The current version of the meta table. -500 * - pre-hbase 0.92. There is no META_VERSION column in the root table -501 * in this case. The meta has HTableDescriptor serialized into the HRegionInfo; -502 * - version 0 is 0.92 and 0.94. Meta data has serialized HRegionInfo's using -503 * Writable serialization, and HRegionInfo's does not contain HTableDescriptors. -504 * - version 1 for 0.96+ keeps HRegionInfo data structures, but changes the -505 * byte[] serialization from Writables to Protobuf. -506 * See HRegionInfo.VERSION -507 */ -508 public static final short META_VERSION = 1; -509 -510 // Other constants -511 -512 /** -513 * An empty instance. -514 */ -515 public static final byte [] EMPTY_BYTE_ARRAY = new byte [0]; -516 -517 public static final ByteBuffer EMPTY_BYTE_BUFFER = ByteBuffer.wrap(EMPTY_BYTE_ARRAY); -518 -519 /** -520 * Used by scanners, etc when they want to start at the beginning of a region -521 */ -522 public static final byte [] EMPTY_START_ROW = EMPTY_BYTE_ARRAY; -523 -524 /** -525 * Last row in a table. -526 */ -527 public static final byte [] EMPTY_END_ROW = EMPTY_START_ROW; -528 -529 /** -530 * Used by scanners and others when they're trying to detect the end of a -531 * table -532 */ -533 public static final byte [] LAST_ROW = EMPTY_BYTE_ARRAY; -534 -535 /** -536 * Max length a row can have because of the limitation in TFile. -537 */ -538 public static final int MAX_ROW_LENGTH = Short.MAX_VALUE; -539 -540 /** -541 * Timestamp to use when we want to refer to the latest cell. -542 * This is the timestamp sent by clients when no timestamp is specified on -543 * commit. -544 */ -545 public static final long LATEST_TIMESTAMP = Long.MAX_VALUE; -546 -547 /** -548 * Timestamp to use when we want to refer to the oldest cell. -549 */ -550 public static final long OLDEST_TIMESTAMP = Long.MIN_VALUE; -551 -552 /** -553 * LATEST_TIMESTAMP in bytes form -554 */ -555 public static final byte [] LATEST_TIMESTAMP_BYTES = { -556 // big-endian -557 (byte) (LATEST_TIMESTAMP >>> 56), -558 (byte) (LATEST_TIMESTAMP >>> 48), -559 (byte) (LATEST_TIMESTAMP >>> 40), -560 (byte) (LATEST_TIMESTAMP >>> 32), -561 (byte) (LATEST_TIMESTAMP >>> 24), -562 (byte) (LATEST_TIMESTAMP >>> 16), -563 (byte) (LATEST_TIMESTAMP >>> 8), -564 (byte) LATEST_TIMESTAMP, -565 }; -566 -567 /** -568 * Define for 'return-all-versions'. -569 */ -570 public static final int ALL_VERSIONS = Integer.MAX_VALUE; -571 -572 /** -573 * Unlimited time-to-live. -574 */ -575// public static final int FOREVER = -1; -576 public static final int FOREVER = Integer.MAX_VALUE; -577 -578 /** -579 * Seconds in a week -580 */ -581 public static final int WEEK_IN_SECONDS = 7 * 24 * 3600; -582 -583 /** -584 * Seconds in a day, hour and minute -585 */ -586 public static final int DAY_IN_SECONDS = 24 * 60 * 60; -587 public static final int HOUR_IN_SECONDS = 60 * 60; -588 public static final int MINUTE_IN_SECONDS = 60; -589 -590 //TODO: although the following are referenced widely to format strings for -591 // the shell. They really aren't a part of the public API. It would be -592 // nice if we could put them somewhere where they did not need to be -593 // public. They could have package visibility -594 public static final String NAME = "NAME"; -595 public static final String VERSIONS = "VERSIONS"; -596 public static final String IN_MEMORY = "IN_MEMORY"; -597 public static final String METADATA = "METADATA"; -598 public static final String CONFIGURATION = "CONFIGURATION"; -599 -600 /** -601 * Retrying we multiply hbase.client.pause setting by what we have in this array until we -602 * run out of array items. Retries beyond this use the last number in the array. So, for -603 * example, if hbase.client.pause is 1 second, and maximum retries count -604 * hbase.client.retries.number is 10, we will retry at the following intervals: -605 * 1, 2, 3, 5, 10, 20, 40, 100, 100, 100. -606 * With 100ms, a back-off of 200 means 20s -607 */ -608 public static final int [] RETRY_BACKOFF = {1, 2, 3, 5, 10, 20, 40, 100, 100, 100, 100, 200, 200}; -609 -610 public static final String REGION_IMPL = "hbase.hregion.impl"; -611 -612 /** modifyTable op for replacing the table descriptor */ -613 @InterfaceAudience.Private -614 public static enum Modify { -615 CLOSE_REGION, -616 TABLE_COMPACT, -617 TABLE_FLUSH, -618 TABLE_MAJOR_COMPACT, -619 TABLE_SET_HTD, -620 TABLE_SPLIT -621 } -622 -623 /** -624 * Scope tag for locally scoped data. -625 * This data will not be replicated. -626 */ -627 public static final int REPLICATION_SCOPE_LOCAL = 0; -628 -629 /** -630 * Scope tag for globally scoped data. -631 * This data will be replicated to all peers. -632 */ -633 public static final int REPLICATION_SCOPE_GLOBAL = 1; -634 -635 /** -636 * Default cluster ID, cannot be used to identify a cluster so a key with -637 * this value means it wasn't meant for replication. -638 */ -639 public static final UUID DEFAULT_CLUSTER_ID = new UUID(0L,0L); -640 -641 /** -642 * Parameter name for maximum number of bytes returned when calling a scanner's next method. -643 * Controlled by the client. -644 */ -645 public static final String HBASE_CLIENT_SCANNER_MAX_RESULT_SIZE_KEY = -646 "hbase.client.scanner.max.result.size"; -647 -648 /** -649 * Parameter name for maximum number of bytes returned when calling a scanner's next method. -650 * Controlled by the server. -651 */ -652 public static final String HBASE_SERVER_SCANNER_MAX_RESULT_SIZE_KEY = -653 "hbase.server.scanner.max.result.size"; -654 -655 /** -656 * Maximum number of bytes returned when calling a scanner's next method. -657 * Note that when a single row is larger than this limit the row is still -658 * returned completely. -659 * -660 * The default value is 2MB. -661 */ -662 public static final long DEFAULT_HBASE_CLIENT_SCANNER_MAX_RESULT_SIZE = 2 * 1024 * 1024; -663 -664 /** -665 * Maximum number of bytes returned when calling a scanner's next method. -666 * Note that when a single row is larger than this limit the row is still -667 * returned completely. -668 * Safety setting to protect the region server. -669 * -670 * The default value is 100MB. (a client would rarely request larger chunks on purpose) -671 */ -672 public static final long DEFAULT_HBASE_SERVER_SCANNER_MAX_RESULT_SIZE = 100 * 1024