@InterfaceAudience.Public public class HBaseConfiguration extends org.apache.hadoop.conf.Configuration
Constructor and Description |
---|
HBaseConfiguration() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.conf.Configuration |
addHbaseResources(org.apache.hadoop.conf.Configuration conf) |
static org.apache.hadoop.conf.Configuration |
create()
Creates a Configuration with HBase resources
|
static org.apache.hadoop.conf.Configuration |
create(org.apache.hadoop.conf.Configuration that)
Creates a Configuration with HBase resources
|
static org.apache.hadoop.conf.Configuration |
createClusterConf(org.apache.hadoop.conf.Configuration baseConf,
String clusterKey)
Generates a
Configuration instance by applying the ZooKeeper cluster key to the base
Configuration. |
static org.apache.hadoop.conf.Configuration |
createClusterConf(org.apache.hadoop.conf.Configuration baseConf,
String clusterKey,
String overridePrefix)
Generates a
Configuration instance by applying property overrides prefixed by a cluster
profile key to the base Configuration. |
static String |
getPassword(org.apache.hadoop.conf.Configuration conf,
String alias,
String defPass)
Get the password from the Configuration instance using the getPassword method if it exists.
|
static boolean |
isShowConfInServlet()
Returns whether to show HBase Configuration in servlet
|
static void |
main(String[] args)
For debugging.
|
static void |
merge(org.apache.hadoop.conf.Configuration destConf,
org.apache.hadoop.conf.Configuration srcConf)
Merge two configurations.
|
static void |
setWithPrefix(org.apache.hadoop.conf.Configuration conf,
String prefix,
Iterable<Map.Entry<String,String>> properties)
Sets all the entries in the provided
Map<String, String> as properties in the given
Configuration . |
static org.apache.hadoop.conf.Configuration |
subset(org.apache.hadoop.conf.Configuration srcConf,
String prefix)
Returns a subset of the configuration properties, matching the given key prefix.
|
addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addResource, addTags, clear, dumpConfiguration, dumpConfiguration, dumpDeprecatedKeys, get, get, getAllPropertiesByTag, getAllPropertiesByTags, getBoolean, getClass, getClass, getClassByName, getClassByNameOrNull, getClasses, getClassLoader, getConfResourceAsInputStream, getConfResourceAsReader, getDouble, getEnum, getFile, getFinalParameters, getFloat, getInstances, getInt, getInts, getLocalPath, getLong, getLongBytes, getPassword, getPasswordFromConfig, getPasswordFromCredentialProviders, getPattern, getPropertySources, getProps, getPropsWithPrefix, getRange, getRaw, getResource, getSocketAddr, getSocketAddr, getStorageSize, getStorageSize, getStringCollection, getStrings, getStrings, getTimeDuration, getTimeDuration, getTimeDuration, getTimeDuration, getTimeDurationHelper, getTimeDurations, getTrimmed, getTrimmed, getTrimmedStringCollection, getTrimmedStrings, getTrimmedStrings, getValByRegex, hasWarnedDeprecation, isDeprecated, isPropertyTag, iterator, onlyKeyExists, readFields, reloadConfiguration, reloadExistingConfigurations, set, set, setAllowNullValueProperties, setBoolean, setBooleanIfUnset, setClass, setClassLoader, setDeprecatedProperties, setDouble, setEnum, setFloat, setIfUnset, setInt, setLong, setPattern, setQuietMode, setRestrictSystemProperties, setRestrictSystemPropertiesDefault, setRestrictSystemProps, setSocketAddr, setStorageSize, setStrings, setTimeDuration, size, toString, unset, updateConnectAddr, updateConnectAddr, write, writeXml, writeXml, writeXml
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public HBaseConfiguration()
public static org.apache.hadoop.conf.Configuration addHbaseResources(org.apache.hadoop.conf.Configuration conf)
public static org.apache.hadoop.conf.Configuration create()
public static org.apache.hadoop.conf.Configuration create(org.apache.hadoop.conf.Configuration that)
that
- Configuration to clone.public static void merge(org.apache.hadoop.conf.Configuration destConf, org.apache.hadoop.conf.Configuration srcConf)
destConf
- the configuration that will be overwritten with items from the srcConfsrcConf
- the source configurationpublic static org.apache.hadoop.conf.Configuration subset(org.apache.hadoop.conf.Configuration srcConf, String prefix)
public static void setWithPrefix(org.apache.hadoop.conf.Configuration conf, String prefix, Iterable<Map.Entry<String,String>> properties)
Map<String, String>
as properties in the given
Configuration
. Each property will have the specified prefix prepended, so that the
configuration entries are keyed by prefix + entry.getKey()
.public static boolean isShowConfInServlet()
public static String getPassword(org.apache.hadoop.conf.Configuration conf, String alias, String defPass) throws IOException
conf
- configuration instance for accessing the passwordsalias
- the name of the password elementdefPass
- the default passwordIOException
public static org.apache.hadoop.conf.Configuration createClusterConf(org.apache.hadoop.conf.Configuration baseConf, String clusterKey) throws IOException
Configuration
instance by applying the ZooKeeper cluster key to the base
Configuration. Note that additional configuration properties may be needed for a remote
cluster, so it is preferable to use createClusterConf(Configuration, String, String)
.baseConf
- the base configuration to use, containing prefixed override propertiesclusterKey
- the ZooKeeper quorum cluster key to apply, or null
if noneIOException
createClusterConf(Configuration, String, String)
public static org.apache.hadoop.conf.Configuration createClusterConf(org.apache.hadoop.conf.Configuration baseConf, String clusterKey, String overridePrefix) throws IOException
Configuration
instance by applying property overrides prefixed by a cluster
profile key to the base Configuration. Override properties are extracted by the
subset(Configuration, String)
method, then the merged on top of the base Configuration
and returned.baseConf
- the base configuration to use, containing prefixed override propertiesclusterKey
- the ZooKeeper quorum cluster key to apply, or null
if noneoverridePrefix
- the property key prefix to match for override properties, or null
if noneIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.