|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.client.mapreduce.lib.util.ConfiguratorBase
@Deprecated public class ConfiguratorBase
Nested Class Summary | |
---|---|
static class |
ConfiguratorBase.ConnectorInfo
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
protected static class |
ConfiguratorBase.GeneralOpts
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
protected static class |
ConfiguratorBase.InstanceOpts
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
Constructor Summary | |
---|---|
ConfiguratorBase()
Deprecated. |
Method Summary | |
---|---|
protected static String |
enumToConfKey(Class<?> implementingClass,
Enum<?> e)
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
static Instance |
getInstance(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
static org.apache.log4j.Level |
getLogLevel(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
static String |
getPrincipal(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
static byte[] |
getToken(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
static String |
getTokenClass(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
static Boolean |
isConnectorInfoSet(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
static void |
setConnectorInfo(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
String principal,
AuthenticationToken token)
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
static void |
setLogLevel(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
org.apache.log4j.Level level)
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
static void |
setMockInstance(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
String instanceName)
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
static void |
setZooKeeperInstance(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
String instanceName,
String zooKeepers)
Deprecated. since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfiguratorBase()
Method Detail |
---|
@Deprecated protected static String enumToConfKey(Class<?> implementingClass, Enum<?> e)
implementingClass
- the class whose name will be used as a prefix for the property configuration keye
- the enum used to provide the unique part of the configuration key
@Deprecated public static void setConnectorInfo(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, String principal, AuthenticationToken token) throws AccumuloSecurityException
WARNING: The serialized token is stored in the configuration and shared with all MapReduce tasks. It is BASE64 encoded to provide a charset safe conversion to a string, and is not intended to be secure.
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureprincipal
- a valid Accumulo user nametoken
- the user's password
AccumuloSecurityException
@Deprecated public static Boolean isConnectorInfoSet(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configure
setConnectorInfo(Class, Configuration, String, AuthenticationToken)
@Deprecated public static String getPrincipal(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configure
setConnectorInfo(Class, Configuration, String, AuthenticationToken)
@Deprecated public static String getTokenClass(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
AuthenticationToken
with
ConfiguratorBase.getAuthenticationToken(Class, Configuration)
. You don't need to construct it
yourself.
Gets the serialized token class from the configuration.
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configure
setConnectorInfo(Class, Configuration, String, AuthenticationToken)
@Deprecated public static byte[] getToken(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
AuthenticationToken
with
ConfiguratorBase.getAuthenticationToken(Class, Configuration)
. You don't need to construct it
yourself.
Gets the password from the configuration. WARNING: The password is stored in the Configuration and shared with all MapReduce tasks; It is BASE64 encoded to provide a charset safe conversion to a string, and is not intended to be secure.
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configure
setConnectorInfo(Class, Configuration, String, AuthenticationToken)
@Deprecated public static void setZooKeeperInstance(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, String instanceName, String zooKeepers)
ZooKeeperInstance
for this job.
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureinstanceName
- the Accumulo instance namezooKeepers
- a comma-separated list of zookeeper servers@Deprecated public static void setMockInstance(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, String instanceName)
MockInstance
for this job.
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureinstanceName
- the Accumulo instance name@Deprecated public static Instance getInstance(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
Instance
based on the configuration.
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configure
setZooKeeperInstance(Class, Configuration, String, String)
,
setMockInstance(Class, Configuration, String)
@Deprecated public static void setLogLevel(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, org.apache.log4j.Level level)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configurelevel
- the logging level@Deprecated public static org.apache.log4j.Level getLogLevel(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configure
setLogLevel(Class, Configuration, Level)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |