public class GenerateDNBlockInfosReducer extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,BlockInfo,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
BlockInfo's from XMLParserMapper
Output: A text file named as dni-XXX, where i is the ID of the DN and XXX is
a reducer ID. Each line in the file is in format:
blockID,blockGenStamp,blockSize| Constructor | Description |
|---|---|
GenerateDNBlockInfosReducer() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
cleanup(org.apache.hadoop.mapreduce.Reducer.Context context) |
|
void |
reduce(org.apache.hadoop.io.IntWritable key,
java.lang.Iterable<BlockInfo> values,
org.apache.hadoop.mapreduce.Reducer.Context context) |
|
void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
public void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
setup in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,BlockInfo,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>public void cleanup(org.apache.hadoop.mapreduce.Reducer.Context context)
throws java.io.IOException,
java.lang.InterruptedException
cleanup in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,BlockInfo,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>java.io.IOExceptionjava.lang.InterruptedExceptionpublic void reduce(org.apache.hadoop.io.IntWritable key,
java.lang.Iterable<BlockInfo> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws java.io.IOException,
java.lang.InterruptedException
reduce in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.IntWritable,BlockInfo,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>java.io.IOExceptionjava.lang.InterruptedExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.