org.apache.accumulo.core.client.mapreduce
Class AccumuloInputFormat
java.lang.Object
org.apache.hadoop.mapreduce.InputFormat<K,V>
org.apache.accumulo.core.client.mapreduce.InputFormatBase<Key,Value>
org.apache.accumulo.core.client.mapreduce.AccumuloInputFormat
public class AccumuloInputFormat
- extends InputFormatBase<Key,Value>
This class allows MapReduce jobs to use Accumulo as the source of data. This input format provides keys and values of type Key and Value to the Map() and
Reduce() functions.
The user must specify the following via static methods:
- AccumuloInputFormat.setInputTableInfo(job, username, password, table, auths)
- AccumuloInputFormat.setZooKeeperInstance(job, instanceName, hosts)
Other static methods are optional
Method Summary |
org.apache.hadoop.mapreduce.RecordReader<Key,Value> |
createRecordReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
|
Methods inherited from class org.apache.accumulo.core.client.mapreduce.InputFormatBase |
addIterator, addIterator, disableAutoAdjustRanges, disableAutoAdjustRanges, fetchColumns, fetchColumns, getAuthorizations, getAuthorizations, getAutoAdjustRanges, getAutoAdjustRanges, getFetchedColumns, getFetchedColumns, getInstance, getInstance, getIteratorOptions, getIteratorOptions, getIterators, getIterators, getLogLevel, getLogLevel, getMaxVersions, getMaxVersions, getPassword, getPassword, getRanges, getRanges, getRegex, getSplits, getTablename, getTablename, getTabletLocator, getTabletLocator, getUsername, getUsername, isIsolated, isIsolated, isOfflineScan, setInputInfo, setInputInfo, setIsolated, setIsolated, setIterator, setIteratorOption, setLocalIterators, setLocalIterators, setLogLevel, setLogLevel, setMaxVersions, setMaxVersions, setMockInstance, setMockInstance, setRanges, setRanges, setRegex, setScanOffline, setZooKeeperInstance, setZooKeeperInstance, usesLocalIterators, usesLocalIterators, validateOptions, validateOptions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccumuloInputFormat
public AccumuloInputFormat()
createRecordReader
public org.apache.hadoop.mapreduce.RecordReader<Key,Value> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
- Specified by:
createRecordReader
in class org.apache.hadoop.mapreduce.InputFormat<Key,Value>
- Throws:
IOException
InterruptedException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.