org.apache.accumulo.core.client.mapreduce.lib.util
@Deprecated public class InputConfigurator extends ConfiguratorBase
Modifier and Type | Class and Description |
---|---|
static class |
InputConfigurator.Features
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static class |
InputConfigurator.ScanOpts
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
ConfiguratorBase.ConnectorInfo, ConfiguratorBase.GeneralOpts, ConfiguratorBase.InstanceOpts
Constructor and Description |
---|
InputConfigurator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
addIterator(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
IteratorSetting cfg)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static Set<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> |
deserializeFetchedColumns(Collection<String> serialized)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static void |
fetchColumns(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
Collection<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> columnFamilyColumnQualifierPairs)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static Boolean |
getAutoAdjustRanges(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static Set<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> |
getFetchedColumns(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static String |
getInputTableName(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static List<IteratorSetting> |
getIterators(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static List<Range> |
getRanges(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static Authorizations |
getScanAuthorizations(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static TabletLocator |
getTabletLocator(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static Boolean |
isIsolated(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static Boolean |
isOfflineScan(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static String[] |
serializeColumns(Collection<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> columnFamilyColumnQualifierPairs)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static void |
setAutoAdjustRanges(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
boolean enableFeature)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static void |
setInputTableName(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
String tableName)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static void |
setLocalIterators(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
boolean enableFeature)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static void |
setOfflineTableScan(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
boolean enableFeature)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static void |
setRanges(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
Collection<Range> ranges)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static void |
setScanAuthorizations(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
Authorizations auths)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static void |
setScanIsolation(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf,
boolean enableFeature)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static Boolean |
usesLocalIterators(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
static void |
validateOptions(Class<?> implementingClass,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
|
enumToConfKey, getInstance, getLogLevel, getPrincipal, getToken, getTokenClass, isConnectorInfoSet, setConnectorInfo, setLogLevel, setMockInstance, setZooKeeperInstance
@Deprecated public static void setInputTableName(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, String tableName)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configuretableName
- the table to use when the tablename is null in the write call@Deprecated public static String getInputTableName(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 configuresetInputTableName(Class, Configuration, String)
@Deprecated public static void setScanAuthorizations(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, Authorizations auths)
Authorizations
used to scan. Must be a subset of the user's authorization. Defaults to the empty set.implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureauths
- the user's authorizations@Deprecated public static Authorizations getScanAuthorizations(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 configuresetScanAuthorizations(Class, Configuration, Authorizations)
@Deprecated public static void setRanges(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, Collection<Range> ranges)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureranges
- the ranges that will be mapped over@Deprecated public static List<Range> getRanges(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf) throws IOException
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureIOException
- if the ranges have been encoded improperlysetRanges(Class, Configuration, Collection)
@Deprecated public static void fetchColumns(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, Collection<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> columnFamilyColumnQualifierPairs)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configurecolumnFamilyColumnQualifierPairs
- a pair of Text
objects corresponding to column family and column qualifier. If the column qualifier is null, the entire column family is
selected. An empty set is the default and is equivalent to scanning the all columns.@Deprecated public static String[] serializeColumns(Collection<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> columnFamilyColumnQualifierPairs)
@Deprecated public static Set<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> getFetchedColumns(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 configurefetchColumns(Class, Configuration, Collection)
@Deprecated public static Set<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>> deserializeFetchedColumns(Collection<String> serialized)
@Deprecated public static void addIterator(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, IteratorSetting cfg)
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configurecfg
- the configuration of the iterator@Deprecated public static List<IteratorSetting> getIterators(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 configureaddIterator(Class, Configuration, IteratorSetting)
@Deprecated public static void setAutoAdjustRanges(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, boolean enableFeature)
By default, this feature is enabled.
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureenableFeature
- the feature is enabled if true, disabled otherwisesetRanges(Class, Configuration, Collection)
@Deprecated public static Boolean getAutoAdjustRanges(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 configuresetAutoAdjustRanges(Class, Configuration, boolean)
@Deprecated public static void setScanIsolation(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, boolean enableFeature)
IsolatedScanner
in this job.
By default, this feature is disabled.
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureenableFeature
- the feature is enabled if true, disabled otherwise@Deprecated public static Boolean isIsolated(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 configuresetScanIsolation(Class, Configuration, boolean)
@Deprecated public static void setLocalIterators(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, boolean enableFeature)
ClientSideIteratorScanner
in this job. Enabling this feature will cause the iterator stack to be constructed within the Map
task, rather than within the Accumulo TServer. To use this feature, all classes needed for those iterators must be available on the classpath for the task.
By default, this feature is disabled.
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureenableFeature
- the feature is enabled if true, disabled otherwise@Deprecated public static Boolean usesLocalIterators(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 configuresetLocalIterators(Class, Configuration, boolean)
@Deprecated public static void setOfflineTableScan(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, boolean enableFeature)
Enable reading offline tables. By default, this feature is disabled and only online tables are scanned. This will make the map reduce job directly read the table's files. If the table is not offline, then the job will fail. If the table comes online during the map reduce job, it is likely that the job will fail.
To use this option, the map reduce user will need access to read the Accumulo directory in HDFS.
Reading the offline table will create the scan time iterator stack in the map process. So any iterators that are configured for the table will need to be on the mapper's classpath. The accumulo-site.xml may need to be on the mapper's classpath if HDFS or the Accumulo directory in HDFS are non-standard.
One way to use this feature is to clone a table, take the clone offline, and use the clone as the input table for a map reduce job. If you plan to map reduce over the data many times, it may be better to the compact the table, clone it, take it offline, and use the clone for all map reduce jobs. The reason to do this is that compaction will reduce each tablet in the table to one file, and it is faster to read from one file.
There are two possible advantages to reading a tables file directly out of HDFS. First, you may see better read performance. Second, it will support speculative execution better. When reading an online table speculative execution can put more load on an already slow tablet server.
By default, this feature is disabled.
implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureenableFeature
- the feature is enabled if true, disabled otherwise@Deprecated public static Boolean isOfflineScan(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 configuresetOfflineTableScan(Class, Configuration, boolean)
@Deprecated public static TabletLocator getTabletLocator(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf) throws TableNotFoundException
TabletLocator
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 configureTableNotFoundException
- if the table name set on the configuration doesn't exist@Deprecated public static void validateOptions(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf) throws IOException
InputFormat
.implementingClass
- the class whose name will be used as a prefix for the property configuration keyconf
- the Hadoop configuration object to configureIOException
- if the context is improperly configuredCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.