Class AccumuloMultiTableInputFormat
java.lang.Object
org.apache.accumulo.core.client.mapred.AbstractInputFormat<Key,Value>
org.apache.accumulo.core.client.mapred.AccumuloMultiTableInputFormat
This class allows MapReduce jobs to use multiple Accumulo tables as the source of data. This
InputFormat
provides keys and values of type Key
and
Value
to the Map function.
The user must specify the following via static configurator methods:
AbstractInputFormat.setConnectorInfo(JobConf, String, org.apache.accumulo.core.client.security.tokens.AuthenticationToken)
AbstractInputFormat.setConnectorInfo(JobConf, String, String)
AbstractInputFormat.setScanAuthorizations(JobConf, org.apache.accumulo.core.security.Authorizations)
AbstractInputFormat.setZooKeeperInstance(JobConf, ClientConfiguration)
setInputTableConfigs(org.apache.hadoop.mapred.JobConf, java.util.Map)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.accumulo.core.client.mapred.AbstractInputFormat
AbstractInputFormat.AbstractRecordReader<K,
V> -
Field Summary
Fields inherited from class org.apache.accumulo.core.client.mapred.AbstractInputFormat
CLASS, log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRecordReader
(org.apache.hadoop.mapred.InputSplit split, org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.Reporter reporter) static void
setInputTableConfigs
(org.apache.hadoop.mapred.JobConf job, Map<String, InputTableConfig> configs) Sets theInputTableConfig
objects on the given Hadoop configurationMethods inherited from class org.apache.accumulo.core.client.mapred.AbstractInputFormat
getAuthenticationToken, getClassLoaderContext, getClientConfiguration, getInputTableConfig, getInputTableConfigs, getInstance, getLogLevel, getPrincipal, getScanAuthorizations, getSplits, getTabletLocator, isConnectorInfoSet, setClassLoaderContext, setConnectorInfo, setConnectorInfo, setLogLevel, setMockInstance, setScanAuthorizations, setZooKeeperInstance, setZooKeeperInstance, validateOptions
-
Constructor Details
-
AccumuloMultiTableInputFormat
public AccumuloMultiTableInputFormat()
-
-
Method Details
-
setInputTableConfigs
public static void setInputTableConfigs(org.apache.hadoop.mapred.JobConf job, Map<String, InputTableConfig> configs) Sets theInputTableConfig
objects on the given Hadoop configuration- Parameters:
job
- the Hadoop job instance to be configuredconfigs
- the table query configs to be set on the configuration.- Since:
- 1.6.0
-
getRecordReader
public org.apache.hadoop.mapred.RecordReader<Key,Value> getRecordReader(org.apache.hadoop.mapred.InputSplit split, org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.Reporter reporter) throws IOException - Throws:
IOException
-