Constructor and Description |
---|
HBaseConfiguration()
Deprecated.
|
HBaseConfiguration(org.apache.hadoop.conf.Configuration c)
Deprecated.
|
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) |
static int |
getInt(org.apache.hadoop.conf.Configuration conf,
String name,
String deprecatedName,
int defaultValue)
Get the value of the
name property as an int , possibly
referring to the deprecated name of the configuration property. |
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() |
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.
|
addDefaultResource, addDeprecation, addDeprecation, addDeprecation, addDeprecation, addDeprecations, addResource, addResource, addResource, addResource, addResource, addResource, clear, dumpConfiguration, dumpDeprecatedKeys, get, get, getBoolean, getClass, getClass, getClassByName, getClassByNameOrNull, getClasses, getClassLoader, getConfResourceAsInputStream, getConfResourceAsReader, getDouble, getEnum, getFile, getFinalParameters, getFloat, getInstances, getInt, getInts, getLocalPath, getLong, getLongBytes, getPattern, getPropertySources, getProps, getRange, getRaw, getResource, getSocketAddr, getStringCollection, getStrings, getStrings, getTimeDuration, getTrimmed, getTrimmed, getTrimmedStringCollection, getTrimmedStrings, getTrimmedStrings, getValByRegex, hasWarnedDeprecation, isDeprecated, iterator, readFields, reloadConfiguration, set, set, setBoolean, setBooleanIfUnset, setClass, setClassLoader, setDouble, setEnum, setFloat, setIfUnset, setInt, setLong, setPattern, setQuietMode, setSocketAddr, setStrings, setTimeDuration, size, toString, unset, updateConnectAddr, write, writeXml, writeXml
@Deprecated public HBaseConfiguration()
@Deprecated public HBaseConfiguration(org.apache.hadoop.conf.Configuration c)
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 boolean isShowConfInServlet()
public static int getInt(org.apache.hadoop.conf.Configuration conf, String name, String deprecatedName, int defaultValue)
name
property as an int
, possibly
referring to the deprecated name of the configuration property.
If no such property exists, the provided default value is returned,
or if the specified value is not a valid int
,
then an error is thrown.name
- property name.deprecatedName
- a deprecatedName for the property to use
if non-deprecated name is not useddefaultValue
- default value.int
,
or defaultValue
.NumberFormatException
- when the value is invalidpublic 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
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.