org.apache.accumulo.core.client.mapreduce.lib.util
@Deprecated public class ConfiguratorBase extends Object
Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
ConfiguratorBase()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
@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 passwordAccumuloSecurityException
@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 configuresetConnectorInfo(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 configuresetConnectorInfo(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 configuresetConnectorInfo(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 configuresetConnectorInfo(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 configuresetZooKeeperInstance(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 configuresetLogLevel(Class, Configuration, Level)
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.