Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E7138200B57 for ; Mon, 27 Jun 2016 19:19:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E5D9D160A6F; Mon, 27 Jun 2016 17:19:38 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CCAE0160A62 for ; Mon, 27 Jun 2016 19:19:36 +0200 (CEST) Received: (qmail 309 invoked by uid 500); 27 Jun 2016 17:19:31 -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 97153 invoked by uid 99); 27 Jun 2016 17:19:29 -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; Mon, 27 Jun 2016 17:19:29 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D99F7E00A7; Mon, 27 Jun 2016 17:19:28 +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: Mon, 27 Jun 2016 17:20:07 -0000 Message-Id: <9c840e40d2cf46d8b8328262a45d2025@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [40/52] [partial] hbase-site git commit: Published site at 424b789e0394fdc074b1725275e30b04e601b486. archived-at: Mon, 27 Jun 2016 17:19:39 -0000 http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a0cdd2a9/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 ff52bcc..75be6b4 100644 --- a/apidocs/src-html/org/apache/hadoop/hbase/HConstants.html +++ b/apidocs/src-html/org/apache/hadoop/hbase/HConstants.html @@ -847,435 +847,431 @@ 839 * cluster replication constants. 840 */ 841 public static final String -842 REPLICATION_ENABLE_KEY = "hbase.replication"; -843 public static final boolean -844 REPLICATION_ENABLE_DEFAULT = true; -845 public static final String -846 REPLICATION_SOURCE_SERVICE_CLASSNAME = "hbase.replication.source.service"; -847 public static final String -848 REPLICATION_SINK_SERVICE_CLASSNAME = "hbase.replication.sink.service"; -849 public static final String REPLICATION_SERVICE_CLASSNAME_DEFAULT = -850 "org.apache.hadoop.hbase.replication.regionserver.Replication"; -851 public static final String REPLICATION_BULKLOAD_ENABLE_KEY = "hbase.replication.bulkload.enabled"; -852 public static final boolean REPLICATION_BULKLOAD_ENABLE_DEFAULT = false; -853 /** Replication cluster id of source cluster which uniquely identifies itself with peer cluster */ -854 public static final String REPLICATION_CLUSTER_ID = "hbase.replication.cluster.id"; -855 /** -856 * Directory where the source cluster file system client configuration are placed which is used by -857 * sink cluster to copy HFiles from source cluster file system -858 */ -859 public static final String REPLICATION_CONF_DIR = "hbase.replication.conf.dir"; -860 -861 /** Maximum time to retry for a failed bulk load request */ -862 public static final String BULKLOAD_MAX_RETRIES_NUMBER = "hbase.bulkload.retries.number"; -863 -864 /** HBCK special code name used as server name when manipulating ZK nodes */ -865 public static final String HBCK_CODE_NAME = "HBCKServerName"; -866 -867 public static final String KEY_FOR_HOSTNAME_SEEN_BY_MASTER = -868 "hbase.regionserver.hostname.seen.by.master"; -869 -870 public static final String HBASE_MASTER_LOGCLEANER_PLUGINS = -871 "hbase.master.logcleaner.plugins"; -872 -873 public static final String HBASE_REGION_SPLIT_POLICY_KEY = -874 "hbase.regionserver.region.split.policy"; -875 -876 /** Whether nonces are enabled; default is true. */ -877 public static final String HBASE_RS_NONCES_ENABLED = "hbase.regionserver.nonces.enabled"; -878 -879 /** -880 * Configuration key for the size of the block cache -881 */ -882 public static final String HFILE_BLOCK_CACHE_SIZE_KEY = -883 "hfile.block.cache.size"; -884 -885 public static final float HFILE_BLOCK_CACHE_SIZE_DEFAULT = 0.4f; -886 -887 /* -888 * Minimum percentage of free heap necessary for a successful cluster startup. -889 */ -890 public static final float HBASE_CLUSTER_MINIMUM_MEMORY_THRESHOLD = 0.2f; -891 -892 public static final Pattern CP_HTD_ATTR_KEY_PATTERN = -893 Pattern.compile("^coprocessor\\$([0-9]+)$", Pattern.CASE_INSENSITIVE); -894 -895 /** -896 * <pre> -897 * Pattern that matches a coprocessor specification. Form is: -898 * {@code <coprocessor jar file location> '|' <class name> ['|' <priority> ['|' <arguments>]]} -899 * where arguments are {@code <KEY> '=' <VALUE> [,...]} -900 * For example: {@code hdfs:///foo.jar|com.foo.FooRegionObserver|1001|arg1=1,arg2=2} -901 * </pre> -902 */ -903 public static final Pattern CP_HTD_ATTR_VALUE_PATTERN = -904 Pattern.compile("(^[^\\|]*)\\|([^\\|]+)\\|[\\s]*([\\d]*)[\\s]*(\\|.*)?$"); -905 -906 public static final String CP_HTD_ATTR_VALUE_PARAM_KEY_PATTERN = "[^=,]+"; -907 public static final String CP_HTD_ATTR_VALUE_PARAM_VALUE_PATTERN = "[^,]+"; -908 public static final Pattern CP_HTD_ATTR_VALUE_PARAM_PATTERN = Pattern.compile( -909 "(" + CP_HTD_ATTR_VALUE_PARAM_KEY_PATTERN + ")=(" + -910 CP_HTD_ATTR_VALUE_PARAM_VALUE_PATTERN + "),?"); -911 public static final String CP_HTD_ATTR_INCLUSION_KEY = -912 "hbase.coprocessor.classloader.included.classes"; -913 -914 /** The delay when re-trying a socket operation in a loop (HBASE-4712) */ -915 public static final int SOCKET_RETRY_WAIT_MS = 200; -916 -917 /** Host name of the local machine */ -918 public static final String LOCALHOST = "localhost"; -919 -920 /** -921 * If this parameter is set to true, then hbase will read -922 * data and then verify checksums. Checksum verification -923 * inside hdfs will be switched off. However, if the hbase-checksum -924 * verification fails, then it will switch back to using -925 * hdfs checksums for verifiying data that is being read from storage. -926 * -927 * If this parameter is set to false, then hbase will not -928 * verify any checksums, instead it will depend on checksum verification -929 * being done in the hdfs client. -930 */ -931 public static final String HBASE_CHECKSUM_VERIFICATION = -932 "hbase.regionserver.checksum.verify"; -933 -934 public static final String LOCALHOST_IP = "127.0.0.1"; -935 -936 /** Conf key that enables unflushed WAL edits directly being replayed to region servers */ -937 public static final String DISTRIBUTED_LOG_REPLAY_KEY = "hbase.master.distributed.log.replay"; -938 public static final boolean DEFAULT_DISTRIBUTED_LOG_REPLAY_CONFIG = false; -939 public static final String DISALLOW_WRITES_IN_RECOVERING = -940 "hbase.regionserver.disallow.writes.when.recovering"; -941 public static final boolean DEFAULT_DISALLOW_WRITES_IN_RECOVERING_CONFIG = false; -942 -943 public static final String REGION_SERVER_HANDLER_COUNT = "hbase.regionserver.handler.count"; -944 public static final int DEFAULT_REGION_SERVER_HANDLER_COUNT = 30; -945 -946 /* -947 * REGION_SERVER_HANDLER_ABORT_ON_ERROR_PERCENT: -948 * -1 => Disable aborting -949 * 0 => Abort if even a single handler has died -950 * 0.x => Abort only when this percent of handlers have died -951 * 1 => Abort only all of the handers have died -952 */ -953 public static final String REGION_SERVER_HANDLER_ABORT_ON_ERROR_PERCENT = -954 "hbase.regionserver.handler.abort.on.error.percent"; -955 public static final double DEFAULT_REGION_SERVER_HANDLER_ABORT_ON_ERROR_PERCENT = 0.5; -956 -957 //High priority handlers to deal with admin requests and system table operation requests -958 public static final String REGION_SERVER_HIGH_PRIORITY_HANDLER_COUNT = -959 "hbase.regionserver.metahandler.count"; -960 public static final int DEFAULT_REGION_SERVER_HIGH_PRIORITY_HANDLER_COUNT = 20; +842 REPLICATION_SOURCE_SERVICE_CLASSNAME = "hbase.replication.source.service"; +843 public static final String +844 REPLICATION_SINK_SERVICE_CLASSNAME = "hbase.replication.sink.service"; +845 public static final String REPLICATION_SERVICE_CLASSNAME_DEFAULT = +846 "org.apache.hadoop.hbase.replication.regionserver.Replication"; +847 public static final String REPLICATION_BULKLOAD_ENABLE_KEY = "hbase.replication.bulkload.enabled"; +848 public static final boolean REPLICATION_BULKLOAD_ENABLE_DEFAULT = false; +849 /** Replication cluster id of source cluster which uniquely identifies itself with peer cluster */ +850 public static final String REPLICATION_CLUSTER_ID = "hbase.replication.cluster.id"; +851 /** +852 * Directory where the source cluster file system client configuration are placed which is used by +853 * sink cluster to copy HFiles from source cluster file system +854 */ +855 public static final String REPLICATION_CONF_DIR = "hbase.replication.conf.dir"; +856 +857 /** Maximum time to retry for a failed bulk load request */ +858 public static final String BULKLOAD_MAX_RETRIES_NUMBER = "hbase.bulkload.retries.number"; +859 +860 /** HBCK special code name used as server name when manipulating ZK nodes */ +861 public static final String HBCK_CODE_NAME = "HBCKServerName"; +862 +863 public static final String KEY_FOR_HOSTNAME_SEEN_BY_MASTER = +864 "hbase.regionserver.hostname.seen.by.master"; +865 +866 public static final String HBASE_MASTER_LOGCLEANER_PLUGINS = +867 "hbase.master.logcleaner.plugins"; +868 +869 public static final String HBASE_REGION_SPLIT_POLICY_KEY = +870 "hbase.regionserver.region.split.policy"; +871 +872 /** Whether nonces are enabled; default is true. */ +873 public static final String HBASE_RS_NONCES_ENABLED = "hbase.regionserver.nonces.enabled"; +874 +875 /** +876 * Configuration key for the size of the block cache +877 */ +878 public static final String HFILE_BLOCK_CACHE_SIZE_KEY = +879 "hfile.block.cache.size"; +880 +881 public static final float HFILE_BLOCK_CACHE_SIZE_DEFAULT = 0.4f; +882 +883 /* +884 * Minimum percentage of free heap necessary for a successful cluster startup. +885 */ +886 public static final float HBASE_CLUSTER_MINIMUM_MEMORY_THRESHOLD = 0.2f; +887 +888 public static final Pattern CP_HTD_ATTR_KEY_PATTERN = +889 Pattern.compile("^coprocessor\\$([0-9]+)$", Pattern.CASE_INSENSITIVE); +890 +891 /** +892 * <pre> +893 * Pattern that matches a coprocessor specification. Form is: +894 * {@code <coprocessor jar file location> '|' <class name> ['|' <priority> ['|' <arguments>]]} +895 * where arguments are {@code <KEY> '=' <VALUE> [,...]} +896 * For example: {@code hdfs:///foo.jar|com.foo.FooRegionObserver|1001|arg1=1,arg2=2} +897 * </pre> +898 */ +899 public static final Pattern CP_HTD_ATTR_VALUE_PATTERN = +900 Pattern.compile("(^[^\\|]*)\\|([^\\|]+)\\|[\\s]*([\\d]*)[\\s]*(\\|.*)?$"); +901 +902 public static final String CP_HTD_ATTR_VALUE_PARAM_KEY_PATTERN = "[^=,]+"; +903 public static final String CP_HTD_ATTR_VALUE_PARAM_VALUE_PATTERN = "[^,]+"; +904 public static final Pattern CP_HTD_ATTR_VALUE_PARAM_PATTERN = Pattern.compile( +905 "(" + CP_HTD_ATTR_VALUE_PARAM_KEY_PATTERN + ")=(" + +906 CP_HTD_ATTR_VALUE_PARAM_VALUE_PATTERN + "),?"); +907 public static final String CP_HTD_ATTR_INCLUSION_KEY = +908 "hbase.coprocessor.classloader.included.classes"; +909 +910 /** The delay when re-trying a socket operation in a loop (HBASE-4712) */ +911 public static final int SOCKET_RETRY_WAIT_MS = 200; +912 +913 /** Host name of the local machine */ +914 public static final String LOCALHOST = "localhost"; +915 +916 /** +917 * If this parameter is set to true, then hbase will read +918 * data and then verify checksums. Checksum verification +919 * inside hdfs will be switched off. However, if the hbase-checksum +920 * verification fails, then it will switch back to using +921 * hdfs checksums for verifiying data that is being read from storage. +922 * +923 * If this parameter is set to false, then hbase will not +924 * verify any checksums, instead it will depend on checksum verification +925 * being done in the hdfs client. +926 */ +927 public static final String HBASE_CHECKSUM_VERIFICATION = +928 "hbase.regionserver.checksum.verify"; +929 +930 public static final String LOCALHOST_IP = "127.0.0.1"; +931 +932 /** Conf key that enables unflushed WAL edits directly being replayed to region servers */ +933 public static final String DISTRIBUTED_LOG_REPLAY_KEY = "hbase.master.distributed.log.replay"; +934 public static final boolean DEFAULT_DISTRIBUTED_LOG_REPLAY_CONFIG = false; +935 public static final String DISALLOW_WRITES_IN_RECOVERING = +936 "hbase.regionserver.disallow.writes.when.recovering"; +937 public static final boolean DEFAULT_DISALLOW_WRITES_IN_RECOVERING_CONFIG = false; +938 +939 public static final String REGION_SERVER_HANDLER_COUNT = "hbase.regionserver.handler.count"; +940 public static final int DEFAULT_REGION_SERVER_HANDLER_COUNT = 30; +941 +942 /* +943 * REGION_SERVER_HANDLER_ABORT_ON_ERROR_PERCENT: +944 * -1 => Disable aborting +945 * 0 => Abort if even a single handler has died +946 * 0.x => Abort only when this percent of handlers have died +947 * 1 => Abort only all of the handers have died +948 */ +949 public static final String REGION_SERVER_HANDLER_ABORT_ON_ERROR_PERCENT = +950 "hbase.regionserver.handler.abort.on.error.percent"; +951 public static final double DEFAULT_REGION_SERVER_HANDLER_ABORT_ON_ERROR_PERCENT = 0.5; +952 +953 //High priority handlers to deal with admin requests and system table operation requests +954 public static final String REGION_SERVER_HIGH_PRIORITY_HANDLER_COUNT = +955 "hbase.regionserver.metahandler.count"; +956 public static final int DEFAULT_REGION_SERVER_HIGH_PRIORITY_HANDLER_COUNT = 20; +957 +958 public static final String REGION_SERVER_REPLICATION_HANDLER_COUNT = +959 "hbase.regionserver.replication.handler.count"; +960 public static final int DEFAULT_REGION_SERVER_REPLICATION_HANDLER_COUNT = 3; 961 -962 public static final String REGION_SERVER_REPLICATION_HANDLER_COUNT = -963 "hbase.regionserver.replication.handler.count"; -964 public static final int DEFAULT_REGION_SERVER_REPLICATION_HANDLER_COUNT = 3; -965 -966 public static final String MASTER_HANDLER_COUNT = "hbase.master.handler.count"; -967 public static final int DEFAULT_MASTER_HANLDER_COUNT = 25; +962 public static final String MASTER_HANDLER_COUNT = "hbase.master.handler.count"; +963 public static final int DEFAULT_MASTER_HANLDER_COUNT = 25; +964 +965 /** Conf key that specifies timeout value to wait for a region ready */ +966 public static final String LOG_REPLAY_WAIT_REGION_TIMEOUT = +967 "hbase.master.log.replay.wait.region.timeout"; 968 -969 /** Conf key that specifies timeout value to wait for a region ready */ -970 public static final String LOG_REPLAY_WAIT_REGION_TIMEOUT = -971 "hbase.master.log.replay.wait.region.timeout"; -972 -973 /** Conf key for enabling meta replication */ -974 public static final String USE_META_REPLICAS = "hbase.meta.replicas.use"; -975 public static final boolean DEFAULT_USE_META_REPLICAS = false; -976 public static final String META_REPLICAS_NUM = "hbase.meta.replica.count"; -977 public static final int DEFAULT_META_REPLICA_NUM = 1; -978 -979 /** -980 * The name of the configuration parameter that specifies -981 * the number of bytes in a newly created checksum chunk. -982 */ -983 public static final String BYTES_PER_CHECKSUM = -984 "hbase.hstore.bytes.per.checksum"; -985 -986 /** -987 * The name of the configuration parameter that specifies -988 * the name of an algorithm that is used to compute checksums -989 * for newly created blocks. -990 */ -991 public static final String CHECKSUM_TYPE_NAME = -992 "hbase.hstore.checksum.algorithm"; -993 -994 /** Enable file permission modification from standard hbase */ -995 public static final String ENABLE_DATA_FILE_UMASK = "hbase.data.umask.enable"; -996 /** File permission umask to use when creating hbase data files */ -997 public static final String DATA_FILE_UMASK_KEY = "hbase.data.umask"; +969 /** Conf key for enabling meta replication */ +970 public static final String USE_META_REPLICAS = "hbase.meta.replicas.use"; +971 public static final boolean DEFAULT_USE_META_REPLICAS = false; +972 public static final String META_REPLICAS_NUM = "hbase.meta.replica.count"; +973 public static final int DEFAULT_META_REPLICA_NUM = 1; +974 +975 /** +976 * The name of the configuration parameter that specifies +977 * the number of bytes in a newly created checksum chunk. +978 */ +979 public static final String BYTES_PER_CHECKSUM = +980 "hbase.hstore.bytes.per.checksum"; +981 +982 /** +983 * The name of the configuration parameter that specifies +984 * the name of an algorithm that is used to compute checksums +985 * for newly created blocks. +986 */ +987 public static final String CHECKSUM_TYPE_NAME = +988 "hbase.hstore.checksum.algorithm"; +989 +990 /** Enable file permission modification from standard hbase */ +991 public static final String ENABLE_DATA_FILE_UMASK = "hbase.data.umask.enable"; +992 /** File permission umask to use when creating hbase data files */ +993 public static final String DATA_FILE_UMASK_KEY = "hbase.data.umask"; +994 +995 /** Configuration name of WAL Compression */ +996 public static final String ENABLE_WAL_COMPRESSION = +997 "hbase.regionserver.wal.enablecompression"; 998 -999 /** Configuration name of WAL Compression */ -1000 public static final String ENABLE_WAL_COMPRESSION = -1001 "hbase.regionserver.wal.enablecompression"; -1002 -1003 /** Configuration name of WAL storage policy -1004 * Valid values are: -1005 * NONE: no preference in destination of block replicas -1006 * ONE_SSD: place only one block replica in SSD and the remaining in default storage -1007 * and ALL_SSD: place all block replicas on SSD -1008 * -1009 * See http://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-hdfs/ArchivalStorage.html*/ -1010 public static final String WAL_STORAGE_POLICY = "hbase.wal.storage.policy"; -1011 public static final String DEFAULT_WAL_STORAGE_POLICY = "NONE"; +999 /** Configuration name of WAL storage policy +1000 * Valid values are: +1001 * NONE: no preference in destination of block replicas +1002 * ONE_SSD: place only one block replica in SSD and the remaining in default storage +1003 * and ALL_SSD: place all block replicas on SSD +1004 * +1005 * See http://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-hdfs/ArchivalStorage.html*/ +1006 public static final String WAL_STORAGE_POLICY = "hbase.wal.storage.policy"; +1007 public static final String DEFAULT_WAL_STORAGE_POLICY = "NONE"; +1008 +1009 /** Region in Transition metrics threshold time */ +1010 public static final String METRICS_RIT_STUCK_WARNING_THRESHOLD = +1011 "hbase.metrics.rit.stuck.warning.threshold"; 1012 -1013 /** Region in Transition metrics threshold time */ -1014 public static final String METRICS_RIT_STUCK_WARNING_THRESHOLD = -1015 "hbase.metrics.rit.stuck.warning.threshold"; -1016 -1017 public static final String LOAD_BALANCER_SLOP_KEY = "hbase.regions.slop"; -1018 -1019 /** delimiter used between portions of a region name */ -1020 public static final int DELIMITER = ','; -1021 -1022 /** -1023 * QOS attributes: these attributes are used to demarcate RPC call processing -1024 * by different set of handlers. For example, HIGH_QOS tagged methods are -1025 * handled by high priority handlers. -1026 */ -1027 // normal_QOS < replication_QOS < replay_QOS < QOS_threshold < admin_QOS < high_QOS -1028 public static final int NORMAL_QOS = 0; -1029 public static final int REPLICATION_QOS = 5; -1030 public static final int REPLAY_QOS = 6; -1031 public static final int QOS_THRESHOLD = 10; -1032 public static final int ADMIN_QOS = 100; -1033 public static final int HIGH_QOS = 200; -1034 public static final int SYSTEMTABLE_QOS = HIGH_QOS; -1035 -1036 /** Directory under /hbase where archived hfiles are stored */ -1037 public static final String HFILE_ARCHIVE_DIRECTORY = "archive"; -1038 -1039 /** -1040 * Name of the directory to store all snapshots. See SnapshotDescriptionUtils for -1041 * remaining snapshot constants; this is here to keep HConstants dependencies at a minimum and -1042 * uni-directional. -1043 */ -1044 public static final String SNAPSHOT_DIR_NAME = ".hbase-snapshot"; -1045 -1046 /* Name of old snapshot directory. See HBASE-8352 for details on why it needs to be renamed */ -1047 public static final String OLD_SNAPSHOT_DIR_NAME = ".snapshot"; -1048 -1049 /** Temporary directory used for table creation and deletion */ -1050 public static final String HBASE_TEMP_DIRECTORY = ".tmp"; -1051 /** -1052 * The period (in milliseconds) between computing region server point in time metrics -1053 */ -1054 public static final String REGIONSERVER_METRICS_PERIOD = "hbase.regionserver.metrics.period"; -1055 public static final long DEFAULT_REGIONSERVER_METRICS_PERIOD = 5000; -1056 /** Directories that are not HBase table directories */ -1057 public static final List<String> HBASE_NON_TABLE_DIRS = -1058 Collections.unmodifiableList(Arrays.asList(new String[] { -1059 HBCK_SIDELINEDIR_NAME, HBASE_TEMP_DIRECTORY, MIGRATION_NAME -1060 })); -1061 -1062 /** Directories that are not HBase user table directories */ -1063 public static final List<String> HBASE_NON_USER_TABLE_DIRS = -1064 Collections.unmodifiableList(Arrays.asList((String[])ArrayUtils.addAll( -1065 new String[] { TableName.META_TABLE_NAME.getNameAsString() }, -1066 HBASE_NON_TABLE_DIRS.toArray()))); -1067 -1068 /** Health script related settings. */ -1069 public static final String HEALTH_SCRIPT_LOC = "hbase.node.health.script.location"; -1070 public static final String HEALTH_SCRIPT_TIMEOUT = "hbase.node.health.script.timeout"; -1071 public static final String HEALTH_CHORE_WAKE_FREQ = -1072 "hbase.node.health.script.frequency"; -1073 public static final long DEFAULT_HEALTH_SCRIPT_TIMEOUT = 60000; -1074 /** -1075 * The maximum number of health check failures a server can encounter consecutively. -1076 */ -1077 public static final String HEALTH_FAILURE_THRESHOLD = -1078 "hbase.node.health.failure.threshold"; -1079 public static final int DEFAULT_HEALTH_FAILURE_THRESHOLD = 3; -1080 -1081 -1082 /** -1083 * Setting to activate, or not, the publication of the status by the master. Default -1084 * notification is by a multicast message. -1085 */ -1086 public static final String STATUS_PUBLISHED = "hbase.status.published"; -1087 public static final boolean STATUS_PUBLISHED_DEFAULT = false; -1088 -1089 /** -1090 * IP to use for the multicast status messages between the master and the clients. -1091 * The default address is chosen as one among others within the ones suitable for multicast -1092 * messages. -1093 */ -1094 public static final String STATUS_MULTICAST_ADDRESS = "hbase.status.multicast.address.ip"; -1095 public static final String DEFAULT_STATUS_MULTICAST_ADDRESS = "226.1.1.3"; -1096 -1097 /** -1098 * The address to use for binding the local socket for receiving multicast. Defaults to -1099 * 0.0.0.0. -1100 * @see <a href="https://issues.apache.org/jira/browse/HBASE-9961">HBASE-9961</a> -1101 */ -1102 public static final String STATUS_MULTICAST_BIND_ADDRESS = -1103 "hbase.status.multicast.bind.address.ip"; -1104 public static final String DEFAULT_STATUS_MULTICAST_BIND_ADDRESS = "0.0.0.0"; -1105 -1106 /** -1107 * The port to use for the multicast messages. -1108 */ -1109 public static final String STATUS_MULTICAST_PORT = "hbase.status.multicast.address.port"; -1110 public static final int DEFAULT_STATUS_MULTICAST_PORT = 16100; -1111 -1112 public static final long NO_NONCE = 0; -1113 -1114 /** Default cipher for encryption */ -1115 public static final String CIPHER_AES = "AES"; -1116 -1117 /** Configuration key for the crypto algorithm provider, a class name */ -1118 public static final String CRYPTO_CIPHERPROVIDER_CONF_KEY = "hbase.crypto.cipherprovider"; -1119 -1120 /** Configuration key for the crypto key provider, a class name */ -1121 public static final String CRYPTO_KEYPROVIDER_CONF_KEY = "hbase.crypto.keyprovider"; +1013 public static final String LOAD_BALANCER_SLOP_KEY = "hbase.regions.slop"; +1014 +1015 /** delimiter used between portions of a region name */ +1016 public static final int DELIMITER = ','; +1017 +1018 /** +1019 * QOS attributes: these attributes are used to demarcate RPC call processing +1020 * by different set of handlers. For example, HIGH_QOS tagged methods are +1021 * handled by high priority handlers. +1022 */ +1023 // normal_QOS < replication_QOS < replay_QOS < QOS_threshold < admin_QOS < high_QOS +1024 public static final int NORMAL_QOS = 0; +1025 public static final int REPLICATION_QOS = 5; +1026 public static final int REPLAY_QOS = 6; +1027 public static final int QOS_THRESHOLD = 10; +1028 public static final int ADMIN_QOS = 100; +1029 public static final int HIGH_QOS = 200; +1030 public static final int SYSTEMTABLE_QOS = HIGH_QOS; +1031 +1032 /** Directory under /hbase where archived hfiles are stored */ +1033 public static final String HFILE_ARCHIVE_DIRECTORY = "archive"; +1034 +1035 /** +1036 * Name of the directory to store all snapshots. See SnapshotDescriptionUtils for +1037 * remaining snapshot constants; this is here to keep HConstants dependencies at a minimum and +1038 * uni-directional. +1039 */ +1040 public static final String SNAPSHOT_DIR_NAME = ".hbase-snapshot"; +1041 +1042 /* Name of old snapshot directory. See HBASE-8352 for details on why it needs to be renamed */ +1043 public static final String OLD_SNAPSHOT_DIR_NAME = ".snapshot"; +1044 +1045 /** Temporary directory used for table creation and deletion */ +1046 public static final String HBASE_TEMP_DIRECTORY = ".tmp"; +1047 /** +1048 * The period (in milliseconds) between computing region server point in time metrics +1049 */ +1050 public static final String REGIONSERVER_METRICS_PERIOD = "hbase.regionserver.metrics.period"; +1051 public static final long DEFAULT_REGIONSERVER_METRICS_PERIOD = 5000; +1052 /** Directories that are not HBase table directories */ +1053 public static final List<String> HBASE_NON_TABLE_DIRS = +1054 Collections.unmodifiableList(Arrays.asList(new String[] { +1055 HBCK_SIDELINEDIR_NAME, HBASE_TEMP_DIRECTORY, MIGRATION_NAME +1056 })); +1057 +1058 /** Directories that are not HBase user table directories */ +1059 public static final List<String> HBASE_NON_USER_TABLE_DIRS = +1060 Collections.unmodifiableList(Arrays.asList((String[])ArrayUtils.addAll( +1061 new String[] { TableName.META_TABLE_NAME.getNameAsString() }, +1062 HBASE_NON_TABLE_DIRS.toArray()))); +1063 +1064 /** Health script related settings. */ +1065 public static final String HEALTH_SCRIPT_LOC = "hbase.node.health.script.location"; +1066 public static final String HEALTH_SCRIPT_TIMEOUT = "hbase.node.health.script.timeout"; +1067 public static final String HEALTH_CHORE_WAKE_FREQ = +1068 "hbase.node.health.script.frequency"; +1069 public static final long DEFAULT_HEALTH_SCRIPT_TIMEOUT = 60000; +1070 /** +1071 * The maximum number of health check failures a server can encounter consecutively. +1072 */ +1073 public static final String HEALTH_FAILURE_THRESHOLD = +1074 "hbase.node.health.failure.threshold"; +1075 public static final int DEFAULT_HEALTH_FAILURE_THRESHOLD = 3; +1076 +1077 +1078 /** +1079 * Setting to activate, or not, the publication of the status by the master. Default +1080 * notification is by a multicast message. +1081 */ +1082 public static final String STATUS_PUBLISHED = "hbase.status.published"; +1083 public static final boolean STATUS_PUBLISHED_DEFAULT = false; +1084 +1085 /** +1086 * IP to use for the multicast status messages between the master and the clients. +1087 * The default address is chosen as one among others within the ones suitable for multicast +1088 * messages. +1089 */ +1090 public static final String STATUS_MULTICAST_ADDRESS = "hbase.status.multicast.address.ip"; +1091 public static final String DEFAULT_STATUS_MULTICAST_ADDRESS = "226.1.1.3"; +1092 +1093 /** +1094 * The address to use for binding the local socket for receiving multicast. Defaults to +1095 * 0.0.0.0. +1096 * @see <a href="https://issues.apache.org/jira/browse/HBASE-9961">HBASE-9961</a> +1097 */ +1098 public static final String STATUS_MULTICAST_BIND_ADDRESS = +1099 "hbase.status.multicast.bind.address.ip"; +1100 public static final String DEFAULT_STATUS_MULTICAST_BIND_ADDRESS = "0.0.0.0"; +1101 +1102 /** +1103 * The port to use for the multicast messages. +1104 */ +1105 public static final String STATUS_MULTICAST_PORT = "hbase.status.multicast.address.port"; +1106 public static final int DEFAULT_STATUS_MULTICAST_PORT = 16100; +1107 +1108 public static final long NO_NONCE = 0; +1109 +1110 /** Default cipher for encryption */ +1111 public static final String CIPHER_AES = "AES"; +1112 +1113 /** Configuration key for the crypto algorithm provider, a class name */ +1114 public static final String CRYPTO_CIPHERPROVIDER_CONF_KEY = "hbase.crypto.cipherprovider"; +1115 +1116 /** Configuration key for the crypto key provider, a class name */ +1117 public static final String CRYPTO_KEYPROVIDER_CONF_KEY = "hbase.crypto.keyprovider"; +1118 +1119 /** Configuration key for the crypto key provider parameters */ +1120 public static final String CRYPTO_KEYPROVIDER_PARAMETERS_KEY = +1121 "hbase.crypto.keyprovider.parameters"; 1122 -1123 /** Configuration key for the crypto key provider parameters */ -1124 public static final String CRYPTO_KEYPROVIDER_PARAMETERS_KEY = -1125 "hbase.crypto.keyprovider.parameters"; -1126 -1127 /** Configuration key for the name of the master key for the cluster, a string */ -1128 public static final String CRYPTO_MASTERKEY_NAME_CONF_KEY = "hbase.crypto.master.key.name"; +1123 /** Configuration key for the name of the master key for the cluster, a string */ +1124 public static final String CRYPTO_MASTERKEY_NAME_CONF_KEY = "hbase.crypto.master.key.name"; +1125 +1126 /** Configuration key for the name of the alternate master key for the cluster, a string */ +1127 public static final String CRYPTO_MASTERKEY_ALTERNATE_NAME_CONF_KEY = +1128 "hbase.crypto.master.alternate.key.name"; 1129 -1130 /** Configuration key for the name of the alternate master key for the cluster, a string */ -1131 public static final String CRYPTO_MASTERKEY_ALTERNATE_NAME_CONF_KEY = -1132 "hbase.crypto.master.alternate.key.name"; -1133 -1134 /** Configuration key for the algorithm to use when encrypting the WAL, a string */ -1135 public static final String CRYPTO_WAL_ALGORITHM_CONF_KEY = "hbase.crypto.wal.algorithm"; -1136 -1137 /** Configuration key for the name of the master WAL encryption key for the cluster, a string */ -1138 public static final String CRYPTO_WAL_KEY_NAME_CONF_KEY = "hbase.crypto.wal.key.name"; -1139 -1140 /** Configuration key for the algorithm used for creating jks key, a string */ -1141 public static final String CRYPTO_KEY_ALGORITHM_CONF_KEY = "hbase.crypto.key.algorithm"; +1130 /** Configuration key for the algorithm to use when encrypting the WAL, a string */ +1131 public static final String CRYPTO_WAL_ALGORITHM_CONF_KEY = "hbase.crypto.wal.algorithm"; +1132 +1133 /** Configuration key for the name of the master WAL encryption key for the cluster, a string */ +1134 public static final String CRYPTO_WAL_KEY_NAME_CONF_KEY = "hbase.crypto.wal.key.name"; +1135 +1136 /** Configuration key for the algorithm used for creating jks key, a string */ +1137 public static final String CRYPTO_KEY_ALGORITHM_CONF_KEY = "hbase.crypto.key.algorithm"; +1138 +1139 /** Configuration key for the name of the alternate cipher algorithm for the cluster, a string */ +1140 public static final String CRYPTO_ALTERNATE_KEY_ALGORITHM_CONF_KEY = +1141 "hbase.crypto.alternate.key.algorithm"; 1142 -1143 /** Configuration key for the name of the alternate cipher algorithm for the cluster, a string */ -1144 public static final String CRYPTO_ALTERNATE_KEY_ALGORITHM_CONF_KEY = -1145 "hbase.crypto.alternate.key.algorithm"; -1146 -1147 /** Configuration key for enabling WAL encryption, a boolean */ -1148 public static final String ENABLE_WAL_ENCRYPTION = "hbase.regionserver.wal.encryption"; -1149 -1150 /** Configuration key for setting RPC codec class name */ -1151 public static final String RPC_CODEC_CONF_KEY = "hbase.client.rpc.codec"; -1152 -1153 /** Configuration key for setting replication codec class name */ -1154 public static final String REPLICATION_CODEC_CONF_KEY = "hbase.replication.rpc.codec"; +1143 /** Configuration key for enabling WAL encryption, a boolean */ +1144 public static final String ENABLE_WAL_ENCRYPTION = "hbase.regionserver.wal.encryption"; +1145 +1146 /** Configuration key for setting RPC codec class name */ +1147 public static final String RPC_CODEC_CONF_KEY = "hbase.client.rpc.codec"; +1148 +1149 /** Configuration key for setting replication codec class name */ +1150 public static final String REPLICATION_CODEC_CONF_KEY = "hbase.replication.rpc.codec"; +1151 +1152 /** Maximum number of threads used by the replication source for shipping edits to the sinks */ +1153 public static final String REPLICATION_SOURCE_MAXTHREADS_KEY = +1154 "hbase.replication.source.maxthreads"; 1155 -1156 /** Maximum number of threads used by the replication source for shipping edits to the sinks */ -1157 public static final String REPLICATION_SOURCE_MAXTHREADS_KEY = -1158 "hbase.replication.source.maxthreads"; -1159 -1160 public static final int REPLICATION_SOURCE_MAXTHREADS_DEFAULT = 10; +1156 public static final int REPLICATION_SOURCE_MAXTHREADS_DEFAULT = 10; +1157 +1158 /** Config for pluggable consensus provider */ +1159 public static final String HBASE_COORDINATED_STATE_MANAGER_CLASS = +1160 "hbase.coordinated.state.manager.class"; 1161 -1162 /** Config for pluggable consensus provider */ -1163 public static final String HBASE_COORDINATED_STATE_MANAGER_CLASS = -1164 "hbase.coordinated.state.manager.class"; -1165 -1166 /** Configuration key for SplitLog manager timeout */ -1167 public static final String HBASE_SPLITLOG_MANAGER_TIMEOUT = "hbase.splitlog.manager.timeout"; -1168 -1169 /** -1170 * Configuration keys for Bucket cache -1171 */ -1172 // TODO moving these bucket cache implementation specific configs to this level is violation of -1173 // encapsulation. But as these has to be referred from hbase-common and bucket cache -1174 // sits in hbase-server, there were no other go! Can we move the cache implementation to -1175 // hbase-common? -1176 -1177 /** -1178 * Current ioengine options in include: heap, offheap and file:PATH (where PATH is the path -1179 * to the file that will host the file-based cache. See BucketCache#getIOEngineFromName() for -1180 * list of supported ioengine options. -1181 * <p>Set this option and a non-zero {@link #BUCKET_CACHE_SIZE_KEY} to enable bucket cache. -1182 */ -1183 public static final String BUCKET_CACHE_IOENGINE_KEY = "hbase.bucketcache.ioengine"; -1184 -1185 /** -1186 * When using bucket cache, this is a float that EITHER represents a percentage of total heap -1187 * memory size to give to the cache (if &lt; 1.0) OR, it is the capacity in -1188 * megabytes of the cache. -1189 */ -1190 public static final String BUCKET_CACHE_SIZE_KEY = "hbase.bucketcache.size"; -1191 -1192 /** -1193 * HConstants for fast fail on the client side follow -1194 */ -1195 /** -1196 * Config for enabling/disabling the fast fail mode. -1197 */ -1198 public static final String HBASE_CLIENT_FAST_FAIL_MODE_ENABLED = -1199 "hbase.client.fast.fail.mode.enabled"; -1200 -1201 public static final boolean HBASE_CLIENT_ENABLE_FAST_FAIL_MODE_DEFAULT = -1202 false; -1203 -1204 public static final String HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS = -1205 "hbase.client.fastfail.threshold"; -1206 -1207 public static final long HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS_DEFAULT = -1208 60000; -1209 -1210 public static final String HBASE_CLIENT_FAST_FAIL_CLEANUP_MS_DURATION_MS = -1211 "hbase.client.fast.fail.cleanup.duration"; -1212 -1213 public static final long HBASE_CLIENT_FAST_FAIL_CLEANUP_DURATION_MS_DEFAULT = -1214 600000; -1215 -1216 public static final String HBASE_CLIENT_FAST_FAIL_INTERCEPTOR_IMPL = -1217 "hbase.client.fast.fail.interceptor.impl"; -1218 -1219 /** Config key for if the server should send backpressure and if the client should listen to -1220 * that backpressure from the server */ -1221 public static final String ENABLE_CLIENT_BACKPRESSURE = "hbase.client.backpressure.enabled"; -1222 public static final boolean DEFAULT_ENABLE_CLIENT_BACKPRESSURE = false; -1223 -1224 public static final String HEAP_OCCUPANCY_LOW_WATERMARK_KEY = -1225 "hbase.heap.occupancy.low_water_mark"; -1226 public static final float DEFAULT_HEAP_OCCUPANCY_LOW_WATERMARK = 0.95f; -1227 public static final String HEAP_OCCUPANCY_HIGH_WATERMARK_KEY = -1228 "hbase.heap.occupancy.high_water_mark"; -1229 public static final float DEFAULT_HEAP_OCCUPANCY_HIGH_WATERMARK = 0.98f; -1230 -1231 /** -1232 * The max number of threads used for splitting storefiles in parallel during -1233 * the region split process. -1234 */ -1235 public static final String REGION_SPLIT_THREADS_MAX = -1236 "hbase.regionserver.region.split.threads.max"; -1237 -1238 /** Canary config keys */ -1239 public static final String HBASE_CANARY_WRITE_DATA_TTL_KEY = "hbase.canary.write.data.ttl"; -1240 -1241 public static final String HBASE_CANARY_WRITE_PERSERVER_REGIONS_LOWERLIMIT_KEY = -1242 "hbase.canary.write.perserver.regions.lowerLimit"; -1243 -1244 public static final String HBASE_CANARY_WRITE_PERSERVER_REGIONS_UPPERLIMIT_KEY = -1245 "hbase.canary.write.perserver.regions.upperLimit"; -1246 -1247 public static final String HBASE_CANARY_WRITE_VALUE_SIZE_KEY = "hbase.canary.write.value.size"; -1248 -1249 public static final String HBASE_CANARY_WRITE_TABLE_CHECK_PERIOD_KEY = -1250 "hbase.canary.write.table.check.period"; -1251 -1252 /** -1253 * Configuration keys for programmatic JAAS configuration for secured ZK interaction -1254 */ -1255 public static final String ZK_CLIENT_KEYTAB_FILE = "hbase.zookeeper.client.keytab.file"; -1256 public static final String ZK_CLIENT_KERBEROS_PRINCIPAL = -1257 "hbase.zookeeper.client.kerberos.principal"; -1258 public static final String ZK_SERVER_KEYTAB_FILE = "hbase.zookeeper.server.keytab.file"; -1259 public static final String ZK_SERVER_KERBEROS_PRINCIPAL = -1260 "hbase.zookeeper.server.kerberos.principal"; -1261 -1262 /** Config key for hbase temporary directory in hdfs */ -1263 public static final String TEMPORARY_FS_DIRECTORY_KEY = "hbase.fs.tmp.dir"; -1264 public static final String DEFAULT_TEMPORARY_HDFS_DIRECTORY = "/user/" -1265 + System.getProperty("user.name") + "/hbase-staging"; -1266 -1267 private HConstants() { -1268 // Can't be instantiated with this ctor. -1269 } -1270} +1162 /** Configuration key for SplitLog manager timeout */ +1163 public static final String HBASE_SPLITLOG_MANAGER_TIMEOUT = "hbase.splitlog.manager.timeout"; +1164 +1165 /** +1166 * Configuration keys for Bucket cache +1167 */ +1168 // TODO moving these bucket cache implementation specific configs to this level is violation of +1169 // encapsulation. But as these has to be referred from hbase-common and bucket cache +1170 // sits in hbase-server, there were no other go! Can we move the cache implementation to +1171 // hbase-common? +1172 +1173 /** +1174 * Current ioengine options in include: heap, offheap and file:PATH (where PATH is the path +1175 * to the file that will host the file-based cache. See BucketCache#getIOEngineFromName() for +1176 * list of supported ioengine options. +1177 * <p>Set this option and a non-zero {@link #BUCKET_CACHE_SIZE_KEY} to enable bucket cache. +1178 */ +1179 public static final String BUCKET_CACHE_IOENGINE_KEY = "hbase.bucketcache.ioengine"; +1180 +1181 /** +1182 * When using bucket cache, this is a float that EITHER represents a percentage of total heap +1183 * memory size to give to the cache (if &lt; 1.0) OR, it is the capacity in +1184 * megabytes of the cache. +1185 */ +1186 public static final String BUCKET_CACHE_SIZE_KEY = "hbase.bucketcache.size"; +1187 +1188 /** +1189 * HConstants for fast fail on the client side follow +1190 */ +1191 /** +1192 * Config for enabling/disabling the fast fail mode. +1193 */ +1194 public static final String HBASE_CLIENT_FAST_FAIL_MODE_ENABLED = +1195 "hbase.client.fast.fail.mode.enabled"; +1196 +1197 public static final boolean HBASE_CLIENT_ENABLE_FAST_FAIL_MODE_DEFAULT = +1198 false; +1199 +1200 public static final String HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS = +1201 "hbase.client.fastfail.threshold"; +1202 +1203 public static final long HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS_DEFAULT = +1204 60000; +1205 +1206 public static final String HBASE_CLIENT_FAST_FAIL_CLEANUP_MS_DURATION_MS = +1207 "hbase.client.fast.fail.cleanup.duration"; +1208 +1209 public static final long HBASE_CLIENT_FAST_FAIL_CLEANUP_DURATION_MS_DEFAULT = +1210 600000; +1211 +1212 public static final String HBASE_CLIENT_FAST_FAIL_INTERCEPTOR_IMPL = +1213 "hbase.client.fast.fail.interceptor.impl"; +1214 +1215 /** Config key for if the server should send backpressure and if the client should listen to +1216 * that backpressure from the server */ +1217 public static final String ENABLE_CLIENT_BACKPRESSURE = "hbase.client.backpressure.enabled"; +1218 public static final boolean DEFAULT_ENABLE_CLIENT_BACKPRESSURE = false; +1219 +1220 public static final String HEAP_OCCUPANCY_LOW_WATERMARK_KEY = +1221 "hbase.heap.occupancy.low_water_mark"; +1222 public static final float DEFAULT_HEAP_OCCUPANCY_LOW_WATERMARK = 0.95f; +1223 public static final String HEAP_OCCUPANCY_HIGH_WATERMARK_KEY = +1224 "hbase.heap.occupancy.high_water_mark"; +1225 public static final float DEFAULT_HEAP_OCCUPANCY_HIGH_WATERMARK = 0.98f; +1226 +1227 /** +1228 * The max number of threads used for splitting storefiles in parallel during +1229 * the region split process. +1230 */ +1231 public static final String REGION_SPLIT_THREADS_MAX = +1232 "hbase.regionserver.region.split.threads.max"; +1233 +1234 /** Canary config keys */ +1235 public static final String HBASE_CANARY_WRITE_DATA_TTL_KEY = "hbase.canary.write.data.ttl"; +1236 +1237 public static final String HBASE_CANARY_WRITE_PERSERVER_REGIONS_LOWERLIMIT_KEY = +1238 "hbase.canary.write.perserver.regions.lowerL