public static class IntegrationTestLoadAndVerify.LoadMapper extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected org.apache.hadoop.hbase.client.Connection |
connection |
protected org.apache.hadoop.hbase.client.BufferedMutator |
mutator |
protected int |
numBackReferencesPerRow |
protected Random |
rand |
protected long |
recordsToWrite |
protected org.apache.hadoop.mapreduce.Counter |
refsWritten |
protected org.apache.hadoop.mapreduce.Counter |
rowsWritten |
protected String |
shortTaskId |
| Constructor and Description |
|---|
LoadMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(org.apache.hadoop.mapreduce.Mapper.Context context) |
protected void |
map(org.apache.hadoop.io.NullWritable key,
org.apache.hadoop.io.NullWritable value,
org.apache.hadoop.mapreduce.Mapper.Context context) |
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
protected long recordsToWrite
protected org.apache.hadoop.hbase.client.Connection connection
protected org.apache.hadoop.hbase.client.BufferedMutator mutator
protected org.apache.hadoop.conf.Configuration conf
protected int numBackReferencesPerRow
protected String shortTaskId
protected org.apache.hadoop.mapreduce.Counter rowsWritten
protected org.apache.hadoop.mapreduce.Counter refsWritten
public LoadMapper()
public void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException
setup in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>IOExceptionpublic void cleanup(org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException
cleanup in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>IOExceptionprotected void map(org.apache.hadoop.io.NullWritable key, org.apache.hadoop.io.NullWritable value, org.apache.hadoop.mapreduce.Mapper.Context context) throws IOException, InterruptedException
map in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>IOExceptionInterruptedExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.